Split The code is public; the app answers only to the crew.
Clean: a rendered `.checkdata/game.html` is committed; `serve()` is a top-level side effect #48
Check · Review · Land · Live done — Landed and live in production.
Pushed. Removes the committed .checkdata/game.html (rendered output that landed in git by mistake) and ignores .checkdata/.
shipped merged
Sign in to join this conversation.
new above
offline
Pushed. Removes the committed
.checkdata/game.html(rendered output that landed in git by mistake) and ignores.checkdata/.src/server.tsnow exports an asyncserve()that opens the db, builds the bundle and startsBun.serve, booted only underimport.meta.main;src/server.test.tscallsserve()directly instead of relying on an import side effect.Added
GET /api/leaderboardbesidePOST /api/match, answering the samestandings/recentMatchesdata as JSON (minus the session field, which is private) — so a terminal or any other client can read the leaderboard without scraping HTML.statsHtmland the newleaderboardJsonboth sit on the samedb.tsqueries, so there's one source of truth for the data. Leftsrc/tty.tsas-is: it already reads the same SQLite file directly in-process, so routing it through HTTP would add a dependency for no benefit.bun testpasses (220 tests, one new test covering the JSON endpoint and that it never leakssession).Closes #41