Skip to content

About

Understand a historical F1 race at a glance: track map, fastest-lap speed traces, tyre strategy, and position changes for any race since 2018.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

F1 Snapshot

Understand a historical Formula 1 race at a glance: pick a season and a Grand Prix, see the circuit, the two fastest laps of the race, every tyre strategy, and how the whole race unfolded — one page per race, for every Grand Prix from 2018 to the 2026 Dutch Grand Prix.

Frozen since 31 October 2026. Coverage ends with the 2026 Dutch Grand Prix: from October 2026 F1's timing data requires a paid F1 TV subscription, so the weekly sync was switched off rather than paid for.

Live site →

Track map, coloured by speed Position changes over the course of a race

What it shows

  • Track map — the fastest lap of the race, traced corner by corner and coloured by speed (braking zones read hot, straights read cool)
  • Speed traces — the two fastest individual laps of the race, compared distance for distance
  • Tyre strategy — every driver's compound choices and stint lengths, in finishing order
  • Position changes — every position swap, lap by lap, coloured by team

How it works

A small Flask app (src/) generates all four charts with matplotlib. Races are pre-rendered rather than computed per request: src/precache.py calls FastF1 for any race that isn't cached yet and writes the resulting images plus a small metadata file into the repo. A GitHub Actions workflow (deploy-pages.yml) builds those into a static site with src/build_site.py and publishes it to GitHub Pages — no live server, no FastF1 at request time.

Running locally

py -m venv .venv
.venv\Scripts\python.exe -m pip install -r requirements.txt
.venv\Scripts\python.exe -m flask --app src.app run --debug

Then open http://127.0.0.1:5000. python -m src.precache <year> pre-warms a whole season at once (--rounds N N... for specific races).

Credit

Built entirely on FastF1 (MIT licensed), which does the real work of pulling and parsing F1 timing, telemetry, and results data. The four visuals here are adaptations of examples from FastF1's own gallery:

Not affiliated with Formula 1, the FIA, or any team — a personal project for understanding historical races.

About

Understand a historical F1 race at a glance: track map, fastest-lap speed traces, tyre strategy, and position changes for any race since 2018.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages