Install
pnpm add @sportsdataverse/sdvplot @sportsdataverse/sporty @sportsdataverse/sdvtables @observablehq/plot
The chart libraries are optional peers: install the one you draw with. Getting started lists every entry point; the gallery shows every example, each run in CI before it is published.
What's covered
70 leagues and 7,210 teams in sdvplot; 10 sports and 54 league surfaces (plus custom dimensions) in sporty.
Leagues and resources (sdvplot)
Teams per league with each resource. Browse them in the Logos by league and Team colours notebooks.
| League | Teams | Colours | Logos | Wordmarks | Aliases | Headshots |
|---|---|---|---|---|---|---|
| Football | ||||||
nfl NFL | 32 | 32 | 35 | 32 | 611 (13 id systems) | ESPNgsis |
cfb College football | 687 | 687 | 757 | 267 | 14,131 (14 id systems) | ESPN |
ufl UFL | 11 | 11 | 11 | none | 95 (5 id systems) | none |
xfl XFL | 11 | 11 | 11 | none | 64 (4 id systems) | none |
usfl USFL | 9 | 9 | 9 | none | 27 (3 id systems) | none |
aaf Alliance of American Football | 8 | 8 | 9 | none | 34 (5 id systems) | none |
| Basketball | ||||||
nba NBA | 30 | 30 | 33 | none | 574 (13 id systems) | ESPNleague ids |
wnba WNBA | 15 | 15 | 18 | none | 285 (12 id systems) | ESPNleague ids |
nbagl NBA G League | 32 | 32 | 32 | none | 224 (5 id systems) | none |
mbb Men's college basketball | 366 | 366 | 399 | 94 | 13,812 (14 id systems) | ESPN |
wbb Women's college basketball | 364 | 364 | 397 | 2 | 12,213 (13 id systems) | ESPN |
| Baseball and softball | ||||||
mlb MLB | 30 | 30 | 33 | 30 | 795 (14 id systems) | ESPNleague ids |
milb Minor League Baseball | 286 | 286 | 286 | 166 | 1,747 (4 id systems) | none |
ncaa_baseball College baseball | 414 | 414 | 448 | 6 | 7,971 (7 id systems) | none |
ncaa_softball College softball | 415 | 415 | 452 | 2 | 3,061 (7 id systems) | none |
| Hockey | ||||||
nhl NHL | 32 | 32 | 41 | 2 | 625 (12 id systems) | ESPNleague ids |
pwhl PWHL | 12 | 12 | 12 | none | 48 (4 id systems) | none |
ahl AHL | 61 | 61 | 61 | none | 244 (4 id systems) | none |
echl ECHL | 59 | 59 | 59 | none | 236 (4 id systems) | none |
ohl OHL | 27 | 27 | 27 | none | 108 (4 id systems) | none |
whl WHL | 23 | 23 | 23 | none | 92 (4 id systems) | none |
qmjhl QMJHL | 26 | 26 | 26 | none | 104 (4 id systems) | none |
ushl USHL | 17 | 17 | 17 | none | 68 (4 id systems) | none |
phf Premier Hockey Federation | 8 | 8 | 8 | 1 | 27 (3 id systems) | none |
ncaa_mhockey Men's college hockey | 110 | 110 | 119 | 1 | 680 (6 id systems) | none |
ncaa_whockey Women's college hockey | 48 | 48 | 54 | 1 | 303 (6 id systems) | none |
| Soccer | ||||||
soccer Soccer clubs | 2,681 | 2,681 | 2,681 | none | 13,344 (4 id systems) | none |
| Cricket | ||||||
cricket Cricket teams | 111 | 111 | 111 | none | 488 (4 id systems) | none |
| Other leagues | ||||||
aba | 30 | 30 | 30 | none | 90 (3 id systems) | none |
acb | 25 | 25 | 25 | none | 75 (3 id systems) | none |
ajhl | 17 | 17 | 17 | none | 68 (4 id systems) | none |
bbl | 55 | 55 | 55 | none | 165 (3 id systems) | none |
bchl | 23 | 23 | 23 | none | 92 (4 id systems) | none |
bleague | 58 | 58 | 58 | none | 174 (3 id systems) | none |
bnxt | 23 | 23 | 23 | none | 69 (3 id systems) | none |
cchl | 13 | 13 | 13 | none | 52 (4 id systems) | none |
cebl | 15 | 15 | 15 | none | 45 (3 id systems) | none |
cfl | 9 | 9 | 10 | none | 65 (6 id systems) | none |
chl | 41 | 41 | 41 | none | 164 (4 id systems) | none |
dbbl | 12 | 12 | 12 | none | 36 (3 id systems) | none |
dbl | 12 | 12 | 12 | none | 36 (3 id systems) | none |
easl | 12 | 12 | 12 | none | 36 (3 id systems) | none |
elh | 14 | 14 | 14 | none | 42 (3 id systems) | none |
euroleague | 89 | 89 | 89 | none | 267 (3 id systems) | none |
f1 | 31 | 31 | 31 | none | 96 (3 id systems) | none |
feb | 327 | 327 | 327 | none | 981 (3 id systems) | none |
fiba | 30 | 30 | 30 | none | 150 (5 id systems) | none |
gojhl | 45 | 45 | 45 | none | 180 (4 id systems) | none |
ha | 40 | 40 | 40 | none | 120 (3 id systems) | none |
ibba | 21 | 21 | 21 | none | 63 (3 id systems) | none |
iihf | 16 | 16 | 16 | none | 80 (5 id systems) | none |
kbl | 10 | 10 | 10 | none | 30 (3 id systems) | none |
kijhl | 23 | 23 | 23 | none | 92 (4 id systems) | none |
kzs | 11 | 11 | 11 | none | 33 (3 id systems) | none |
lba | 24 | 24 | 24 | none | 72 (3 id systems) | none |
lkl | 10 | 10 | 10 | none | 30 (3 id systems) | none |
magnus | 23 | 23 | 23 | none | 69 (3 id systems) | none |
mhl | 13 | 13 | 13 | none | 52 (4 id systems) | none |
mjhl | 19 | 19 | 19 | none | 76 (4 id systems) | none |
nbl | 10 | 10 | 10 | none | 70 (5 id systems) | none |
nbl_au | 26 | 26 | 26 | none | 78 (3 id systems) | none |
nojhl | 27 | 27 | 27 | none | 108 (4 id systems) | none |
ojhl | 28 | 28 | 28 | none | 112 (4 id systems) | none |
shl | 25 | 25 | 25 | none | 75 (3 id systems) | none |
sjhl | 13 | 13 | 13 | none | 52 (4 id systems) | none |
sphl | 16 | 16 | 16 | none | 64 (4 id systems) | none |
vijhl | 12 | 12 | 12 | none | 48 (4 id systems) | none |
vtb | 11 | 11 | 11 | none | 33 (3 id systems) | none |
wjbl | 15 | 15 | 15 | none | 45 (3 id systems) | none |
wnbl | 11 | 11 | 11 | none | 33 (3 id systems) | none |
Playing surfaces (sporty)
Every sport surface() draws and the leagues it knows; custom takes your own dimensions. See the surfaces guide and the Playing surfaces notebook.
- Baseball
- custom
- little league
- milb
- mlb
- ncaa
- nfhs
- pony
- Basketball
- custom
- fiba
- nba
- nba g league
- ncaa
- nfhs
- wnba
- Curling
- curling canada
- custom
- wcf
- Football
- cfl
- custom
- ncaa
- nfhs11
- nfhs6
- nfhs8
- nfhs9
- nfl
- Hockey
- ahl
- custom
- echl
- iihf
- ncaa
- nhl
- nwhl
- ohl
- phf
- pwhl
- qmjhl
- ushl
- Lacrosse
- custom
- ncaam
- ncaaw
- nll
- pll
- usam
- usaw
- world lacrosse
- Soccer
- custom
- epl
- fifa
- mls
- ncaa
- nwsl
- Softball
- custom
- ncaa
- Tennis
- atp
- custom
- ita
- itf
- ncaa
- usta
- wta
- Volleyball
- custom
- fivb
- ncaa
- usa volleyball
Data sources and provenance
- Team index
- Curated in sdvplot (Python, MIT) and bundled here, one chunk per league: index
4ce85fb64837. Nothing is downloaded to resolve a team. - Logos and wordmarks
- The SportsDataverse logo archive: content-addressed files on
sdv.nyc3.cdn.digitaloceanspaces.com, manifest of 2026-11-25. Marks by source: espn 41,702 · hockeytech 2,160 · mlbstatic 976 · scb 682 · bleague 557 · nhl 441 · cfbplotr-legacy 373 · feb 327 · formula1.com 173 · ncaa.com 128 · legabasket 110 · acb 109 · euroleague 89 · nflverse 70 · wayback 65 · cricinfo 64 · nbl_rosetta 58 · sportpress 57 · hockeyallsvenskan 40 · ibba 36 · abaliga 30 · cebl 28 · shl 25 · hockeyfrance 23 · wikimedia-commons 16 · wjbl 15 · hokej.cz 14 · fox 14 · cfl 13 · sportality 12 · datacore 12 · kzs 11 · infobasket 11 · kbl 10 · lkl 10 · shiftstats 9 · aaf-strip-crop 8 · nwhl.co 6 · aaf.com 1. - Team colours
- Teams by colour source: espn 4,253 · logo 2,911 · nflverse 32 · openf1 14.
- Headshots
- ESPN's image CDN by athlete id (cfb, mbb, mlb, nba, nfl, nhl, wbb, wnba); the leagues' own CDNs by league player id (mlb, nba, nhl, wnba); NFL gsis ids through nflverse's players table. URLs only: no image is bundled.
- nflverse
- The gsis map, the NFL colours and the
nflversealiases derive from nflverse-data, licensed CC BY 4.0 (see NOTICE). - Surface dimensions
- Ported from sportyR (Ross Drucker) and sportypy, distributed under MIT by agreement of the SportsDataverse maintainers.
Any identifier
An abbreviation, an ESPN id, a full name or a relocated franchise's old code: resolve() turns it into one stable team id, season-aware, and never guesses.
Logos, wordmarks, headshots
Marks for every era from the SportsDataverse logo archive, and player headshots by ESPN or league id.
Team colours
teamColors(), palette() and matchup colours that keep two teams apart, with WCAG contrast helpers.
Playing surfaces
Courts, rinks, fields and pitches from sporty, in SVG, canvas, Observable Plot or D3.
Tables
sdvtables: a plain-data spec with logo, colour and bar cells, themes, and HTML, React or PNG output.
Your chart library
Observable Plot, D3 and React, plus adapters for 20+ chart, map, grid and 3D libraries: Chart.js, Plotly, Vega-Lite, ECharts, Recharts, MUI X, nivo, Victory, uPlot, Svelte, deck.gl, MapLibre, Three.js and more. Node and SSR too.