← Projectsrunning app

NFL Player Compare

Compare NFL players for fantasy football: any scoring, weekly consistency, position percentiles and trade analysis, on nflverse data refreshed daily in season.

live at nfl.apps.ravicorrie.comrunning app
Type
running app
Status
Live at nfl.apps.ravicorrie.com
Source
github.com/rcorrie325/NFL-Players
Stack
python · fastapi · react
Likes
0

NFL Player Compare is a fantasy-football app for comparing players side by side. It started as my own Python toolkit: three classes for pulling player stats, scoring them with configurable fantasy settings, and charting the results. I rebuilt that toolkit, fixed its bugs, and put a web front end on it.

What you can do

  • Compare 2 to 4 players in a side-by-side table of season totals and per-game stats, with the best value in each row highlighted.
  • Choose the scoring: PPR, Half PPR, Standard, or your own custom values. Everything updates as you switch.
  • See the weekly chart: fantasy points week by week, with consistency stats for each player (average, standard deviation, floor, and boom and bust weeks).
  • Check within-position percentiles on a radar chart, so a running back is ranked against running backs and a receiver against receivers.
  • Find similar players: the nearest statistical profiles at the same position, with one click to add them to the comparison.
  • Compare teams for a trade or a lineup, with an optional bench rule from my original code (a bench player's average is halved, and counts as zero if that's under 9).
  • Browse a leaderboard by position under your scoring.

It covers the 2026 season, with 2024 and 2025 as history (regular season only).

Week-by-week fantasy points for Jahmyr Gibbs and CeeDee Lamb (2026), with each player's average, standard deviation, floor, and boom and bust weeks underneath.

How the data works

The original version scraped three sites (Pro Football Reference, FootballDB and TeamRankings) every time it ran, which was slow and broke whenever a page changed. Now the stats come from nflverse's open player data (CC-BY-4.0, credited in the app). A refresh job runs daily in season and weekly in the offseason. It only downloads files that have changed, and past seasons are fetched once and then left alone. Every new file is validated (required columns, the right season, a minimum row count, no big drop from the last version) before it replaces the old one. If a download or check fails, the app keeps serving the last good data, and the footer shows when the data was last updated.

The team-vs-team analyzer: two sides of players with starters ticked, the bench rule switched on, and each side's expected weekly points.

Tech stack

  • Data and scoring: Python and pandas, reading nflverse parquet files
  • API: FastAPI, with validated inputs and no database (the data is small enough to keep in memory)
  • Front end: React and TypeScript (Vite), with hand-drawn SVG charts
  • Hosting: Docker, behind Caddy with automatic HTTPS. The app container can't reach the internet; a separate container handles the downloads.

Comments (0)

Log in or sign up to comment.