Thoughts on frontend, engineering, and design
Notes, learnings, and ideas from my work and experiments.
All articles
All articles
16 articles
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.
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.
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.
matte
Designing Matte, High-Trust Developer Interfaces
Notes on visual restraint: hairline borders, purposeful color budgets, and why subtle motion outperforms noisy glow.
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.
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.
events
Debouncing Without Losing the Last Event
A small pattern for coalescing noisy input while guaranteeing the final value is always handled.
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.
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.
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.
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.
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.
bus
A Typed Event Bus for Microfrontends
Keeping cross-app messages versioned and discoverable without turning the event bus into a global wild west.
pool
Connection Pooling Under Bursty Traffic
Sizing pools for bursts, not averages, and why a longer queue often beats a larger pool.
keys
Keyboard-First Navigation for Complex Tables
Making dense data grids usable without a mouse: roving focus, predictable shortcuts and visible focus rings.
flags
Building a Simple Feature Flag Service
A small flag store with deterministic rollout, local overrides and an audit trail — without adopting a platform.
No articles match your search. Try a different keyword or filter.