How Homefelt fits together today, what is being built, and what comes after. Canasta is the only game so far, so every game box below says Canasta; the platform boxes say Homefelt.
The browser is the only client that can go online, and so far only against a server on your own machine: the game server is not deployed yet. The iPhone and Android apps play on the device against the computer and read only the status feed.
swipe sideways →
The server's code and its deploy files are built; the Fly.io app, the Neon database and api.homefelt.io do not exist yet, and neither does the docs site (#50, and Eduardo's steps in #133). Once deployed, one always-on machine (512 MB, shared CPU) holds every table in memory, capped at 200 connections. It is never scaled past one, because two machines would each believe they own a table. The web game and both apps read the status feed at homefelt.io/app-status/v1.json, at most every 15 minutes. Sign-in needs the Apple and Google keys as well (#48, #51).
Rules run on the device for local games (Swift, Kotlin, or Rust compiled to Wasm) and on the server for online ones. The server is the only thing that talks to Postgres; no client ever does.
The server builds each seat's view from an allowlist. A new field stays hidden until someone lists it, and the shuffle's seed never leaves the server.
Today, two static Vercel projects: the site and the web game. Once deployed, add one small Fly machine and Neon's smallest compute, which sleeps between games, so the first save after a quiet spell is slow. The ceiling is $25 a month.
Built the way Shopify built Reflex: the rules exist three times, in Swift, Kotlin and Rust, and one folder of scenarios decides what is correct.
swipe sideways →
A behaviour exists once a scenario pins it. House rules are settings in spec/rulesets/*.json, never an if on a rule set's name. File, type and field names match across the three languages, so a change in one can be read straight across into the other two.
Every core has the same shape: state out, actions in, one update function. The server puts the same engine behind a queue.
A local move · all three clients · built
A move at an online table · web today · native planned
Sign in and sit down · web today · native planned
A table saves when it is created, when a seat changes, when the host acts, when a hand ends, when it goes idle and when the server stops. Every move a person makes in between is queued for the move log (table_moves) and written a moment later, so a turn never waits for the database; a table loaded after a crash replays it. Only a move answered in the last moment before a crash can be lost (proposal 1 below, built in #253).
rust/canasta-server: one Axum binary. The rows here are the same rows as the client map in section 05, so the two can be read side by side.
swipe sideways →
Connections never touch a game. They send commands down a channel to the table's task, which answers each seat on that seat's own bounded outbox. Two players acting at once are put in order by the channel, so there are no locks around a game.
The same rows as the server, three columns. The game rows match file for file. The platform rows are where the web is ahead: it has the network, sign-in and online tables, and the native apps have none of them yet.
swipe sideways →
web, passes the shared casesThe gap worth noticing is the platform row. Everything else a native app needs to go online (sign-in, the server client, an online state holder, a lobby) exists only in TypeScript; the network layer is built on all three, and none of it is pinned by spec/ the way the rules are.
From the project board and the plan documents on 25 November. The board shows 193 items done, 6 in progress or in review, 15 to do and 6 waiting on Eduardo.
swipe sideways →
Three mirrored cores and the behaviour suite
Official, Family and Modern American rule sets
Easy and Normal bots
Beginner aids and the guided first hand
Decks as data, French and Spanish
Beginner aids settings #99
Show a declared special hand's cards #245
Bot tests on unusable views #191
Record a real family hand #49
Cross-core fuzzing proposal 6
Sign-in checked by the server; sessions
Tables, lobby, host handover, invites
Postgres persistence, restored tables
Limits and invite defences
A game id on tables and invites 0016
Move log: every accepted move, replayed after a crash
Metrics, ntfy alerts, an outside health check, the scaling rule 0017
Outdated clients refused (protocol 1.0.0)
Guest seats from an invite link #255
Production sign-in keys #48 #51
Entitlements #240
Email sign-in, keep a guest's games #256 #262
Rematch at the same table, guests kept #287
Groups and friends endpoints
Spectators, turn timers
Push proposal 8
Solo play, saved games, tutorial
Spanish, from one string catalog
Date versions and build numbers
Status feed selection logic
Status client, banner and blocking views
Network layer, a client per service 0015
Ad slots and entitlement cores
Online play before the stores #258 #259 #261
StoreKit 2, Play Billing #237 #238
AdMob and consent #239
One Homefelt shell app decision 0007
Wasm engine, solo play, Continue
Homefelt home and per-game routes
Sign-in, lobby, online tables
Status messages and reload banner
Security headers, CSP report-only
Session and TableClient machines, pinned by spec/online
Join as a guest from an invite link #255
Enforce the CSP once sign-in is deployed #270
Spanish e2e in the online build #188
Installable and offline proposal 9
Deploy files for Fly.io and Neon
Two Vercel projects: the site and the web game
Neon point-in-time restore
Local verification gate decision 0005
App-status runbook, checked by bin/test app-status
First deploy to Fly.io and Neon, waiting on Eduardo #50 #133
Docs site on Vercel #133
CI back on #53
Deploy on merge #225
Off-provider backup proposal 10
A second machine, past 100 connections proposal 10
App-status feed spec, hosted at homefelt.io
Ads and purchases spec, checked by bin/test ads
Online client spec: Session, TableClient, transcripts, a hand against the server
Decision: no RevenueCat 0014
Spanish store listings #138
Three-month review #241
Analytics on PostHog EU draft
Ad mediation past $100 a month
Canasta
Hand and Foot, then Buraco
Spades, Hearts, Ludo
Chinchón, Brisca, Tute, Escoba
The board lags the repository in places: #213 shows as in review but is merged. Draft plans stay in the future column until Eduardo accepts them.
The foundations are unusually sound for a project this young: one writer per table, a view that fails closed, injected randomness, decisions written down. These are the places I'd push.
A crash loses every move since the last hand ended. The saved game is already a seed plus a move log, so appending each accepted move to a table_moves row makes any crash recoverable by replay.
Write it off the hot path through a bounded queue, so Neon waking up never stalls a turn.
Today the only signals are fly logs and the dashboard. Add counters (connections, tables in memory, move and save latency, refusals by code), an outside check on /health, and an alert that reaches your phone.
The first real game night is the worst time to learn what normal looks like.
Every merge rests on local runs, and deploy-on-merge (#225) waits on it. A spending limit on Actions, or a self-hosted runner on the Mac, restores the gate.
With agents opening most pull requests, an independent check matters more, not less.
Native online play is the largest unbuilt block, and it now comes before the store release (#257 to #259). Before writing it twice more, turn the web's sign-in, reconnect and lobby logic into pure state machines with scenarios in spec/: given these server frames, the client state is this. Built for the web in #257 (spec/online, 72 transcripts, bin/test online-server) and for Swift as HomefeltOnline (#258) and for Kotlin as kotlin/online (#259).
It is the Reflex rule applied to the platform row, and it lets the behaviour suite drive the server too.
Done in #233: every hello carries client with the protocol version, 1.0.0 in spec/protocol/version.json. The server refuses another major, an app below its platform's minimum (HOMEFELT_MIN_CLIENT_VERSIONS) and a hello without client, with updateRequired and close 4426.
The game id goes in with the same change.
The bots alone are about 1,600 lines, three times over, and four long parity games guard them. Play thousands of seeded bot games through all three CLIs each night and compare the logs.
Scenarios catch the rules someone thought of. Differential runs catch the ones nobody did.
For #240, store user, product, source, verified_at with no game in the name, verified against Apple's and Google's servers, with an offline grace period on the device.
"Remove ads" will want to cover every Homefelt game, and the web needs to read it.
Nothing sends a push today. For families playing from different houses, a "your turn" or "Ana invited you" notification may matter more than any other feature. It needs device tokens, APNs, FCM and web push.
Games are played in one sitting for now, so this waits.
Local play already needs no server, and there is no service worker. A small one would make play.homefelt.io installable and playable on a plane.
It must respect the reload-at-a-safe-point logic the status layer already has.
Point-in-time restore protects against mistakes but not against losing the provider; a nightly dump elsewhere and one restore drill covers that. Separately, record now how a second machine would work (a lease per table in Postgres, or Fly's replay header) and what load would trigger it.
Neither is urgent at 200 connections. Both are cheaper to think through before they are.
spec/, implemented in Swift, Kotlin and TypeScript (proposal 4).game column defaulting to canasta, and the field on POST /tables, the table message, GET /me/tables and invite answers, while only the web speaks the protocol; an unknown id is refused (decision 0016, #254). The hello's client and protocol version follow in #233.guest claim in the access token naming the table, checked again in the database, a cap of 3 guests a table, and deletion 30 days after the session ends (decision 0018, #255).StatusClient, AuthClient, ServerClient and GameSocket each keep their own address, timeouts and retry. No timeout on sign-in or on non-idempotent requests (decision 0015, #231).