A reader learns the API fastest from working calls: one page per area
(circuit browser, track images, GPS traces on a map, grand prix lookup,
posters, Kometa) shows the exact request URL next to its answer. Pages
call their own origin when the app serves them, and the public service
when opened from disk or given ?api=. Posters render only on a button
press, since each one fetches map tiles on the server. A body that does
not match the asked format is said in red, never shown as success.
The image copies examples/ so the deployed app serves the same pages.
Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
Nothing reads them, and each is a copy of what stays or can be fetched
again:
- cache/: FastF1's download cache (93 files, 562 MB) of the trace
generator; it fetches it again when run.
- circuits_bak/: the circuit tree before its move to lowercase slugs; 117
of its 118 traces are identical in circuits/, the last is a FastF1
sketch in metres, not a GPS trace.
- Grand Prix/: 18 traces filed by race name, all identical in circuits/.
- Data/circuits.json: the circuit list in its first format.
- __pycache__/, .idea/: bytecode and editor settings.
- fast_f1_service.py: an empty file.
.gitignore had ".nova__pycache__/" on one line, so neither applied; it now
ignores .nova, __pycache__/, cache/ and .idea/.
Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
GET /posters/race/{grand_prix_name}/{season}.png
GET /posters/season/{season}.png
1000x1500 PNGs composed with Pillow + cairosvg:
checkered-flag strips top/bottom, F1 wordmark, round/year ribbon,
GP name, rasterised track outline (white), race date. Season poster
is wordmark + giant year + 'WORLD CHAMPIONSHIP'. Cached under
cache/posters/ so cold renders happen once.