Skip to main content

My portfolio was a frozen page. Now it's a product.

vishwajit.in started as a frontend-only site. Here's why I turned it into a small full-stack system, and the shape it ended up with.

Vishwajit BhosleSoftware developer, Pune 4 min read
On this page

For a long time my portfolio was what most developer portfolios are: a Next.js site, some projects written into the code, a contact form that opened your email app. It looked fine. It also froze on the day I shipped it.

Changing a project meant editing code and redeploying. I had no idea who visited or what they wanted to know. And a static page says very little about how I build real systems, which is what I'm trying to show people in the first place.

So in October I decided to treat it like a product, and built the rest of it.

What it is now

The public site is still a static Next.js export, served from a CDN on Cloudflare Pages. That part I wouldn't change. Pages load fast and don't depend on any server being awake.

Behind it there's an API written in TypeScript with Express, backed by a PostgreSQL database on Neon, with Redis from Upstash for caching and rate limits. Everything you read on the site, the projects, experience, skills, education, certifications and blog posts, lives in that database. I edit it all from a private admin page in the browser.

On top of that sit a few things I built because I wanted them: an assistant called Bit, a 3D map of the platform's own architecture, a hire page that sends me proper project enquiries, anonymous visit statistics, and a public API playground.

The decision I think about most

How do you get a static site to show content that changes?

I ended up with three layers, and it's the part I'm happiest with. When the site is built, it fetches the latest content from the live API and bakes it into the pages. When someone opens a page, their browser fetches the content again and quietly updates anything that changed, so an edit I make shows up straight away with no redeploy. And if the API is asleep or down, the site falls back to a copy of the content bundled into the build, so nobody ever sees an empty page.

That last layer matters more than it sounds. I host the API on a free plan that goes to sleep after about fifteen minutes of nobody using it, and the first request afterwards can take close to a minute. Without the fallback, a visitor arriving at the wrong time would see a broken site.

Rebuilds, and not overdoing them

A static export has a catch. Anything that creates a page, like a new project case study or blog post, only exists after a rebuild. Edits to existing text are live immediately, but a brand-new post needs the site built again.

So the API asks Cloudflare for a rebuild whenever the set of pages changes. But Cloudflare's free plan has a monthly limit on builds, and I tend to make several edits in a row, so rebuilds are batched. A burst of edits becomes one build a couple of minutes later. There's also a minimum gap between automatic builds, and a button in the admin for when I'm impatient.

It's a small thing, and getting it wrong would have burned through the monthly allowance in a week.

Why bother

Honestly, partly because I enjoy it. But mostly because a portfolio that behaves like a product is a better argument than a list of claims. When someone asks how I'd design a system, I can point at the one they're looking at and say: here's the API, here's the database, here's what happens when the server's asleep, and here's the page where you can watch a request go through it.

The source for the platform is private, but I've written about the interesting parts, and I'll keep doing that. There's more to come.

Enjoyed this? Pass it on

Written by Vishwajit Bhosle

I build and lead web and mobile products from Pune, and write about what I run into along the way. If something here helped, or you have a project in mind, say hello.

Follow along

New posts show up in any feed reader the moment they are published: no account, no email, no tracking.

Open in Feedly

Comments

Anyone can comment, no sign-up. Upvote what helped, reply to anyone. I read all of them and reply where I can.

Loading comments…