Frontend share
3%
of the wait, roughly. The rest was model calls in a row.
13 write-ups · from the notebooks on my desk
Long-form write-ups of real problems from production: what I measured, what I tried first, what broke, and what actually shipped. Product names and some details are changed. The engineering is real.

I put every step of an AI chat message on one clock. The frontend was 3% of the wait; the rest was model calls in a row, and a model upgrade that started thinking before every answer.
Video trimming that runs in the browser with two engines, and two bugs that only showed up with real files in a real browser.
Building a testing habit on a product with one test file, the setup that made tests cheap, and twelve Vitest processes filling a 24 GB machine.
A static marketing page that shipped as an app, and how one long day of measured fixes made it about seven times lighter.
Putting an AI chat back together in the browser after end-to-end encrypted storage landed, and being honest about what it does not protect.
One feature rebuilt three times in five months: main thread, Web Worker, then the server.
Cleaning up a noisy error feed without hiding our own failures, and the two hydration bugs hiding inside it.
Why the camera kept blinking on an AI video interview platform, fixed by giving the media stream exactly one owner.
A spinner stuck on 'Connecting…' led to ten copies of the same OAuth popup code, replaced by one shared hook.
An AI first-pass review on every pull request, and how to stop it making claims about code it never saw.
A changelog as plain files in the repo, checked on every build, and a release checklist run with an AI agent.
How the chat on this site answers from the site's own pages, how I measure it, and how a rewritten prompt cut padded answers from 32 to 1.
How the podcast on this site is voiced, why two local dialogue models lost to a paid API, and how a small local speech model now times every word of the transcript.
Start a new chat?
This conversation will be cleared for good.
You're already reading this one.
It's the page right behind this chat, so there's nowhere to go. Want to start from the top?
The chat felt slow. The frontend was only 3% of the wait.
I put every step of an AI chat message on one clock. The frontend was 3% of the wait; the rest was model calls in a row, and a model upgrade that started thinking before every answer.
The fallback that saves you when WebCodecs doesn't
Video trimming that runs in the browser with two engines, and two bugs that only showed up with real files in a real browser.
From one test file to 1,166, and the test runner that ate our laptops
Building a testing habit on a product with one test file, the setup that made tests cheap, and twelve Vitest processes filling a 24 GB machine.
One blurred SVG cost 1.4 seconds: a landing page diet
A static marketing page that shipped as an app, and how one long day of measured fixes made it about seven times lighter.
The server can't read your chats any more. The AI still has to.
Putting an AI chat back together in the browser after end-to-end encrypted storage landed, and being honest about what it does not protect.
The Excel export that moved out of the browser twice
One feature rebuilt three times in five months: main thread, Web Worker, then the server.
Two bugs that hit every user and looked like noise
Cleaning up a noisy error feed without hiding our own failures, and the two hydration bugs hiding inside it.
One camera, one stream
Why the camera kept blinking on an AI video interview platform, fixed by giving the media stream exactly one owner.
Ten copies of one login popup
A spinner stuck on 'Connecting…' led to ten copies of the same OAuth popup code, replaced by one shared hook.
A code review bot that admits what it can't see
An AI first-pass review on every pull request, and how to stop it making claims about code it never saw.
A public changelog with no database
A changelog as plain files in the repo, checked on every build, and a release checklist run with an AI agent.
Rami was too eager. A bigger model didn't fix it, the prompt did.
How the chat on this site answers from the site's own pages, how I measure it, and how a rewritten prompt cut padded answers from 32 to 1.
The free voices didn't make it. The free word timings did.
How the podcast on this site is voiced, why two local dialogue models lost to a paid API, and how a small local speech model now times every word of the transcript.
Frontend share
3%
of the wait, roughly. The rest was model calls in a row.
First words
5.4 → 2.9s
Answer finished: about 13s → 9s.
Blind judges preferred
128 : 31
New setup vs production. Serious errors: 1 vs 14.
Voice score
2.95 → 3.85
Scored 1 to 5 by two AI judges, same rubric before and after.
Average answer
62 → 42 words
Accuracy went up too: 4.32 → 4.58.
Padded answers
32 → 1
Out of 116 answers. 58 eval questions, each asked twice.
GPU memory
19 of 24 GB
What macOS lets the GPU use on a 24 GB Mac. Free RAM beyond that doesn't help.
Longest take that fit
275 words
402 words ran out of GPU memory. Takes are now capped at 240.
Words timed
1,388
97% heard as written by a local speech model. The rest placed between their neighbours.
Aisha
LiveStreaming AI chat with voice mode and an embeddable widget for partner sites.Streaming AI chat, voice, widget
Visit aisha.ai (opens in a new tab)Bento Studio
LiveAI social media management, with a content calendar and a realtime inbox.AI social media management
Visit bentosocial.ai (opens in a new tab)Xstereotype
LiveA developer-facing API for detecting bias in content.Bias detection API
Visit xstereotype.com (opens in a new tab)MeowMesh
RebuildingA handmade cat-furniture store from Bangladesh.Cat-furniture store, Next.js + Payload
Visit meowmesh.com (opens in a new tab)Eventin
LiveEvent management and ticketing for WordPress.WordPress events & ticketing
Visit themewinter.com/eventin (opens in a new tab)First words
Answer finished
Fig. 2.1 · Every error except Stop moves to the slow engine. The user always gets a file.
See it in case file 02 →Fig. 3.2 · Workers that outlive their main process keep their memory. Across several copies, they fill the machine.
See it in case file 03 →Fig. 4.1 · Marking every section as a client component sent the page once as HTML and again as JavaScript.
See it in case file 04 →Page weight
Fig. 5.1 · The promise covers stored chats. While answering, the server and the model still see the text.
See it in case file 05 →Fig. 5.2 · Every chat request goes through one place that opens locked data.
See it in case file 05 →Fig. 6.1 · While the export ran on the main thread, the browser could not draw anything.
See it in case file 06 →Fig. 6.2 · Each version moved the heavy work further away from the user's tab.
See it in case file 06 →Fig. 7.1 · The server and the browser formatted the same moment in different time zones.
See it in case file 07 →Fig. 7.2 · The browser closed <head> at the first tag it did not allow there.
See it in case file 07 →Fig. 8.1 · One stream holds one track per device.
See it in case file 08 →Fig. 8.2 · One owner for the camera means no second request and no blink.
See it in case file 08 →Fig. 8.3 · Changing the camera no longer interrupts the microphone.
See it in case file 08 →Fig. 9.1 · Six steps for a happy path. Many more ways to stop in the middle.
See it in case file 09 →Fig. 9.2 · Before, four of these exits left the card on 'Connecting'. Now they all end the same way.
See it in case file 09 →Fig. 10.1 · The bot comments. People decide.
See it in case file 10 →Fig. 10.2 · A diff hides the code around the change. The model treated 'I can't see it' as 'it doesn't exist'.
See it in case file 10 →Fig. 11.1 · A broken entry stops the build instead of reaching the public page.
See it in case file 11 →Fig. 11.2 · Write the entry once. Everything else reads from it.
See it in case file 11 →Voice score (out of 5)
Average answer (words)
Padded answers (of 116)
Fig. 13.1 · Free RAM isn't free GPU memory. macOS caps the GPU's share, and long takes need more of it.
See it in case file 13 →Fig. 13.2 · Matching words take the heard time, even when one word was heard as two. The rest are placed between them, and the page keeps the script's spelling.
See it in case file 13 →Fig. 13.3 · The current word in the accent colour, the rest of the line dimmed until it's spoken.
See it in case file 13 →Chromatics AI
Senior Software Engineer · since Dec 2025
Software Developer · Mar — Dec 2025
Part-time · from 2024
Frontend lead across Aisha, Bento Studio, GEO and Xstereotype at once, with backend work in NestJS, .NET and Python when it counts.
Arraytics
Frontend Engineer
Eventin V4, Eventin AI and Timetics.
Debonair Group
Junior Frontend Engineer
Features for the group's in-house ERP.
Building an MVP?
Sajib reads every message and usually replies within a day.
Want a second opinion?
Sajib reads every message and usually replies within a day.
Want to ask me?
Sajib reads every message and usually replies within a day.