Skip to content

Thoughts on frontend, engineering, and design

Notes, learnings, and ideas from my work and experiments.

All articles

All articles

16 articles

Cover art for “Shipping Dual ESM & CJS TypeScript Packages Without Breaking Consumers”

npm

Shipping Dual ESM & CJS TypeScript Packages Without Breaking Consumers

A practical playbook for package.json exports maps, declaration resolution, and CI smoke tests that keep Node, Vite, and Bun happy.

Cover art for “Calm WebSocket Reconnection: Jitter, Queues, and Backpressure”

realtime

Calm WebSocket Reconnection: Jitter, Queues, and Backpressure

How to avoid thundering herds during deploys and keep real-time UI dashboards responsive when cellular connections drop.

Cover art for “Zero-Downtime PostgreSQL Migrations on High-Write Tables”

postgres

Zero-Downtime PostgreSQL Migrations on High-Write Tables

Why ALTER TABLE locks production traffic, and how the expand-and-contract pattern eliminates maintenance windows.

Cover art for “Designing Matte, High-Trust Developer Interfaces”

matte

Designing Matte, High-Trust Developer Interfaces

Notes on visual restraint: hairline borders, purposeful color budgets, and why subtle motion outperforms noisy glow.

Cover art for “Rendering 100k Trace Spans at 60fps with 2D Canvas”

canvas

Rendering 100k Trace Spans at 60fps with 2D Canvas

Moving heavy timeline views off the DOM, culling invisible rectangles, and staying razor sharp on Retina screens.

Cover art for “Pragmatic Monorepo Caching Without Over-Engineering”

cache

Pragmatic Monorepo Caching Without Over-Engineering

How a 14-minute CI pipeline dropped to 3.5 minutes using clean package boundaries and content-hashed task graphs.

Cover art for “Debouncing Without Losing the Last Event”

events

Debouncing Without Losing the Last Event

A small pattern for coalescing noisy input while guaranteeing the final value is always handled.

Cover art for “Indexing JSONB Columns That Actually Get Used”

index

Indexing JSONB Columns That Actually Get Used

Expression indexes, containment operators and the query shapes that let PostgreSQL keep a flexible schema without paying for it on every read.

Cover art for “Designing a Token Budget for Dark Interfaces”

tokens

Designing a Token Budget for Dark Interfaces

How a small, named set of surface and text tokens keeps a dark UI legible without resorting to glow and coloured shadows.

Cover art for “Streaming Large JSON Responses to the Browser”

stream

Streaming Large JSON Responses to the Browser

Reading a big JSON payload incrementally with ReadableStream so the first rows arrive before the last byte does.

Cover art for “A Practical Guide to Content-Hashed Caches”

hashes

A Practical Guide to Content-Hashed Caches

Why task graphs built from explicit inputs beat whole-repo hashes, and how to keep the cache small enough to trust.

Cover art for “Measuring Layout Shift in Real User Sessions”

cls

Measuring Layout Shift in Real User Sessions

Turning cumulative layout shift from a lab score into a signal you can trace back to a specific component and release.

Cover art for “A Typed Event Bus for Microfrontends”

bus

A Typed Event Bus for Microfrontends

Keeping cross-app messages versioned and discoverable without turning the event bus into a global wild west.

Cover art for “Connection Pooling Under Bursty Traffic”

pool

Connection Pooling Under Bursty Traffic

Sizing pools for bursts, not averages, and why a longer queue often beats a larger pool.

Cover art for “Keyboard-First Navigation for Complex Tables”

keys

Keyboard-First Navigation for Complex Tables

Making dense data grids usable without a mouse: roving focus, predictable shortcuts and visible focus rings.

Cover art for “Building a Simple Feature Flag Service”

flags

Building a Simple Feature Flag Service

A small flag store with deterministic rollout, local overrides and an audit trail — without adopting a platform.

Copied