acorn1010

Writing

Developer notes from building Foony.

Long-form writeups on the engineering choices, migrations, tooling, and strange production bugs behind a browser games platform.

  1. 01

    How to Migrate Off Firestore to Postgres in 2 Days

    How I migrated Foony off Firestore to Postgres + Redis pub/sub via Change Data Capture in just 2 days, dropping Firebase costs from $550/month to $40/month and trimming ~100KB off the client bundle.

    engineering · firestore · firebase · postgres

  2. 02

    How I Implemented SSG in 2 Days

    How I built a bespoke Static Site Generation solution for Foony in just 2 days, solving React Suspense boundary issues and planning a hydration strategy that works with our existing SPA.

    engineering · ssg · react · typescript

  3. 03

    How I Made Foony Work Behind Proxies

    How I fixed Three.js WebGL shaders broken by proxy string replacement and simplified Foony's domain strategy (foony.com only) to improve proxy compatibility.

    engineering · webgl · three.js · proxies

  4. 04

    How I Solved Cascading Hash Changes with Import Maps

    How I built a Vite plugin using Import Maps to prevent unnecessary file re-hashing when dependencies change, solving a critical production deployment issue.

    engineering · vite · build-tools · javascript

  5. 05

    How I Implemented i18n to 20 Languages in 3 Days

    How I translated Foony to 20 languages in just 3 days using a custom 3KB library and a swarm of AI agents.

    engineering · i18n · react · typescript