Skip to content

Fandex

How good have your teams been since the year you were born?

Pick the year you were born and one team in each of the NFL, NBA, MLB and NHL. Fandex scores every season those teams have played since on one scale, ranks every franchise and every city over the same years, and gives you a number from 0 to 100 for how lucky a fan you have been. MLS, the WNBA, NWSL, the PWHL and the CFL sit alongside the big four, which makes 221 franchises in all, counting 19 that no longer play. It works the same way for all time, back to 1903, or for any span of years.

It started as a spreadsheet of win rates in the four big leagues since 2005. The engine reproduces that sheet's numbers and a test keeps it that way. There is no database and no API key: the page is static and all the scoring runs in the browser, so every control answers at once and any view can be shared as a link.

Built with

  • Next.js 16
  • React 19
  • TypeScript
  • Tailwind v4
  • Motion
  • NumberFlow
  • Vitest
  • GitHub Actions
  • ESPN API
  • NHL API
  • PWHL feed

Free to use, no account. Pick a birth year and one team to get your number.

The screens

Redrawn for this site from the real product, in its own type and colours, with sample data.

The scorecardOne fan's number: born in 2005, following Denver's club in each of the four big leagues and the Rapids in MLS. The number is the average of those clubs on the same 0 to 100 line every franchise is ranked on, each mark on the scale is a city, and each strip is a club's seasons from cold blue to hot red, with a pennant over every title and a hollow one over every lost final. Every figure is what the product's engine returns for its own data.
RankingsEvery franchise of the nine leagues that played in the years set, in one list: 209 of them since 2005. Vs league is the win rate over those years measured against the league's own spread, Avg season is the typical season against that year's league, and Luck is the blend of those and titles, with the best club in the span at 100. The fan's own clubs are marked.
Every seasonOne league on one sheet: every club against every season in the span, sorted best to worst, with titles and lost finals marked in their cells. Pointing at a cell reads out that season's record, and says when it was a great or an awful one.
CitiesA city is scored on the seasons actually played there, so a club that has since moved still counts for the city it left. On the map a circle grows with the number of teams and takes its colour from the score, and the fan's own city is ringed. The base map is drawn once by a script and stored as plain paths.
Another birthdayThe same clubs scored for every possible birth year. Each point reruns the whole ranking from that year on, so the line shows how much of a fan's luck is timing.
Years and teamsThe two inputs. The year can be typed, nudged or dragged along the ruler, and the era can be a lifetime, all time or any span. Teams are one per league: the four big leagues lead, and MLS, the WNBA, NWSL, PWHL and CFL each have a smaller slot.
ScoringWhat counts as a good life as a fan is adjustable: the three weights, which leagues are counted, and how much recent seasons count. Every change rescores every franchise in the browser.

Everything it does

55 features in 10 areas, written from the code.

Years and teams

The two things a visitor sets. Everything else on the page follows from them.

7 features

First-visit setup
A first visit with no shared link opens a two-step setup: birth year, then teams, then straight to the scorecard. Either step can be skipped, with Just browse or Use all time, and Escape counts as browsing.
Three eras
Since I was born, All time, or Custom years. All time runs from 1903, the first MLB season on record, and each league joins in its own first year. Custom years puts two handles on one ruler, labelled From and To, with the span between them shaded.
The year is the control
The big year can be clicked and typed, nudged with minus and plus or the arrow keys, or dragged along a ruler with a tick for every decade. A typed year only applies once it has four digits, and it is clamped to the seasons on record.
One team per league
Four large slots for the NFL, NBA, MLB and NHL, and five smaller ones for MLS, the WNBA, NWSL, PWHL and CFL. Any can stay empty. An empty slot carries its league's mark, so it says what goes there.
The picker
A tab per league and a search box. Choosing a team moves on to the next league in the same group that still needs one, so the big four come first and the other five are only walked once a visitor is in them. The sheet closes itself when the group is full.
Pick a whole city
A By city tab lists every metro area with a current club. One click fills every league that city plays in.
Random fan and Clear
Random fan draws one active club in every league. Clear empties every slot.

The scorecard

One fan's history, as a number and as the seasons behind it.

8 features

A number out of 100
The average of the fan's teams, placed on the same line every franchise is ranked on, so 100 is the best franchise of the span and 0 the worst. The figure rolls to its new value whenever a year, a team or a weight changes.
A verdict in words
Seven verdicts, from Spoiled rotten at 85 and up to Condolences below 15, each with a one-line gloss. The cut points are 85, 70, 55, 45, 30 and 15.
Where you sit among the cities
A scale with a thin mark for each city and a marker for the fan. Under it: how many cities had it worse, how many had it better, and the city whose number is closest to the fan's. Moving the pointer or a finger anywhere along the line picks up the nearest city, so there is nothing small to aim at, and names it with its rank, team count, titles and win rate.
Five counts
Titles, with how many team seasons each one took. Finals lost. Great seasons and awful seasons, a full standard deviation above or below that year's league, which the card puts as about the top and bottom sixth. Win rate, with total wins.
Season tape
One cell per season for each team, filled from cold blue to hot red by how far that season sat from the league. A pennant marks a title and a hollow pennant marks a lost final. Columns line up across teams, a year a team did not play is a dashed cell, and pointing at a cell reads out the record, under the name the club carried that season.
Best and worst year to be you
The year the fan's teams were collectively at their best and at their worst. Only years in which every one of the teams played are considered, so one hot team in a lone season cannot win it.
Copy link
Copies the address, which already holds the whole view.
Before a team is picked
The card's place is taken by a prompt that names the luckiest and unluckiest fan bases for the era chosen.

Another birthday

2 features

Luck by birth year
A curve of the fan's number for every possible birth year with the same teams, with the luckiest and unluckiest years named. It is shown when the era is a birth year.
Click to move there
Pointing reads a year off the curve. Clicking sets the birth year to it, and the whole page follows.

Rankings

All 221 franchises of nine leagues in one list.

5 features

Nine sortable columns
Seasons, win rate, standing against the league, average season, great and awful seasons, titles, lost finals and luck. Each header explains itself in plain words on hover and sorts either way. Rows slide to their new places on a sort instead of jumping.
Filter and search
A filter for any league that is being counted, and a search box that matches a team name or its city. When either narrows the list, a count says how many of the total are showing.
Open a row
A row opens to that club's season tape and a line with its record, its rank inside its own league, its great and awful seasons and its lost finals. If the franchise carried other names inside the span, the line lists them.
Your teams marked
The fan's own clubs are marked in the accent colour, here and on the other two views.
Columns by screen width
A phone shows rank, team, win rate, titles and luck. The other columns come in as the screen widens.

Every season

3 features

One league on one sheet
Every club of a league against every season in the span, sorted best to worst, with a pennant in each title season and a hollow one in each lost final. It opens on the league of the fan's first team, and falls back to the first counted league if that one is switched off.
Readout
Pointing at or tapping a cell prints the club as it was called that season, the record and the win rate, and says so when it was a great or an awful season.
Fits any span
Cells are 20 pixels wide for a short span, 14 past 40 seasons and 10 past 70, and year labels thin out to match. The team column stays pinned while the seasons scroll sideways.

Cities

A city is scored on the seasons actually played there.

5 features

The map
The United States and Canada with a circle on each metro area. A circle grows with the number of teams and is coloured by the city's score. The fan's own cities are ringed.
Former homes
A franchise's seasons count toward the city it was playing in at the time. Seattle keeps the Sonics' years and Montreal the Expos', and cities with no club today, such as Hartford and Quebec City, appear on the map when the span reaches back to them. The data holds 63 metro areas in all.
Ranked list
Every city in order with its teams and its score. The list and the map highlight together.
City card
The chosen city's rank, score, combined win rate, titles and lost finals, then each club that played there. A current club shows its place on the full board, and since when if it arrived mid-span. A club that left is dimmed and shows its years there and what it is called now.
Keyboard
Each circle on the map can be reached with Tab and chosen with Enter or Space, and announces its score and rank.

Nine leagues

The NFL, NBA, MLB and NHL lead. Five more sit alongside them on the same scale.

6 features

The other five
MLS from 1996, the WNBA from 1997, NWSL from 2013, the PWHL from 2023-24 and the CFL from 1958.
One scale for all nine
Each league is scored against its own spread, so a WNBA dynasty and a baseball dynasty land on the same line.
Draws
In MLS and NWSL, where draws are part of the game, a draw counts as half a win. Elsewhere the rare tie is left out.
Switch a league off
Any league can be left out of the rankings, the cities and the fan's number from the Scoring panel. The last one counted cannot be switched off.
Artwork for every league
ESPN carries no CFL club logos and no CFL or PWHL league mark, so those come from TheSportsDB. A club with no artwork at all falls back to a monogram in its own colour.
Names in full
Team and city names wrap instead of being cut off with an ellipsis, in the slots, the picker and the city card. A phone row in the rankings drops the city to keep the name whole.

Franchise history

Lineage follows each league's official record.

7 features

Names and homes by season
A relocated or renamed franchise keeps its seasons, and each season remembers what the club was called and where it played. The Thunder's 1979 title shows as the Seattle SuperSonics and the Dodgers' 1955 as Brooklyn.
Hornets, Pelicans and Browns
The 1988 to 2002 Charlotte Hornets belong to today's Hornets, as the NBA reassigned them, and the Pelicans begin in 2002. The Browns keep their history before 1996 and sit out 1996 to 1998, and the Ravens begin in 1996.
Coyotes, Utah and the two Jets
The Arizona Coyotes are kept as an inactive franchise ending in 2024, and Utah starts as a new club that year. The first Winnipeg Jets are part of the Coyotes' history and today's Jets begin as the 1999 Atlanta Thrashers. The city of Winnipeg is credited with both.
Wartime mergers
The merged teams of 1943 and 1944, Phil-Pitt and Card-Pitt, count for both clubs.
The AFL
The AFL's seasons from 1960 to 1969 count for its clubs, and its title games of 1960 to 1965 count as championships. From 1966 the Super Bowl is the title.
Folded clubs
Nineteen clubs that no longer play keep their history as inactive franchises, among them the Houston Comets, the Sacramento Monarchs, FC Kansas City, Chivas USA, the CFL's American teams and the NHL's Seals and Barons. They can be picked and ranked, they are listed after the active clubs in the picker, and their cities are credited for those seasons.
What is left out
The ABA, the WHA, the AAFC and the Federal League of 1914 and 1915 are not counted, nor is anything before a league's first season in the data.

Scoring panel

What counts as a good life as a fan is the visitor's call.

7 features

Three weights
Sliders for overall record, typical season and championships, 50, 30 and 20 by default. They are shown as shares of their total, so they never have to be made to add up.
Leagues counted
A chip per league, filled when it counts and struck through when it does not.
Recency
All equal, Lean recent or Only lately. The last two halve a season's weight every 15 or every 6 seasons back.
Seasons in progress
Unfinished seasons are left out unless switched on. The note under the switch names the seasons under way that day.
Team colour
Highlights can take the colour of the fan's first team. Of the club's two colours it uses whichever has a contrast of at least 3.2 against the page, and sets text on it in white or dark ink by a 4.5 contrast test.
How the number is made
The method is written out in the panel in seven short paragraphs, in plain words with no notation, including how cities are scored, how franchise history is followed and where the standings come from.
Reset
One button puts the weights, the leagues, recency and the in-progress switch back.

Look and sharing

5 features

Light and dark
The theme follows the system until it is switched, and the choice is saved. A script in the head sets it before first paint, so the wrong theme never flashes.
Every view is a link
Years, teams, weights, switched-off leagues, recency and the open tab all live in the address, so any view can be sent as it stands.
Share image
The preview image is drawn in code: the wordmark, the headline and a strip of seasons in the tape's colours.
Copy that follows the data
The intro's count of leagues and the all-time note listing when each league begins are built from the data file, so they stay true as leagues are added or switched off.
Reduced motion
With the system's reduced motion setting on, layout animation and the dialog transitions are off.

The math

The formulas are the ones the code runs, and each chart is computed from them.

  1. 01

    Put nine leagues on one scale

    Win rate is wins over wins plus losses, regular season only. Ties are left out and overtime losses in hockey count as losses. In soccer, where draws are part of the game, a draw counts as half a win. Baseball records bunch up near .500 and football records spread wide, so a franchise's record is measured from .500 in units of how spread out its own league is over the span. Since 2005 that spread is .033 in MLB and .081 in the NFL, so a .533 baseball club and a .581 football club sit the same distance above even.

    win rate = W / (W + L)

    win rate = (W + D / 2) / (W + L + D) in MLS and NWSL

    spread = √ mean((win rate − .500)2) across the league

    record = (win rate − .500) / spread

    PWHL.105
    WNBA.101
    NFL.081
    CFL.080
    NWSL.079
    NBA.060
    MLS.042
    NHL.035
    MLB.033
    League spread over the seasons from 2005: the typical distance of a franchise's win rate from .500. The PWHL has played three seasons.
  2. 02

    Score the typical season

    One record for the whole span lets ten great years and ten terrible ones cancel out. So each season is also scored against that year's league, using the spread of every club that played that season, and those scores are averaged. An average of season scores comes out narrower than a span record, so it is multiplied by a fixed 1.6 before it is weighted. A season a full unit above its league counts as great, and one a full unit below as awful.

    season z = (season win rate − .500) / that season's spread

    typical = mean(season z) × 1.6

  3. 03

    Count titles against an even share

    In any decided season an average club would expect one title in n, where n is the number of clubs that year. A franchise is credited its titles minus that share, per season played, and the result is standardized within its league. A championship in a six-team league is worth 0.83 above expectation and one in a 32-team league 0.97. From 1960 to 1965 the AFL and the NFL each crowned a champion, so two titles were on offer and the even share is two in n. A season still in progress has no champion and adds nothing either way.

    surplus = Σ (title − titles on offer / n) / seasons

    titles = (surplus − league mean) / league sd

  4. 04

    Blend, then shrink short histories

    The three parts are blended 50, 30 and 20, and the weights can be changed in the Scoring panel. A short history is weaker evidence than a long one, so the blend is pulled toward average by n over n plus 4: nine seasons keep 69% of their score and thirty keep 88%. The best franchise in the span is then set to 100 and the worst to 0.

    blend = 0.5 × record + 0.3 × typical + 0.2 × titles

    score = blend × n / (n + 4)

    index = 100 × (score − worst) / (best − worst)

    Share of its blended score a franchise keeps, by seasons played in the span.
  5. 05

    Score a fan and a city

    A fan's number is the average of their teams' scores, placed on the same 0 to 100 line as the franchises. A city is scored on the seasons actually played there: each franchise's stay is scored the same way as a whole franchise, and the city's number is the average of its stays weighted by their length. So Seattle keeps the Sonics' years, and a two-year stopover does not count like a sixty-year one. The scorecard says how many cities had it worse and which city's history the fan has lived. The birth-year curve reruns the whole ranking for every starting year from 1903 and plots the same teams' number for each.

  6. 06

    Follow the record books

    A relocated or renamed franchise keeps its seasons, and lineage follows each league's official record. The 1988 to 2002 Hornets belong to today's Hornets and the Pelicans begin in 2002. The Coyotes stay their own inactive franchise while Utah starts new in 2024. The wartime merged teams count for both clubs, and the AFL's 1960 to 1965 title games count as championships. Clubs that folded in the modern era, such as the Houston Comets and Chivas USA, stay as inactive franchises that can still be picked and ranked, and their cities keep those seasons. A test pins the first season, every season since and the known gaps for all 126 franchises of the big four.

  7. 07

    Lean recent, if asked

    By default a season from decades ago weighs the same as last year. Two settings change that: a season counts half as much every 15 seasons back, or every 6. The weight is applied to wins and losses, to season scores and to titles alike.

    season weight = 0.5seasons ago / half-life

    Lean recent, 15Only lately, 6
    Weight on a season by how long ago it was, for the two recency settings. With recency off every season counts 1.
  8. 08

    Hold it to the spreadsheet

    The engine is tested against the original sheet, with the data frozen where the sheet stopped and only the four leagues it covered counted. For the NFL, NBA and MLB it has to match every franchise's wins, losses and season count exactly, and both scores to within 0.01. Hockey is held more loosely, to within .012 of win rate: the sheet read ESPN, two of ESPN's hockey seasons are wrong, and the site reads the NHL's own records instead. Utah is left out of that comparison, because the sheet gave it the Coyotes' seasons and the site does not.

Under the hood

The work nobody using it sees.

  1. 01

    No server at run time

    The page is static. Every season of nine leagues since 1903 ships as one JSON file and all scoring runs in the browser, so there is no database, no API key and nothing to wait for when a control moves.

  2. 02

    Staying responsive while dragging

    The ranking for all 221 franchises is recomputed on every change, behind a deferred value so the year ruler keeps up with the pointer. The birth-year curve is about 120 full rankings, and it is keyed on the teams and the scoring settings alone, so dragging the year never recomputes it.

  3. 03

    State in the address

    Settings are written to the query string only when they differ from the defaults, and the year is always written unless the era is all time. Reading it back clamps every year to the seasons on record, drops team keys and league names that do not exist and rejects malformed weights. The last view is also kept in local storage, and a shared link wins over it.

  4. 04

    Feeds for the big four

    NFL, NBA and MLB standings come from ESPN's public standings feed. Hockey comes from the NHL's own stats API, because ESPN's hockey history has seasons with playoff games mixed in. NBA and NHL seasons are stored by the year they started.

  5. 05

    Reference standings over the feed

    ESPN's history leaves clubs out of older seasons, among them most Baltimore Colts seasons and the 1974 Steelers, and has a few wrong records. So the older NFL and NBA seasons have reference standings compiled from Wikipedia. Where the reference covers a season it is the record, and the build prints every place the feed disagrees with it.

  6. 06

    Five leagues from reference files

    MLS, the WNBA, NWSL, the PWHL and the CFL each have one file holding teams, standings, champions and lineage. A live feed only adds seasons newer than the file, and those count as in progress until the file records how they ended. The CFL has no public feed, so it moves only when its file does.

  7. 07

    Lineage as data

    One file lists what each franchise was called and where it played, by first season. The build refuses an era that names an unknown city, or a history that does not end in the club's current name. The engine reads it to name each season and to credit it to the right city.

  8. 08

    City spells

    For the Cities view the engine splits each franchise's seasons by where they were played and scores each stay with the same formula as a whole franchise. A city's number is the average of its stays weighted by their length, so a two-year stopover does not count like a sixty-year one. A short stay can score outside the range set by whole franchises, so it is clamped to the scale.

  9. 09

    A refresh that cannot break the site

    Finished seasons are kept as they are and only missing seasons and the last two years are refetched. Every request has a 25 second timeout and up to five tries with exponential backoff, longer after a 429. A season that fails or does not validate keeps its last good copy, and the file is only rewritten when something changed.

  10. 10

    Checks before anything is written

    A season's wins must equal its losses, within one game for recent years and a small allowance for early records. No club may have more games than the schedule plus eight, and no franchise may appear twice. The run stops if a league would lose seasons or if its latest finished season does not have every current club.

  11. 11

    Champions

    Champions and losing finalists come from a reference file compiled from Wikipedia. A season newer than that file is read off the postseason scoreboard by looking for the final's own headline, walking back up to 28 days from the end of the postseason, and is remembered once decided. The AFL's title games ride along as a second championship in their seasons.

  12. 12

    Runs every morning

    A GitHub Action is scheduled to fetch the standings at 10:17 UTC, run the tests, and commit the data file only when it changed and the tests pass. The commit redeploys the site. A manual run can refetch every season.

  13. 13

    History pinned by tests

    A test lists the first season of all 126 franchises of the big four, the Coyotes and the Seals/Barons included, and fails if any club starts in the wrong year, misses a season it should have played, or has a gap that is not one of the known ones. It also checks title counts against the record books, 27 for the Yankees and 18 for the Celtics among them, and that Seattle still holds the Sonics' 1967 to 2007 seasons.

  14. 14

    Tested against the spreadsheet

    Another test freezes the data where the original spreadsheet stopped, counts only the four leagues it covered, and compares every club with it. Titles must match everywhere, allowing for one World Series played after the sheet was pulled. Outside hockey, wins, losses, season counts and the great and awful counts must match exactly, and both scores within 0.01. Hockey win rates are held to within .012, since its source changed. CI also runs lint, a type check and a production build on every pull request.

  15. 15

    A map with no map library

    A build script projects Natural Earth's 1:50m shapes with a conic equal-area projection fitted to every city in the data, and saves the land, lakes, borders and city positions as plain SVG paths. The browser only draws them.

  16. 16

    One colour scale

    A season's fill is mixed in OKLab between a neutral and the hot or cold colour by its distance from the league, saturating at 2.2 standard deviations. The 0 to 100 scores use the same function, centred on 50, and it reads its colours from the theme.

  17. 17

    Native controls

    The setup, the team picker and the scoring panel are native dialog elements, and the ruler and the sliders are native range inputs restyled, so focus, Escape and the keyboard work the way the browser already does them. The two-handle ruler is two range inputs stacked, with only the handles taking the pointer so both stay reachable.