Writing

Notes on building operational products.

Articles and notes on building operational products: CRMs, booking systems, internal tools, and the Next.js patterns that keep them reliable in production.

June 12, 2026·4 min read

Building Forge: Postgres-Orchestrated LLM Batch and Realtime Jobs Without a Queue

How Forge runs LLM batch and realtime jobs across OpenAI and Anthropic with two Node daemons that coordinate through Postgres alone.

aillminfrastructurepostgresarchitecture

May 23, 2026·6 min read

Hexagonal DDD from Day One: Building Matcha to Be Built by Agents

Why I built Matcha as a hexagonal DDD monorepo from day one, so a team of agents could write and maintain it with full context.

architecturedddmonorepomulti-tenancyai-agents

May 22, 2026·7 min read

TDD by Construction: How the Vimbus Loop Validates Its Own Code at Scale

The checks around an autonomous coding loop: task validation before any agent runs, a separate browser pass, and an audit that needs a tested path.

testingtddautomationaiarchitecture

May 21, 2026·5 min read

Evaluation-Driven Development: Shipping an AI Booking Agent You Can Trust

How I stopped fixing Matcha's booking agent one chat at a time and started shipping changes only when evals show they are better.

aiai-agentsevaluationtestingllm

May 20, 2026·6 min read

Idempotent WhatsApp Webhooks in NestJS: Receiving Messages You Can't Process Twice

How Matcha handles WhatsApp Cloud API webhooks in NestJS: a verify-token handshake, HMAC signature checks, and a unique index that ignores retries.

nestjswebhooksintegrationbackend

May 19, 2026·6 min read

Ports and Adapters in NestJS: A Domain That Doesn't Know About Mongo

How Matcha's NestJS backend uses ports, Symbol() tokens and one repository with two interchangeable adapters.

nestjsarchitecturehexagonalddd

May 9, 2026·2 min read

How This Blog Renders MDX with @next/mdx and Turbopack

The MDX setup behind this blog: the @next/mdx config, a Turbopack plugin catch, and static pages from generateStaticParams.

next.jsmdxdx

April 18, 2026·3 min read

Building a Pet Boarding CRM: Lessons from Apollon

How I modelled clients, pets, bookings, rooms and money as one system for the Apollon pet boarding CRM.

crmarchitecturenext.js