# Deekle Calculator

> A minimalist fantasy basketball tracker that computes weekly all-play head-to-head sweeps, rollovers, Elkeeds, and Busts for the Therbligs league.

- Format: Project
- Date: Oct 2026 (2026-10-26)
- Topics: Fantasy Basketball, Netlify Functions, JavaScript, Web App
- URL: https://jeffn.dev/projects/deekle-calculator/
- Open calculator: https://deekle-calculator.netlify.app/

In head-to-head fantasy basketball, weekly luck hides behind the schedule. The Deekle Calculator answers a sharper question for the Therbligs 9-category league: which team would have beaten every single opponent in the league that week?

## What it tracks

Every scoring period is evaluated across all nine categories (`PTS`, `REB`, `AST`, `STL`, `BLK`, `3PM`, `FG%`, `FT%`, and reverse `TO`, with split categories decided by `PTS`):

- **Deekle**: Awarded to a team that wins its simulated head-to-head matchup against every other team in the league for the week.
- **Double, Triple, and beyond**: When nobody clears the whole league in a given week, the Deekle rolls over to the next winner as a multi-week streak.
- **Elkeeds**: The mirror image of a Deekle, earned by losing to every other team in the league.
- **Busts**: The single spoiler loss that denied another team an otherwise clean weekly sweep.

## Built to stay fast and archived

The front end is plain HTML, CSS, and vanilla JavaScript set in IBM Plex Sans and IBM Plex Mono, presenting the week's verdict in one headline followed by an interactive head-to-head matrix, category-totals table, and season recap timeline.

Live seasons are served through a Netlify Function (`/api/deekle`), while finished seasons freeze into static JSON snapshots under `/history/` using the exact same payload shape. If the live endpoint ever hiccups, the interface degrades gracefully and keeps archived seasons browsable.

Try the live tracker at [deekle-calculator.netlify.app](https://deekle-calculator.netlify.app/).
