How my portfolio runs on Cloudflare's free plan

A multi-page site, an admin dashboard, image uploads and an AI assistant — with no server to look after and no monthly bill.

This site is a small experiment in keeping things simple: no server to patch, no database to babysit, and no monthly bill.

What it is made of

  • One Cloudflare Worker that renders every page on request
  • Cloudflare D1, a SQLite database, for the content and uploaded images
  • Workers AI, running an open-source Llama model, for the assistant in the corner
  • Email Routing to forward mail on the domain to my inbox

Editing without deploying

Every page is built from the database, so changes made in the admin dashboard go live the moment I click Save. Code changes still go through a deploy, but words, images and projects never need one.

Keeping it safe

The admin is protected by a password and a signed, short-lived session cookie. Writes are only accepted from the site itself, login attempts are rate-limited, uploads are checked by their real file type, and everything shown on a page is escaped first.

Keeping it fast

Fonts are served from the same domain, images are converted to WebP with smaller versions for cards, and the pages score in the high nineties on Lighthouse.

The best infrastructure is the kind you don't have to think about.

If you'd like something similar for your business, get in touch.

Written by Plabon Husayn. Questions or a project in mind?