Side project · Nov 2026
Sent Off
Every manager in your Fantasy Premier League mini-league, rated out of 10 and roasted with their own numbers.

01 The problem
A Fantasy Premier League mini-league lives in its group chat, and the chat runs on regret: points left on the bench, the captain who blanked, the player sold the week before he hauled. The data behind all of that is public in the FPL API, with no login. The tools that turn it into banter are paid, per-league subscriptions. Nothing was free, one-shot and funny, so I built that over a weekend.
02 What I built
A site where you paste a league ID, a league URL or your team ID and get a match report: the table, four league awards (Golden Boot of Shame, Red Card, Benchwarmer of the Year, Wooden Spoon), then a card for every manager with a rating out of ten, a red or yellow card, a title like The Captaincy Criminal, the roast and the facts behind it. Each card copies as text or shares as a portrait image sized for the chat, and a link reports a roast that lands wrong.
Under it, eleven rules written in code read every manager's season from the FPL API: bench points, captain blanks, hits, panic sales, wasted chips and so on. Each gives a fact with a sting from 0 to 100, ranked against the rest of the league. The top facts go to a language model, which only writes the joke. Every number in its reply is checked against the facts it was given, and a template line replaces anything that fails. Reports are cached until the next deadline, so a league costs one build per gameweek.
03 Screens

Home: one input, two sample cards. 
Match report on a phone: table, then awards. 
Home on a phone.
04 Architecture
- League ID or URLparsed to a number, nothing else
- FPL API4 at a time, retry on 429 and 5xx
- 11 fact rulespure functions, sting 0–100, ranked
- Writer + checksGroq or Claude Haiku, 25–40 words
- Match reportRedis, until the next deadline
- Share image1080×1350 PNG, next/og
05 Key decisions
- 01
Facts in code, jokes from the model
The model never sees raw FPL data or picks what to mock. The rules compute every fact deterministically, rank them across the league and pass the top three as JSON. That keeps the roasts true, testable against a fixture league, and cheap: one short call per manager.
- 02
Every number is checked
A roast is rejected if it's outside 25 to 40 words, contains a banned word or a link, or uses a number that wasn't in the facts sent. A rejected roast becomes a template line built from the same fact, so a league always gets a full set of cards and the model can't invent a stat about a real person.
- 03
Fully usable with no keys
Without a Groq or Anthropic key every roast is a template line, and without a Redis URL the cache is an in-memory map with the same expiries. Tests and local dev need nothing installed, and if the writer's daily cap is hit, the app stays up.
- 04
Stream in three phases, not card by card
Sting is ranked across the league, so no card is final until every manager is read. The page shows the table straight after the standings call, a "Reading 14 of 20" counter while the manager data comes in, then cards as each roast lands. Cold builds are rate limited per IP and globally, so Sent Off never looks like a scraper to FPL.
06 Results
11
rules, one file each, with its definition beside it
20
managers rated per league, about 300 FPL requests
91
tests, none of them touching the network
07 Stack
- TypeScript
- Next.js
- React
- Tailwind CSS
- Vitest
- Anthropic SDK
- Groq
- Upstash Redis
- Vercel