Resume

03 / Blog

Notes on building things.

Architecture, AI workflows and the code behind them, with the diagrams I drew to get there.

  1. 2026.11.24Stop rebuilding your AI answer on every chunk.Chat UIs stream an answer with innerHTML += chunk, which re-parses everything on screen each time. Chrome 157 ships el.streamAppendHTML(): pipe the response into it and the browser's own HTML parser appends each chunk, sanitized by default. The pipe chain, the catches, and where it works. As of 2026.11.→
  2. 2026.11.23A night sky of random stars, in pure CSS.CSS random(min, max) gives every element its own value, so top and left: random(0%, 100%) scatters a field of stars with no JavaScript. The grammar, when a value is rolled and when it isn't, the named-key trap that piles every star onto one spot, and who supports it. As of 2026.11.→
  3. 2026.11.23Your sticky table header is stuck to the wrong box.Wrap a table in overflow-x: auto and position: sticky on its header silently stops working. The reason is one spec rule that turns overflow-y into auto too. Chrome 156 ships the fix: overflow: auto clip makes the wrapper scroll on one axis only, and sticky is resolved per axis. The cause, the one line, and the gotchas. As of 2026.11.→
  4. 2026.11.22How AI made Ramayana's actors speak English.The English Ramayana trailer kept human voices. AI only redrew the mouths: models like Wav2Lip mask the lower half of each face and draw a new mouth from the new audio, frame by frame. Visemes, the pipeline, the sync expert that made it work, and what's still unknown about the film's own tool. As of 2026.11.→
  5. 2026.11.22The HTML install element: one tag for a PWA install button.Chrome and Edge 158 ship <install> on desktop: a browser-owned install button for your PWA that replaces the beforeinstallprompt script. What it needs (a manifest id), what it ignores (scripted clicks), what Safari and Firefox users see, and the old tutorials to stop copying. As of 2026.11.→
  6. 2026.11.22Let Claude Code click through your page with agent-browser.agent-browser is a CLI from Vercel Labs that gives your coding agent a real Chrome. The agent opens your page, reads it as a short text snapshot with a ref per element, clicks by ref and reads the page's errors. How the loop works, when to use it instead of claude --chrome, and what people get wrong. As of 2026.11.→
  7. 2026.11.21Your handwriting, as a web font.Draw your letters, export a font file, convert it to WOFF2, and one @font-face rule sets your site's text in your own handwriting. The tools, the conversion step every thread skips, font-display and the fallback stack, and why your letter variants work in the browser without extra code. As of 2026.11.→
  8. 2026.11.21Why your buttons show an arrow, not a hand.Browsers give a button the arrow cursor and keep the hand for links. It isn't a bug, and one CSS rule changes it. Where the default comes from, the rule, the selector that looks right and filters nothing, and why it's still a choice. As of 2026.11.→
  9. 2026.11.20PMTiles: the whole world map is one file.PMTiles packs every map tile on Earth into one file you put in a bucket. The browser reads a 16 KB index, then asks for only the bytes of the tiles on screen with HTTP Range requests: no tile server, no API key. How it finds a tile inside a 139.55 GB file, the code, and the hosting details that break it. As of 2026.11.→
  10. 2026.11.19Microsoft's 12 Nov outage: a fix that passed every stage, then waited.Outlook mail was down for almost 24 hours on 12 and 13 Nov. Microsoft's preliminary report traces it to a July fix with a load-dependent bug that passed staged rollout, ran for three months, and then took the gateway fleet down in a cascading failure. What happened, why staged rollout couldn't catch it, and why rollback didn't help. As of 2026.11.→
  11. 2026.11.18An introduction to the SOLID principles.The five SOLID principles on small TypeScript examples: a signup broken by an email tweak, a checkout that grows payment methods, a subclass that compiles and crashes, a widget type that turns every file red, and an OrderService that builds its own Stripe client. What each principle actually says, where it came from, and the readings people get wrong.→
  12. 2026.11.13Things I wish I knew as a new developer.Five habits nobody taught me when I started: read code with one question, read a stack trace for what and where, debug by halving, commit small so Git can undo it, and ask for help with a minimal reproduction. The research behind each, the commands, and the details people get wrong.→
  13. 2026.11.13Your AI still writes 2019 JavaScript.Chrome's Modern Web Guidance 1.0 is a skill that teaches coding agents the native version of UI they usually hand-roll. The clearest case is a modal: about 30 lines of JavaScript become a button with commandfor and a <dialog>. What it is, how to install it in Claude Code, what it doesn't do, and why it still adds a polyfill line. As of 2026.11.→
  14. 2026.11.08libghostty: one terminal engine, everywhere.libghostty-vt 1.0 turns Ghostty's terminal core into a stable, MIT-licensed C library. It already runs every JetBrains IDE terminal, a Neovim PR wants it, and ghostty-web puts it in the browser. What the engine does, what it doesn't, and how to try it. As of 2026.11.→
  15. 2026.11.08Give your AI agent a check, not a suggestion.A layer rule in CLAUDE.md is a guideline the agent may decide doesn't apply. Written as a boundary lint and run by a Claude Code Stop hook, it becomes a red check the agent has to fix before it can finish. The lint config, the hook, the one line CLAUDE.md still needs, and where CI stays the final gate. As of 2026.11.→
  16. 2026.11.06OmniDiff: see the one class that changed.Change one Tailwind class and plain git diff marks the whole className line. OmniDiff v0.3.0 reads the class list and marks only the class that changed. How it splits a class list, how to wire it into git difftool, and what it doesn't do yet. As of 2026.11.→
  17. 2026.11.05Weight-space programming: an AI patched another AI's weights.Researchers at MIT CSAIL had GPT-6 Astra edit 0.016% of a small model's weights, with no training, and its MATH-500 score reportedly rose from 7.9% to 48.1%. What it actually changed, why it didn't teach the model maths, and what the critics say. As of 2026.11.→
  18. 2026.11.05Lint your UI for AI slop.npx impeccable detect is a linter for design: 62 deterministic rules, no LLM, no API key, each finding tied to a rule and a line. What it found on a card I made sloppy on purpose, what a source scan can't see, and the new --github flag for pull request annotations. As of 2026.11.→
  19. 2026.11.05Save a website before it disappears.ArchiveWeb.page is a free, open-source browser extension that records the pages you open and lets you download them as one WACZ file that plays back like the live site. How it captures, what it misses, and where the archive actually lives until you download it. As of 2026.11.→
  20. 2026.11.04A video is a web page you seek frame by frame.Remotion and HyperFrames turn a web page into an MP4 without ever playing it: they pause every animation, seek to time = frame / fps, capture one still in headless Chrome and let FFmpeg encode the stills. That's why every frame has to be a pure function of time, and why setTimeout breaks renders. As of 2026.11.→
  21. 2026.11.03HackerTube: use an LLM as a sieve, not a writer.Karpathy built HackerTube, a YouTube of 6,454 videos Hacker News recommends, by having Claude sort millions of HN comments and the YouTube API supply the facts. The model didn't write any content; it made one yes/no call per comment. The pipeline, the pattern you can copy, and where it goes wrong. As of 2026.11.→
  22. 2026.11.02The $6.3B Binance hack: how one signature emptied a hot wallet.On 29 October about $6.3 billion left Binance hot wallets, most of it in about 20 minutes. Binance says no private key leaked. On Ethereum, its own signer was made to sign an EIP-7702 delegation that let the attacker's code act as the wallet. The path in, the 50-nonce trick, and what it means for anything that signs. As of 2026.11.→
  23. 2026.11.01Review your plan with an AI that remembers nothing.Google's Elephant-Goldfish Model splits AI coding into a long design chat (the Elephant) and fresh, memoryless reviewers (the Goldfish) that get only the design doc. Whatever a Goldfish has to guess is a gap in the doc, fixed before any code. How it works, the prompts to try it without the plugin, and what it doesn't replace. As of 2026.11.→
  24. 2026.11.01Give your agent skill its own scripts.A walkthrough of an agent skill that ships a script: a release-notes skill whose Python collector turns git log into JSON, so the model only writes prose.→
  25. 2026.10.31Invisible Unicode tags: text you can't see, but AI reads.The Unicode Tags block holds an invisible copy of ASCII. Your editor draws nothing; a model reads code points, so it reads the hidden text. How the offset works, where it turned up this month, the one regex that strips it, and the flag emoji that regex breaks. As of 2026.10.→
  26. 2026.10.30TanStack Redact: same React code, smaller engine.import from "react" is a contract, not a file. TanStack Redact's build plugin points it at a runtime about a third the size, so your unchanged app ships less JavaScript, at the cost of React's time slicing. What it swaps, what it saves, and what breaks. As of 2026.10.→
  27. 2026.10.29Your server unzips what strangers send.Content-Encoding works in both directions: a client can POST a Brotli-compressed body without asking, and Express 5 inflates it before your code runs. That is why CVE-2026-111497, a bug in Node's Brotli decoder, is reachable by any POST, and why the fix is a Node update, not an npm one. As of 2026.10.→
  28. 2026.10.28REA doesn't clone apps. It explains one feature, with proof.REA (Reverse Engineer Anything) is October's viral GitHub repo, sold as "AI can copy any app". What it really does: it wires your coding agent to Ghidra, JADX and a browser over MCP, so it can explain one feature of an app you have no source for, with an evidence ID for every claim. How it's wired, what the skill adds, and where it stops. As of 2026.10.→
  29. 2026.10.27Kimi K3.1 Pro: near Opus, half the price.Moonshot AI's new flagship scores within a point of Claude Opus 5.5 on terminal coding on Moonshot's own numbers, at $2 / $10 per million tokens against Opus's $4 / $20. What changed from Kimi K3, what the benchmarks say, what the API won't let you do, and why "open weights" isn't true yet. As of 2026.10.→
  30. 2026.10.26Your Compose file is already a diagram.compviz reads a compose.yaml and draws the architecture: services become nodes, depends_on becomes edges, and the customisation lives in the same file as standard Compose labels, so it still runs with docker compose. How it reads the file, what it matches, and what it deliberately doesn't do.→
  31. 2026.10.26Use AI to practise, not to perform.A developer job hunt in India with AI as a coach before each stage and never a crutch during one: six prompts for search, applications and interviews, which job sites have an official AI connector, and why the unofficial ones risk your account. As of 2026.10.→
  32. 2026.10.25CSS corner-shape: a corner's size vs its shape.border-radius sets how big a corner is. corner-shape sets what shape it is: round, squircle, bevel, scoop, notch or square, all as superellipse() values. How the keywords map, the radius-0 gotcha, and how to ship it as progressive enhancement while it's Chromium-only. As of 2026.10.→
  33. 2026.10.24PHP2Shell: the PHP bug that lives between requests.Two critical PHP engine bugs (CVSS 9.2) where one request leaves broken state behind and a later request on the same worker can turn it into remote code execution, before your app code runs. Who's affected, which versions fix it, how to check what's really serving your site, and what the stopgaps don't cover. As of 2026.10.→
  34. 2026.10.23How HTTPS decides to trust a site.The padlock doesn't mean a site's certificate is good. It means a chain of signatures leads to a root your browser already ships. eMudhra's eight intermediate CA keys, each one byte long, show what happens when one link in that chain is weak, and why browsers were protected within hours while curl, Node and Python were not. As of 2026.10.→
  35. 2026.10.22Your API key is a password with a credit card attached.OpenCode said provider keys saved in its hosted Console may have been exposed, and some users reported charges up to about $1,700. Why an API key works for whoever holds it, why the keys on users' own machines weren't involved, and the three things that limit the damage: rotate, scope, cap. As of 2026.10.→
  36. 2026.10.22CSS @function: write your own CSS functions.CSS can now define named functions with typed parameters and defaults. How @function works, why it isn't a Sass function, the pitfalls that fail silently, and how to ship it while only Chromium supports it. As of 2026.10.→
  37. 2026.10.19Pele: Mermaid text in, SVG out, no browser.Pele is Obsidian's MIT library that takes Mermaid syntax and returns an SVG string, with zero runtime dependencies and colours as CSS variables. Why rendering Mermaid usually means headless Chrome, what Pele changes, and the layout catch. As of 2026.10.→
  38. 2026.10.19CSS mesh gradients: from four fake blobs to one real mesh.Every mesh gradient in CSS today is a stack of radial-gradient() layers. On 2026.10.14 the CSS Working Group agreed to add real 2D gradients: mesh-gradient() and freeform-gradient(). What was decided, what the draft syntax looks like, and why you should keep your radial stack for now. As of 2026.10.→
  39. 2026.10.17TanStack Start: a server function is just a function.createServerFn code runs only on the server, but you call it from the browser like a typed local async function. The build swaps the body for an RPC stub, so server code never ships and the call becomes a fetch. Which also makes it a public endpoint. How it works, the code, and what people get wrong. As of 2026.10.→
  40. 2026.10.16Code Mode: one script instead of ten tool calls.In a normal agent loop, every tool call is a round trip and every raw result lands in the model's context. With Code Mode, the agent writes one small JavaScript script that calls its tools as functions, and only the final result goes back. OpenCode 2.0 turns it on by default for every MCP server; Cloudflare measured what it saves. As of 2026.10.→
  41. 2026.10.15Gemini 4 Argon, and how it stacks up.Google's new flagship can write up to 1M tokens in one answer while its rivals stop at 128K, and it costs $2 / $10 per million tokens until Nov 30. What changed from Gemini 3.x, how it compares with Claude Opus 5.5, Fable 5.1 and GPT-6 Astra, and what the 1M output really means for your code. As of 2026.10.→
  42. 2026.10.15SSE vs WebSockets: you probably need the one-way pipe.If only the server talks (notifications, live scores, AI tokens), Server-Sent Events give you a live stream over one ordinary HTTP response, with reconnection built into the browser. WebSockets are for when the client talks back a lot too. The format, the reconnect, and the limits people get wrong. As of 2026.10.→
  43. 2026.10.14How a passkey logs you in.A passkey is a key pair: the site keeps the public half, your device keeps the private half and signs a fresh challenge every time you log in. That one mechanism explains why a database leak gives attackers nothing and why a phishing site can't use your key. The login flow, the code, and the details people get wrong. As of 2026.10.→
  44. 2026.10.13Canvas fingerprinting: tracked with no cookies.A page draws some text on a hidden canvas, reads the pixels back and hashes them. Your GPU, driver, OS and fonts make those pixels slightly different from everyone else's. How it works in six lines, why incognito and a VPN don't touch it, and which browsers actually defend against it. As of 2026.10.→
  45. 2026.10.12Claude Haiku 5.5 vs 4.5, in plain English.Anthropic's new small model costs a tenth as much per token on most requests, reads five times more at once and jumps from 1 in 6 to about 3 in 4 on desktop tasks. What changed from Haiku 4.5, what the benchmark numbers actually mean, and what breaks when you switch.→
  46. 2026.10.12Easing: why some motion feels right.Two boxes cross the same distance in the same time and one of them feels alive. A short, practical tour of easing functions: what the curve means, which one to reach for, and how to write any of them in CSS today.→
  47. 2026.10.12ArtCraft: Adobe-style apps, rebuilt in Rust.Seven free, MIT/Apache-licensed apps that aim at Photoshop, Illustrator, Premiere and the rest, written in Rust with AI agents and running on the desktop or in a browser tab. What it is as of 2026.10, what clean-room means, and how honest the readiness numbers are.→
  48. 2026.10.11e2e: the agent clicks once, then replays.TesterArmy's open-source e2e framework lets you write a test step in plain English. An agent drives it once, the step is recorded when a later check passes, and every run after that is a replay with no model calls. What it does, as of 2026.10, and where the catch is.→
  49. 2026.10.11JPEG XL in Chrome: same photo, fewer bytes.Chrome 155 decodes JPEG XL. What the format buys you, how to repack the JPEGs you already have without losing a pixel, and the four lines of HTML that let you ship it today with a safe fallback. As of 2026.10.→
  50. 2026.10.10Grill me: let your agent ask before it codes.Most bad agent code is the right code for the wrong plan. Matt Pocock's /grill-me skill is two lines long and adds no knowledge at all: it changes when the agent acts. Here is how the design-tree interview works, why it works, and when not to use it.→
  51. 2026.10.09Vite+ 1.0: one CLI instead of six tools.VoidZero shipped Vite+ 1.0 on 2026.09.28: one free command, vp, and one vite-plus dependency in place of Vite, Vitest, ESLint, Prettier, tsup and Turbo. What it is as of 2026.10, what runs underneath, and what it doesn't do yet.→
  52. 2026.10.09React <ViewTransition>: wrap it, then start a transition.React 19.3 made <ViewTransition> stable, and Next.js 16.4 ships it. Wrapping an element is only half of it: nothing animates until the update is a Transition. What triggers it, the four kinds of animation React picks, what the browser actually does, and the pitfalls that make it silently do nothing.→
  53. 2026.10.08Does this code need to exist?Ponytail is an agent skill that makes AI coders walk a seven-rung ladder before they write anything: does it need to exist, is it already here, does the language or the browser do it. The ladder works just as well without the tool. Here is each rung, with code.→
  54. 2026.10.07A coding agent is just a loop.Strip a coding agent down and you find a while loop, a few tools and a chat that keeps growing. A tour of that loop, using Pi, the open-source agent that ships with four tools and a prompt under 1,000 tokens, as the specimen.→
  55. 2026.10.06Claude Code mods are middleware for your agent.Claude Code now loads mods: plugins made of your own JavaScript or TypeScript that run inside the agent. Every hook gets ($, e, next), the same shape as Express and Koa middleware. What a mod is, the three things a hook can do, how to make a guard fail closed, and what you are trusting when you install one.→