Web¶
web/ is one npm package with two outputs: the website at www.retrospeedlab.com, and the stream view at stream.retrospeedlab.com that OBS sends to Twitch. Vue 3, Vite, Tailwind CSS and TypeScript in strict mode; both apps read the API at https://api.retrospeedlab.com.
web/
site/ the website
stream/ the stream view
shared/ speedrun types and logic both show: API base, highscores, ranking, release badges, stopwatch
branding/ channel artwork and logo masters with the prompts that made them
Commands¶
cd web
npm ci
npm run dev:site
npm run dev:stream # open it with #api_key=<stream key>
npm run mock:stream # the stream view against a mock API
npm run lint && npm run format:check && npm test && npm run build && npm run knip
npm run build writes dist/site and dist/stream.
The website¶
| Page | Shows |
|---|---|
/ |
The live run, the games and what the AI is doing now |
/how-it-works |
How the AI speedruns |
/progress |
Every game's run, splits, lab sessions and what it learned, then the tracker and the devlog |
/boards |
Humans vs the AI |
/me |
Your runs |
/press |
The press kit |
/links |
Every channel as one link for social bios |
The stream view¶
The stream view is a director that switches scenes (run, search, compare, lab, intermission) and panels (splits, objectives, the RAM, the search cam and mosaic, the highscore, the weekly challenge, viewer rewards, the lab team, what is next). It sends a heartbeat, reloads itself when a new version is deployed and reports which engagement variant it showed.
npm run mock:stream serves it against a mock API. Pick a scenario with ?scenario=mid, search, lab, stuck, won, null, down, restart, bestruns or perks, and pass #api_key=x.
Deploy¶
deploy/www/ and deploy/stream/ build the apps in a Node image and serve them from nginx with security headers; the stream serves its index.html uncached so a new deploy reaches OBS. deploy/docs/ does the same for these docs.