colophon
~$ tree -L 2 runtime/
~$ cat stack.json
- framework
- SvelteKit 2 + Svelte 5 (runes)
- runtime
- Cloudflare Workers (@sveltejs/adapter-cloudflare)
- state
- Cloudflare Durable Objects (SQLite storage + WebSocket Hibernation)
- iac
- OpenTofu (account, zone, DNS, Worker container, custom domains)
- deploy
- cf deploy / Wrangler (Worker code, bindings, DO exports)
- media
- Deflated binary canvas frames (DecompressionStream) + nocookie YouTube facade
- navigation
- View Transitions API + shared-element morphs (progressive)
- typography
- Inter + JetBrains Mono · OKLCH neutral palette
~$ cat infra/boundaries.txt
- OpenTofu (infra/)
- account, zone, DNS records, cloudflare_worker container, custom domains
- cf deploy / wrangler
- Worker bundle (src/worker.js), bindings, Durable Object classes, secrets
- SvelteKit prerender
- static routes (/, /blog, /lab, /colophon, /terminal, /rss.xml, /sitemap.xml)
- Worker dynamic
- /rooms/* HTTP, JSON, HTML form fallback, WebSocket upgrades
~$ cat lib/rooms/config.js
- author max
- 40 chars
- body max
- 2000 chars
- rate limit
- 6 / 60s per IP per room
- transcript window
- 500 messages
- room lifetime
- 5000 messages → read-only
- directory cap
- 50 / day · 2000 total
- idle ttl
- 30 days (DO alarm → deleteAll)