13 write-ups · from the notebooks on my desk

Case files.

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.

Showing 13 of 13
Case 01 · AI · Performance9 min
5.4s to 2.9sto first words

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.

5.4s → 2.9s to first wordsRead
Case 02 · Frontend8 min
200 MBlargest upload, trimmed in the browser

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.

Up to 200 MB, trimmed client-sideRead
Case 03 · Testing8 min
1 to 1,166test files

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.

1 → 1,166 test filesRead
Case 04 · Performance8 min
13.4 to 1.9 MBlanding page weight

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.

13.4 MB, ~7× lighterRead
Case 05 · Security · AI8 min
End-to-end encryption

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.

End-to-end encryptionRead
Case 06 · Frontend · Performance8 min
3generations in 5 months

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.

3 generations, 5 monthsRead
Case 07 · Frontend8 min
1,669errors, 2 of them real bugs

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.

1,669 errors, 2 real bugsRead
Case 08 · Frontend9 min
Realtime media in React

One camera, one stream

Why the camera kept blinking on an AI video interview platform, fixed by giving the media stream exactly one owner.

Realtime media in ReactRead
Case 09 · Frontend8 min
10 to 1login popups, now one hook

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.

10 copies → 1 hookRead
Case 10 · AI · Tooling8 min
AI review in CI

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.

AI review in CIRead
Case 11 · Tooling8 min
Content as code

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.

Content as codeRead
Case 12 · AI · Testing8 min
2.95 to 3.85voice score, same rubric

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.

Voice score 2.95 → 3.85Read
Case 13 · AI · Tooling9 min
1,388words timed, for free

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.

1,388 words timed, locallyRead