Skip to content

Architecture Decision Records

Approved by the owner at the Phase 0 gate (2026-11-27). New ADRs start as Proposed. Template: 0000-template.md (docs/adr/0000-template.md).

# Decision Status Matters from
0001 Record decisions as ADRs Accepted 0
0002 pnpm workspaces + Turborepo + Changesets Accepted 1
0003 TS strict, Vite, tsdown, Biome, Vitest, Playwright, TypeDoc, size-limit Accepted 1
0004 PixiJS behind Renderer2D Accepted 1
0005 Three.js behind render-3d (confirmed 2026-11-29) Accepted 5
0006 In-house arcade physics; Rapier for rigid bodies Accepted 1 / 5
0007 Own ECS; Zod schemas → JSON Schema as source of truth Accepted 1
0008 Hono + OpenAPI, PostgreSQL + Drizzle, pg-boss, S3 API Accepted 3
0009 React + React Router v7 framework mode Accepted 3
0010 Better Auth Accepted 3
0011 Compose locally → ECS Fargate + RDS + S3 + CloudFront Accepted 3 / 7
0012 Separate domain, sandboxed iframe, CSP, postMessage bridge Accepted 3
0013 llms.txt, MCP server, provider adapter over AI SDK Accepted 2
0014 WebSocket first, datagram transport later (provisional) Accepted 6
0015 Data-only packs; ledger-based money model Accepted 3 / 4 / 7
0016 Zod stays out of core; validate documents at load (prod: at build) Accepted 1
0017 Sound effects and music as synthesizer data Accepted 1
0018 Data-driven gameplay and UI kit in the framework Accepted 1
0019 Phase 3a: 13+ accounts, build isolation, SeaweedFS, local mode Accepted 3
0020 Phase 3b-1: workspaces with history, previews, sandboxed BYOK assistant Accepted 3
0021 Phase 3b-2: remote MCP + OAuth, social sign-in with age step, AI SDK providers, docs site Accepted 3
0022 Phase 4a: visual level editor, shared level operations, Play from here Accepted 4
0023 Phase 4b: content packs as workspaces, pack loader with namespacing, approval queue, fork/remix Accepted 4
0024 Phase 5a: world documents with chunk streaming, A*, state machines and behaviour trees as data, gameplay kit, string tables Accepted 5
0025 Phase 5b: arcade kit (waves, movers, shooters, score, best scores), touch controls as data, expand scale mode Accepted 5
0026 Phase 5c: render-3d (Three.js), physics-rapier (deterministic), 3D levels, 3D template Accepted 5
0027 Phase 6: profiles, leaderboards (replay-checked), achievements; deterministic input-relay multiplayer Proposed 6
0028 Phase 7a: production on a single VPS (Compose, Caddy DNS-challenge TLS, restic backups), provider-neutral; AWS later Accepted 7
0029 Game thumbnails (captured in the creator’s browser or uploaded) and play history Accepted site redesign