mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-08-07 11:54:59 -04:00
Subscribe to SignalR Position.z and CarData.z, decode DEFLATE payloads, stream throttled positions over SSE, and render live car dots against cached track outline bounds with tap telemetry. Alignment spike: no checked-in or locally cached real Position.z samples were available in this isolated worktree; verified both streams expose the official raw F1 X/Y/Z coordinate contract and implemented shared-bounds normalization against prefetched OpenF1 outlines. Fallback build-outline-from-stream was not taken. Playwright remains out of scope for live rendering because BOXBOX_DISABLE_LIVE is used there; coverage is via parser, web handler/SSE, pure transform, and seeded component tests.
box-box Web Frontend
React Race Hub slice for the production Web UI.
Commands
npm install
npm run dev
npm test -- --run
npm run build
The Vite dev server proxies /api requests to the Go server on
http://localhost:8080.
Run the backend separately:
go run cmd/main.go --web
Then open the React app, usually:
http://localhost:5173/race-hub
Load an ingested session with:
http://localhost:5173/race-hub?session_key=9472