GLUE Index
Who wins possessions and avoids mistakes without needing the ball?
GLUE stands for Gritty, Low-Usage, Errorless, and the three words are the three parts of the calculation. Gritty is seven kinds of event that win a possession or points without a play being called for you. Low-usage is a penalty on the share of possessions a player finishes while he is on the floor. Errorless is six kinds of event that hand possessions or points back, each one a deduction. A high score means a player was all three at once.
Zero is the average qualified player. A positive score means a player gave his team more than he cost it in these fourteen columns, which is a different claim from being the better player: most franchise players land below zero, because carrying an offense costs usage and turnovers by definition.
It scores every night of the season and every season since 2005-06, the first one where play-by-play recorded who drew offensive and loose ball fouls. A job scheduled for 09:15 UTC pulls every night not yet stored from pbpstats, pulls the two most recent game dates again to catch stat corrections, refreshes the current contracts, and commits the data, which rebuilds the site.
Built with
- Next.js 16
- React 19
- TypeScript
- Node 24
- GitHub Actions
- pbpstats API
- Basketball Reference
- Vercel
Free to use, no account. Night and season boards back to 2005-06.
The screens
Redrawn for this site from the real product, in its own type and colours, with sample data.
Everything it does
42 features in 8 areas, written from the code.
Glue guys of the night
The home page is the most recent night of NBA games, ranked.
6 features
- The latest night as the front page
- The home page shows the most recent scored night, and every other scored night has its own page at /night/<date>. Each one counts the games, the players who qualified and the pool they were scored against.
- The leader's card
- The top player of the night gets a card with his name under a highlighter stroke, his team and opponent, minutes and box score line, his GLUE in large figures and his full ledger. The figure counts up from zero when the page is reached through a link.
- Next nine and bottom three
- Ranks two to ten are listed beside the card, and the last three of the night under them when the night has more than thirteen qualified players. Each row carries a small bar of what hurt and what helped, all on one scale.
- Final scores
- A strip of the night's results sits under the date, with the winner of each game in ink and the loser greyed.
- Full slate table
- Every player who reached 15 minutes, with minutes, GLUE and all fourteen raw counts. Any column sorts, the search box matches a name or a team abbreviation, and zero counts are dimmed so the events stand out. Rows are added 40 at a time as the reader nears the end of them.
- Date picker
- Arrows step one night back or forward, and a menu grouped by month jumps to any scored night.
The ledger
The product's signature component: a score itemised like a column of figures.
4 features
- Fourteen rows
- Seven credits and seven debits. Each row shows the raw count and the weighted z-score that count produced, signed, in green when it helped and red when it hurt.
- Hurt and helped bars
- Every row has a bar drawn right or left of a centre axis. The bars in one ledger share a scale set by its largest contribution, so the row that decided the score is visible at a glance.
- Subtotals and a total
- The credits and debits headings carry the sum of their rows, and a double rule closes the column with the GLUE total. The fourteen contributions add up to the score.
- Debits can help
- A debit row is a z-score like any other, so a player with fewer turnovers or lower usage than the pool's average gets a positive figure there. The ledger shows that as a green bar in the debits group.
Season leaderboards
One board per season from 2005-06 to the season in progress.
5 features
- Every qualified player
- A season board ranks every player with at least 1,000 minutes, with games, minutes, GLUE and the fourteen counts. It opens with the leader's ledger, the next nine and the bottom three, laid out like a night.
- A season in progress
- The current season is labelled in progress with the number of games played of 82 and the date it runs through. Its minutes bar scales with games played, so a board exists from the first weeks.
- Shortened seasons
- A finished season with fewer than 82 games is labelled with its length and uses the same scaled minutes bar.
- Season picker
- Arrows step a season back or forward and a menu lists every scored season, staying on the view that is open. The Seasons link goes straight to the newest one.
- Sort and search
- The table sorts by GLUE, name, games, minutes or any of the fourteen components, and searches by player name or team abbreviation.
Stars and value
Two more views of a season board. Neither changes a score, only who is on the list.
6 features
- A switch on every season
- Each season page has an Everyone and Stars switch under its title. A season with contract data also offers Value, which today is the current season.
- Gluiest stars
- The qualified players at 27% usage or more, ranked among themselves by GLUE. They are still scored against the whole league, and the line under the title counts how many of them score above zero.
- The same board for stars
- The stars view reuses the season layout: the top star's ledger, the next nine, the bottom three and a sortable table of every star.
- Most GLUE per dollar
- The value view lists players with a positive score and a listed contract, ranked by GLUE per $1M of this season's salary. Players below zero are left out, because a negative score over a salary does not rank anything sensibly.
- Value table
- Each row shows minutes, GLUE with its hurt and helped strip, the player's rank on the full board, this season's salary, the deal's average annual value and the ratio. It sorts by any of those and searches by name or team.
- What the value view leaves out
- The page says how many qualified players have no listed contract, mostly two-way deals, and gives the date the contracts were pulled. The source lists current deals only, so past seasons have no value view.
Careers
A running balance across every completed season a player qualified in.
4 features
- Career GLUE
- The sum of a player's completed, qualified season scores. Zero is an average season, so years above average add to the balance and years below draw it down.
- Career table
- Each row has the career total drawn to scale, the number of seasons, the span, the per-season average, the best season with a link to that board, and the teams played for.
- Highest or lowest
- A toggle flips the table to read from the lowest career total up.
- Search and paging
- Search filters by name. The table renders 40 rows at first and adds more as the reader scrolls toward the end, with a line that says how many are showing.
Player pages
One page for every player who appears in any scored season or night.
6 features
- Four headline figures
- Career GLUE with its rank among all careers, the per-season average, the best season, and the current season with its rank and an in-progress note. Negative figures are set in red, and the line under the name gives this season's salary and the deal's average annual value when a contract is listed.
- GLUE by season
- A bar per qualified season, up for above average and down for below, each linked to that season's board. The season in progress is hatched.
- A season's ledger
- The current season's ledger sits beside the chart, or the most recent season's when the player is not active.
- Season by season
- A table of every qualified season with team, games, minutes, GLUE, rank among qualified players and all fourteen counts.
- Best and latest nights
- Two lists of eight single games, the highest scores and the most recent, each with the opponent, minutes, rank on the night and a link to that night.
- Players without a qualified season
- A player who has only single games still gets a page. It says no season qualifies yet and lists his nights.
Method page
The whole formula, published on the site.
8 features
- The name is the formula
- The page opens by spelling out Gritty, Low-Usage, Errorless and saying the three words are the three parts of the calculation: seven kinds of event that win a possession or points, a penalty on the share of possessions a player finishes, and six kinds of event that hand possessions or points back, each one a deduction.
- The equations
- The z-score, the sample standard deviation and the weighted sum are set as MathML.
- Components and weights
- A table of all fourteen components with the weight, the reason it counts, the pbpstats field it is read from, and what one event was worth in the latest finished season: the weight divided by that season's standard deviation.
- A worked example
- The leader of the latest finished season is shown as a full ledger, so a reader can follow one score from counts to total.
- Who is compared with whom
- Separate sections state the pool for seasons, single games and careers, including the minutes bars and why careers start in 2005-06.
- Stars and value explained
- A section states what the two extra season views show, that neither changes a score, and where the contract figures come from.
- Calibration notes
- The page reports the free throw percentage at which a trip to the line is worth nothing, computed from the season's deviations, and explains why loose ball fouls drawn was trimmed.
- Left out on purpose
- A list of seven things the index does not count, each with its reason, including raw blocks, dead-ball turnovers, second chance points and minutes as a penalty.
Open data
3 features
- The latest night as JSON
- /data/latest.json is the most recent night: its games, the baseline it was scored against, and every qualified player's counts and contributions.
- Any night or season
- /data/glue-YYYY-MM-DD.json returns any scored night and /data/season-YYYY-YY.json any season board, in the same shape the pages are built from.
- Source and scope stated
- The footer of every page credits pbpstats.com, says the index covers the regular season only, and states that the site is not affiliated with the NBA.
The math
The formulas are the ones the code runs, and each chart is computed from them.
01
Count fourteen things
Seven credits and seven debits are read from play-by-play totals for each player. Every count is a raw total and usage is the one rate, so a player earns GLUE by being on the floor and doing these things. Three columns are defined narrowly: only blocks the defense recovers, only turnovers that are live, and only the fouls that put an opponent on the line.
credits: steals, recovered blocks, offensive fouls drawn, offensive rebounds, threes made, free throws made, loose ball fouls drawn
debits: live-ball turnovers, usage rate, bad fouls, offensive fouls committed, missed free throws, shots blocked, loose ball fouls committed
bad fouls = shooting fouls + non-shooting penalty fouls that are not take fouls
missed free throws = FTA − FT made
02
Choose the pool
A score only means something against a comparison group. For a season it is every player over a minutes bar that scales with games played, so the board works in November and in shortened seasons. For a single game it is every player-game of at least 15 minutes in the season to date, that night included, so a two-game slate cannot make an ordinary line look historic. Early in a season the pool is topped up with the nearest games outside it until it holds 3,000 player-games.
season: minutes ≥ round(1000 × team games / 82)
game: seconds ≥ 15 × 60
night pool = season to date, extended to 3000 player-games when short
03
Standardize each component
Counts come in very different sizes: a season leader might have 150 steals and 12 offensive fouls drawn. Each component is turned into a z-score, the number of standard deviations a player sits above or below the pool's mean, using the sample standard deviation. A component with no spread in the pool contributes nothing.
z = (x − mean) / s
s = sqrt(Σ (x − mean)2 / (n − 1))
04
Weight and sum
Each z-score is multiplied by its weight and the fourteen results are added. Weights descend by possession impact: events that flip a possession sit at 1.0 to 1.1, events that gift points at 0.8 to 0.9, and skill signals and carelessness taxes at 0.3 to 0.7. Usage carries the joint heaviest weight against, which keeps this a glue metric and stops high-minute stars from winning on volume. Each product is kept, so every score can be shown as a ledger of what helped and what hurt.
GLUE = Σ w × z over the 14 components
w credits = +1.0, +1.0, +0.9, +0.8, +0.7, +0.4, +0.4
w debits = −1.1, −1.1, −0.8, −0.5, −0.3, −0.3, −0.3
05
Check what one event is worth
Dividing a weight by a season's standard deviation gives the GLUE one event was worth that year, which makes the weights auditable. The free throw pair is the clearest case: a make earns a little and a miss costs more, so there is a percentage where a trip to the line is worth nothing. In 2025-26 it was 74.5%, a little under the league average, so drawing contact pays for an average shooter. Loose ball fouls drawn is held to 0.4 because it correlates with offensive rebounds at r = 0.78, and at full weight it paid rim-running bigs twice.
GLUE per event = w / s
break-even FT% = (0.3 / s missed) / (0.4 / s made + 0.3 / s missed)
06
Careers, stars and value
The season scores feed three more lists, and none of them changes a score. Career GLUE is the sum of a player's completed, qualified seasons, so with zero as an average season it works like a running balance. Gluiest stars keeps the players at 27% usage or more and ranks them among themselves. Usage is the heaviest debit in the formula, so they start a long way behind. Value divides GLUE by this season's salary in millions, for players with a positive score and a listed contract. Salaries come from Basketball Reference's contracts table, which lists current deals only, so the value view exists for the current season.
career = Σ GLUE over completed, qualified seasons
star: usage ≥ 27
value = GLUE / (salary / 1,000,000) for GLUE > 0
Under the hood
The work nobody using it sees.
- 01
A nightly GitHub Actions pipeline
A workflow is scheduled for 09:15 UTC, after the West Coast games end, and can also be started by hand. It pulls the new nights, refreshes the current season's totals and the contracts table, scores everything as a check, and commits the raw data. The push triggers a Vercel build.
- 02
pbpstats for every count
Every count and score comes from the pbpstats.com API, which derives it from NBA play-by-play: one endpoint for player totals, by season or by a single date, and one for completed games. Only the regular season is requested.
- 03
Raw data committed, scores recomputed
The repo stores only what pbpstats returned, one file per night and one per season. Scores are computed from those files on every build, so a change to the formula needs no re-fetch.
- 04
Stat corrections
Each nightly run pulls the two most recent game dates whether or not they are stored, so a correction made after the first pull replaces the stored file.
- 05
Resumable backfill with retries
A backfill command walks a season's game dates and skips any date already on disk, so it can be stopped and restarted. Flags start it from the last date or from the middle, so several workers can run at once. It waits 1.5 seconds between dates, and each request gets up to six attempts with a wait that starts at two seconds and doubles.
- 06
One formula file
The fourteen components, their weights and the thresholds live in lib/formula.ts, which has no dependencies and is imported by both the pipeline and the site. The method page's table is rendered from the same list the scores are computed with.
- 07
What each component is and why
Credits are steals and recovered blocks at 1.0, offensive fouls drawn at 0.9, offensive rebounds at 0.8, threes made at 0.7, and free throws made and loose ball fouls drawn at 0.4. Debits are live-ball turnovers and usage rate at 1.1, bad fouls at 0.8, offensive fouls committed at 0.5, and missed free throws, shots blocked and loose ball fouls committed at 0.3. Weights descend by how directly the event flips a possession or gives away points.
- 08
Choices inside the components
Only blocks the defence recovers count, only live-ball turnovers are penalised, and bad fouls are shooting fouls plus non-shooting penalty fouls that are not take fouls. Loose ball fouls drawn is held to 0.4 because it tracks offensive rebounding at r = 0.78. Every count is a raw total, and usage rate is the one rate, weighted 1.1 against so high-minute stars cannot win on volume.
- 09
Z-scores with a sample deviation
Each component is standardised against its pool with the sample standard deviation, multiplied by its weight and summed. A component with no spread in the pool contributes zero, contributions are stored to three decimals and the score to two.
- 10
Scoring a single game against the season to date
A player needs 15 minutes in a game to be scored. His pool is every qualified player-game of the season up to and including that night, so the size of the slate does not change what a line is worth. Early in a season the pool is extended to 3,000 player-games, first with the most recent games before the season and then with games after the night, and its size and dates are stored with the night.
- 11
Prefix sums over every player-game
All qualified player-games are laid out in date order with running sums of each component and its square. The mean and deviation of any window come from two lookups, so every night's baseline is computed without rescanning the pool.
- 12
Season qualification and untracked seasons
The minutes bar is 1,000 times team games over 82, rounded, so it scales during a season and in shortened ones. A season is skipped when fewer than half its qualified players have an offensive foul drawn or fewer than 30% have a loose ball foul drawn, which is how seasons before the play-by-play tracked those fouls are excluded.
- 13
Contracts from Basketball Reference
Salaries come from one page, Basketball Reference's contracts table, parsed for each player's salary this season and the average over the listed years of his deal. The pull is best-effort: a failed request, a missing season column or fewer than 300 parsed contracts leaves the last good file in place and never fails the nightly run. Contracts are joined to pbpstats players by a normalised name: accents, punctuation, hyphens and suffixes such as Jr. are removed and case is ignored. The build logs how many qualified players matched, and a player with no match is left without a salary.
- 14
Stars and value without rescoring
Both views are filters over the scored season board. Stars keeps the players at or above a usage constant of 27 and renumbers them, and value divides GLUE by salary in millions for positive scores and sorts by it. Value pages are generated only for seasons that have a contract file.
- 15
Navigation that answers the click
A line along the bottom of the header starts when a navigation is requested and completes when the new path commits. Pages crossfade with React view transitions and slide in the direction of the arrow when stepping a night or a season, sections arrive in a short stagger, a skeleton in the shape of a board shows for slow loads, and long tables render 40 rows at a time behind an intersection observer. All of it is switched off under reduced motion.
- 16
Static generation and public JSON
The build step writes scored JSON for every night, season, player and the career table, and every page is generated from those files at build time with no runtime data layer. The same step writes the night and season boards to the public folder, which is the JSON the site serves. The pipeline scripts are TypeScript run directly by Node 24.