How this site works
Every game here is one HTML file. No framework, no third-party SDK, no ads, no accounts. This page is the short technical version — mostly about the things that went wrong first.
One page per game
A build script reads one JSON file with every game's copy, then writes the homepage, the list pages, the collection pages, a landing page per game, a sitemap, a service worker, and the game's own page. The shared engine is under 900 lines and handles canvas scaling, the main loop, pointer and keyboard input, pause, best scores, and the end-of-run overlay.
Adding a game means one JS file, one JSON entry, and one cover image. No bundler is involved, because a bundler is exactly what would make the first paint slower on a phone.
Measuring without a backend
There is no database. A tiny same-origin beacon sends start, end, quit, share and bug events to an endpoint that answers 204 and writes nothing but the access-log line. A script turns those log lines into start rate, finish rate, average duration, and referrers afterwards.
Two things went wrong here first. The tracker read a field that did not exist, so no plays were recorded at all for the first day. And roughly 90% of the early "traffic" turned out to be vulnerability scanners — a real player does not open every game page thirty times without loading a single stylesheet.
Offline, without preloading everything
The service worker precaches seven shell pages, not the whole arcade. Pages are cached when you visit them, so the game you last played is the one that still opens without a network. The first version precached everything and cost 3.16 MB on the first visit for no benefit.
The largest thing on the page was not an image
The largest contentful paint on a game page was the overlay headline — and that headline was written by JavaScript after the engine booted. Rendering it into the HTML at build time cut LCP from 1.71s to about 1.3s on a throttled phone profile, and made LCP equal to first paint.
What is still missing
Users. The site is finished enough to test: 73 games, 89 pages, no dead links, no console errors, and it survives a few hundred requests per second on a 1 GB VPS. Nobody knows it exists yet.