Posts
All the articles I've posted.
-
Building a Recipe Calculation Engine in TypeScript: IBU, SRM, Fermentability and FG
Designing Foambyte's brewing recipe engine: an ordered chain from volumes to OG, IBU, attenuation, FG, ABV and SRM, built as pure TypeScript functions.
-
Self-Hosting a Turborepo App with Docker, Bun, nginx and Traefik
How Foambyte's React SPA and Hono API ran on a VPS: multi-stage Docker builds for a Turborepo monorepo, a Bun runtime, nginx, Traefik and Docker Swarm.
-
From Path Aliases to a Real Package: Lessons from a pnpm + Turborepo Monorepo
How Foambyte's React app and Hono API share code in a pnpm + Turborepo monorepo, why path aliases broke Docker builds, and the setup that works.
-
Offline-First Editing with TanStack Query Persistence and Last-Write-Wins Patches
How Foambyte kept recipe edits working offline: a persisted TanStack Query cache, a last-write-wins patch queue, and one merge function shared with the server.
-
Testing Brewing Math: Unit Tests for IBU, Color and Carbonation Calculators
How I test Foambyte's brewing calculators with Vitest and Zod: reference values, round trips, behavior checks and 330+ tests for IBU, SRM and CO2.
-
ArkType vs Zod: Why I Standardized on Zod Across Forms, API and Database
I started Foambyte with ArkType and switched to Zod. The deciding factor wasn't speed or syntax but integrations: drizzle-zod, zod-openapi and TanStack Form.
-
Choosing Authentication for a Web + Mobile SaaS: Why better-auth
Why Foambyte uses better-auth with Hono and Drizzle instead of Clerk, Auth0 or Supabase Auth, and how cookie sessions work across the web and Capacitor apps.
-
Adopting the React Compiler Early in a React 19 + Vite App
Why I turned on the React Compiler (RC) in Foambyte's React 19 + Vite app, how to set it up with Babel and ESLint, and the rules I follow so it can do its job.
-
Building a Real-Time Web Cipher with Rust, Sycamore and Trunk
Building a real-time Vigenère cipher web app in Rust with Sycamore, Trunk and WebAssembly, without writing a single line of JavaScript.
-
Implementing the Display Trait on a Generic Array using Newtype Pattern
How to implement the Display trait on a generic array in Rust, working around the orphan rule with the newtype pattern and const generics.