Professional
Production-grade patterns from real systems. Architecture decisions, debugging stories, and hard-won lessons.
Building a Video Intelligence Pipeline: Scene Detection + Audio + Face Recognition
Three standalone tools — SaySee, Cairn, and Tactical ID — combine into a full video intelligence pipeline. Here's how they fit together.
Documentary Beat Indexing — 17-Class Scene Taxonomy with FCP XML
ScorsAI classifies documentary footage into 17 scene types and generates Final Cut Pro XML markers — turning hours of raw footage into a searchable beat sheet.
SaaS Billing with Stripe — Checkout, Webhooks, Tier Sync
I wired Stripe into a market data service: checkout sessions, webhook handlers, and tier synchronization with Supabase. Here's the production setup.
Multi-Stage Dockerfile: From 1.2GB to 180MB
OMNI's Docker image was 1.2GB. Three stages — deps, build, runtime — brought it to 180MB. Here's the exact Dockerfile with annotations.
Fusing 25 Live Data Feeds on a 3D Globe — Layer Pipeline Architecture
OMNI renders 25 real-time data layers on a CesiumJS globe — AIS ships, aircraft, weather, earthquakes, wildfires. Here's the layer pipeline that makes it work without melting the browser.
Natural Language Commanding: Building an NLP Action Dispatcher
OMNI's LENS command palette lets users type natural language to control 84 platform actions — fly to locations, toggle layers, run queries. Here's how the dispatcher works.
Building a Production API Proxy: Rate Limiting, Caching, and SSRF Protection
OMNI proxies 13+ external APIs through Next.js API routes. Here's how I built rate limiting, response caching, and SSRF protection into the proxy layer.
Zustand at Scale: 4-Slice Architecture for a Real-Time Platform
OMNI manages globe state, layer toggles, panel visibility, and user preferences across 25+ data sources. Here's the 4-slice Zustand architecture that keeps it sane.
Race Conditions in Cesium Click Handlers — A Three-Week Bug Story
Clicking an entity on the OMNI globe sometimes selected the wrong one. The bug lived in a closure over stale state. It took three weeks to find.
Imperative vs Declarative 3D: Why CesiumJS Crashes at Scale
CesiumJS has a React wrapper called Resium. It works fine for demos. It will destroy your production app. Here's why I went fully imperative.