Articles

Notes from the build

Things I worked out the hard way, written down properly. Roughly one a month.

Architecture7 min read

Turning a support mailbox into a ticket system

Pulling a shared inbox into the admin panel with IMAP so support requests from the contact form and from email land in one queue. The UID bookkeeping that makes it incremental, and the two bugs I found writing this up.

By , Full Stack Developer, Kerala, India

Read article
Architecture7 min read

Your Docker image is mostly things you do not need

Two Dockerfiles from the same monorepo: a Next.js app and a Node API. They solve the same problem in different ways, and the difference explains what multi-stage builds are actually for. Plus the monorepo setting that breaks workspace resolution.

By , Full Stack Developer, Kerala, India

Read article
Architecture7 min read

One API, four clients, no exposed backend

A customer site, an admin panel, an agent portal and a mobile app against one Express API. Three of them get an intermediary and one does not, and that asymmetry decides almost every security choice in the system.

By , Full Stack Developer, Kerala, India

Read article
Architecture7 min read

Roles are not enough

Admin, moderator, viewer. Then somebody needs to refund orders but not touch pricing, and your three roles become five, then nine. A permission map of eight modules by six actions, and the escalation hole I found writing this up.

By , Full Stack Developer, Kerala, India

Read article
AI9 min read

Two vector stores, one embedding model

Pinecone in one project, pgvector in another, the same embedding model in both. The honest conclusion is not that one wins, it is that they fail in different places, and the filtering story that every comparison gets backwards.

By , Full Stack Developer, Kerala, India

Read article
AI9 min read

Giving every user a free daily token allowance

ChatGPT hands every account a daily token budget that differs per model. It is a few hundred lines, and the interesting parts are the concurrency bug, the fact that you cannot know the cost until after you have paid it, and what should happen at zero.

By , Full Stack Developer, Kerala, India

Read article
AI7 min read

Two model providers, one endpoint

A versioned Gemini model name retired and started returning 404 on a key that worked fine, for a model half the tutorials online still reference. What that outage taught me about aliases, fallback, and treating conversation history as untrusted input.

By , Full Stack Developer, Kerala, India

Read article
AI8 min read

Retrieval that survives "tell me more"

Most RAG breaks the moment somebody types a follow-up, because a short follow-up has almost nothing to embed. The fix is two lines. The harder problem is that chunk size is not an independent choice, and nobody tells you that either.

By , Full Stack Developer, Kerala, India

Read article
Performance7 min read

Scroll-scrubbed video on a cheap phone

Driving a video's playhead from scroll position is easy to demo and hard to ship. The easing, the seek threshold, two encodes instead of one crop, and the viewport units that stop the composition resizing under your visitor's thumb.

By , Full Stack Developer, Kerala, India

Read article
Engineering10 min read

Proving a prize draw was fair

A live draw on a big screen with the entrants in the room. Asserting it was fair is worthless if a loser cannot check. Commit and reveal, an unbiased shuffle, and the venue constraints that shaped every other decision.

By , Full Stack Developer, Kerala, India

Read article
Architecture7 min read

A live preview that cannot drift

Most admin panels rebuild each section so editors can see their changes, which guarantees the preview and the real site diverge. Framing the actual site removes the duplicate entirely. The details that make it work, including the ones I got wrong first.

By , Full Stack Developer, Kerala, India

Read article
Security9 min read

Rate limiting will not stop a scraper

A competitor who can enumerate your prices owns your pricing strategy. Rate limits do not stop them. What does is making the attempt cost more than the data is worth, and that is an economics problem before it is an engineering one.

By , Full Stack Developer, Kerala, India

Read article
Performance8 min read

Shipping a 3D hero in 435 KB

A scroll-driven 3D scene that renders on a cheap Android and downloads on a bad connection, without looking cheap. What actually moved the numbers, and the WebGL trap that cost me an afternoon.

By , Full Stack Developer, Kerala, India

Read article

Working on something similar?

Most of what I write about here came out of client work. If you have a problem in the same shape, get in touch.

Start a conversation