Skip to content

How it fits together

RetroSpeedLab is one repository and one product. A deterministic 8-bit console runs 24 original games; a search on the GPU hunts for the fastest run of each; a verified run becomes a movie that the backend stores, the website shows and the stream plays. Everything that happens is an event in the data platform, and automated developers keep the whole system healthy.

Data flow from the engine to the site, the stream and the lake Engine8-bit console Games24 cartridges Search + PPOrunner, GPU server Verified moviereplays from power-on BackendAPI, boards, bots Site Stream Discord LakeKafka, Spark, Delta Bugsink MaintainerClaude + Codex

The parts

Part Folder What it does
Engine src/retrospeedlab/engine The console: cartridge contract, sandbox, movies, verifier, videos, browser builds
Games src/retrospeedlab/games RetroSpeedLab24: 24 cartridges, their speedrun wrappers and scripted routes
Arcade src/retrospeedlab/arcade What players get: the games site, the itch.io pack, preview and route tools
Search src/retrospeedlab/search The TAS search, the PPO policy, the live relay and the lab
Runner src/retrospeedlab/runner The rotation that searches every game in turn, the bandit split and the lab job
Backend src/retrospeedlab/backend FastAPI: runs, boards, replays, Discord, Twitch, promotion and alerts
Lake src/retrospeedlab/lake Kafka relay, Spark streaming, Delta tables, Airflow jobs and experiments
Maintainer deploy/maintainer The automated developers that work the suite from their console and Bugsink
Articles src/retrospeedlab/articles The weekly technical article and the open-source launch articles
Web web/ The website and the stream view
Deploy deploy/ One folder per app, the autodeploy, backups, the ops gate and the vault

A record, step by step

  1. The runner gives each game a turn on the GPU server and starts its search.
  2. The search plays the game on headless engine consoles, level by level, and keeps the fastest segments.
  3. After every segment the whole movie replays from power-on. Only a run that replays is a record.
  4. The search relays the live run to the backend and publishes its events to Kafka.
  5. The site and the stream read the backend; the stream view is what goes out on Twitch.
  6. The lake turns the events into Delta tables, experiments and the bandit's worker shares for the next turn.
  7. When something breaks, an alert becomes a Bugsink issue and a card in the owner's console, and the maintainer picks it up.