
Snapcount
A fantasy-football projection engine. An ensemble of XGBoost and Bayesian models scores every player each week with a floor, ceiling, and bust probability, built on ten seasons of play-by-play data.
What it does
Snapcount (internally “Snapcount Lab”) is a fantasy-football analytics platform built on top of the full nflverse play-by-play dataset — all 115 weekly player-stat fields across offense, defense, kicking, returns, EPA, and fantasy scoring, for the 2016–2025 seasons. The dashboard covers the whole research workflow a serious fantasy or DFS player runs every week: season boards, weekly projections with floor/ceiling/boom-and-bust percentages and a model-agreement score, injury-risk tracking, weekly-consistency history, start/sit comparisons, a live draft room, a DFS value board, and a running record of how accurate its own past projections were.
Every projection carries more than a single number: a floor, a ceiling, a boom%/bust%, and an agreement score showing how much the underlying models concur — which matters more than the point estimate when the season hasn’t started and there’s no game data yet to check against.
How it’s built
The backend is Python on FastAPI, with a projection ensemble combining XGBoost (with a quantile head for the floor/ceiling range) and Bayesian ridge regression. Data lands in Postgres (Neon) via a season-by-season importer that replaces one season at a time, so a re-import is always safe to re-run. The production requirements.txt is deliberately lean — the serving stack Vercel actually installs — while training and analysis extras (nfl_data_py, shap for model explainability, pytest) live in a separate dev-only requirements file so the deployed function stays small. On Linux (Vercel’s serverless runtime) it uses the CPU-only XGBoost build to stay under the platform’s size limits; local development on macOS uses the regular package.
The repo is architecturally splitting into two products: the existing research/projections/DFS surface (Lab), and a newer public, account-based fantasy-team manager that consumes the Lab’s data through an API rather than duplicating it.