NFL Player Performance
LiveAn NFL data pipeline, live on AWS, that ranks players by position and predicts each week's results.
Started September 2026 · Updated November 2026

What It Does
A data engineering and prediction project. It pulls NFL stats from the open nflverse datasets, cleans and models them with dbt on DuckDB, and publishes position rankings (QB, RB, WR, TE, K) to a website, each shown two ways: a composite performance score and PPR fantasy points, with weekly snapshots showing rank movement. On top of that sits a weekly prediction engine. It projects every player's next game with an 80% range, locks the forecast before kickoff, and grades it afterwards in a public report card that compares it with simple baselines. AI is used in a deliberately limited way: Claude Code reads where the model missed most each week and proposes one new feature at a time, and an automated test on held-out weeks decides whether it ships, so no published number is ever produced or adjusted by an LLM. The whole system runs by itself on AWS: a scheduled Fargate task, S3, CloudFront in front of the site, Terraform for the infrastructure, and GitHub Actions deploying through OIDC with no stored credentials. A mobile app is planned as a second phase.
Key Features
- Weekly predictions for every QB, RB, WR, TE and K, each with an 80% range, locked before kickoff and graded afterwards in a public report card against simple baselines
- A frozen copy of the model, trained only on earlier seasons, is locked beside each week, so the report card shows whether retraining during the season actually helps
- An ensemble of ridge regression and LightGBM, with ranges calibrated on weeks the model never saw; the code refuses to calibrate on its own training rows
- AI-assisted feature search: Claude Code proposes one feature at a time from the model's biggest misses, an automated gate on held-out weeks decides whether it ships, and every result is published in an experiment ledger
- Position rankings using a composite score of efficiency and production, plus a PPR fantasy view, with weekly snapshots to show players moving up or down
- Backtest of the ranking method on past seasons using held-out seasons, with a public methodology page
- Daily ingestion of NFL stats from the open nflverse datasets, data quality tests on every run, and a validation gate that blocks a bad or stale publish
Technologies
- Python
- Docker
- AWS
- Terraform
- dbt
- DuckDB
- LightGBM
- Claude Code
- Next.js
Architecture
A Python pipeline ingests raw nflverse files, dbt models them into staging and mart layers on DuckDB, and a publish step writes validated, versioned JSON that a statically exported Next.js site reads. A prediction step builds features that only use games before kickoff, with tests that change a future result and check earlier features do not move, then projects, locks and grades each week. Claude Code sits outside the published numbers: it writes candidate feature code that must pass the gate before it can reach the site. The same Docker image runs locally and on AWS: a scheduled Fargate task, S3 for storage (the records bucket uses Object Lock, so a locked forecast cannot be changed), CloudFront in front of the site, alarms that email on any failure, and the infrastructure defined in Terraform. A guard refuses to lock a forecast once its first kickoff has passed.
Future Plans
Add defensive player rankings and build a mobile app on the same published data.