Skip to content

About

🏈 Draft War Room: superflex fantasy cockpit with Monte Carlo survival odds, start/sit consensus, waiver radar and live injuries. Zero-build PWA.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

131 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏈 Draft War Room: Buck Breakers Edition

A superflex fantasy-football cockpit for draft day and the season after it. Monte Carlo survival odds, an engine that out-drafts ADP, start/sit consensus, waiver radar and live injuries, all in a zero-build installable PWA.

Live demo

Zero build Vanilla JS PWA Vercel Sleeper API CI License: MIT

Season HQ: season command center, weekly start/sit decision sheet and the Sleeper/ESPN/CBS consensus starting lineup

The full draft-day cockpit for any league shape (built for a 12-team superflex, 6-pt pass TD, slot 12). Live Sleeper draft sync, real 2026 byes and schedules, three seasons of usage-grade stats on every player. Once the draft is done, Season Mode takes over as a weekly command center. Static site β€” pushes to main auto-deploy on Vercel. Installable PWA, works offline once loaded.

House key to enter: the classic. πŸ”‘

Highlights

  • ⚑ On-the-Clock Takeover: your top three picks, survival odds if you wait, and one-tap drafting
  • 🎲 Monte Carlo survival odds at both of your turn picks, with CPU drafters seeded from the real pick log
  • πŸ† Benchmarked engine that out-drafts a pure-ADP bot in 100/100 rooms, gated in CI
  • πŸ“‹ Weekly start/sit sheet built on an equal-weight Sleeper + ESPN + CBS projection consensus, scored with your league's settings
  • πŸ“₯ Waiver radar, trade builder, playoff and title odds (a 5,000-run all-team championship sim)
  • 🩺 Live injuries from ESPN, πŸ”” opt-in phone alerts via Web Push, and πŸŽ™ voice control
  • πŸ§ͺ No build step, plus a CI pipeline with type-checking, data, logic and golden tests, a 192-pick marathon and a headless-Chrome E2E

Draft day

When your pick arrives, the screen becomes the ⚑ On-the-Clock Takeover β€” top three choices with the argument for each, survival odds if you wait, one-tap draft. Before that: 🎯 snipe alerts warn you who's about to steal your targets, the πŸ“œ War Plan pre-decides your next three picks with fallbacks, 🧠 Coach's Call argues the case in plain English, and a πŸŽ™ voice toggle lets you say "taken Gibbs" / "mine Bowers" hands-free. A πŸ“Ί booth ticker narrates steals, reaches and runs; a πŸ‘» ghost drafter races you; afterwards, watch the 🏁 60-second story replay or settle regrets with the πŸ”€ what-if time machine.

Flip πŸ”΄ Live on when the draft starts: pace clock + ETA, a chime and a panic banner with a one-tap TAKE <TOP PICK> when you're on the clock, and confetti + auto-report when your 16th pick lands. Mark every pick (βœ“ MINE / βœ• taken, πŸ“‹ Paste to catch up, click the pick banner to resync). Keyboard: / search Β· ↑↓ highlight Β· M mine Β· T taken Β· D never Β· N note Β· C compare Β· Ctrl+Z/Y undo/redo Β· ? help.

The engine

Value-over-replacement scaled for superflex scarcity, positional saturation (your 4th QB is worthless, your 3rd is insurance), requirement floors with hard locks, tier cliffs, team-stack boosts with stack-opportunity alerts, analyst targets ⭐, prop-market leans β–²β–Ό, market Edge column, πŸ’Ž fallers, and Monte Carlo survival odds at both of your turn picks β€” with CPU teams seeded from the actual pick log, injury-discounted ADP, live ADP drift, QB-stack and handcuff tendencies, and a tunable run-contagion dial. Benchmarked: the engine out-drafts a pure-ADP bot 100/100 rooms (+363 projected starter points) β€” node scripts/benchmark.mjs, gated in CI. See BENCHMARK.md.

Every player has a story

player card Hometown (with πŸ’– favorite-state/college mode β€” set OH and feel it), college in school colors, high school, rookie class, three seasons of points and positional finishes with trend bars, breakout/bust/prime-year tags, and an auto-written scouting paragraph on every card. Research-mapped against FantasyPros Draft Wizard, PlayerProfiler, Sleeper and RotoWire β€” see BESTPRACTICES.md.

Intelligence

  • 🩺 Injury Center β€” live ESPN reports (auto-refresh every 5 min) graded Q/D/O/IR, mid-draft change toasts, roster-health warnings, ESPN headlines, Sleeper trending buzz πŸ“ˆ
  • Player cards β€” photo, bio (age / seasons / college / size), 2025 actuals vs 2026 projected stat table, positional finish, PPG, depth chart, his QB, playoff-week slate
  • 🎲 Mocks (5 strategies + consensus) β€” every pick reason-tagged (Need/Stack/Value/Forced), reproducible by seed with A/B seed compare Β· πŸŽ“ Draft Report (grade, steals, stacks, superlatives, standings) Β· πŸ—‚ Board with real league-mate names (each with an emoji identity), projected standings and a pick-trade calculator Β· threat board ("4 QB-needy teams before your pick")

Season Mode

Season Mode turns on by itself once your Sleeper league ID is in Settings and the draft is complete. The finished draft imports, and Season HQ becomes page 1:

  • Weekly decision sheet. A legal lineup recommendation against your real Sleeper opponent, built on an equal-weight Sleeper + ESPN + CBS consensus scored with your league's settings. Every starter shows each source's number and the range between them. It never submits anything to Sleeper. You copy the lineup, apply it in Sleeper, then refresh to verify.
  • πŸ“Š Scores: live matchups with projected finals and win %, power rankings, an all-play luck index and playoff odds. πŸ“₯ Waivers: add/drop upgrade pairs, a FAAB bid suggester and a claim planner. πŸ” Trades: a builder that gives verdicts for both lineups and scans every roster. πŸ“ˆ Season and πŸ“– Recap cards.
  • Command center. League-wide waiver radar, a 5,000-run championship simulation, source-health indicators, and opt-in phone notifications (Web Push; encrypted at rest; scanned every five minutes by Vercel cron).
  • War Room Mode: a fullscreen Sunday dashboard. The Voice: hands-free questions answered aloud. The Arsenal, Broadcast, The Vault and Edge Radar round it out. See BADASS.md.
  • /bets: an NFL + college football page that reads the separate Edge Board feed, plus "$5 Party Parlay" ideas. It only shows quotes and never places bets.

Full details: SEASON.md.

Every-summer data swap

./tools/refresh.sh <new-projections.csv> <new-team-board.csv> [last-season]
git add -A && git commit -m "2027 data" && git push

That regenerates everything (projections, ADP, playoff slates, headshots, bios, last-season stats, injury snapshot via public Sleeper/ESPN APIs), bumps the PWA cache, and runs the test suite. Mid-season news? Settings β†’ import a projections CSV right in the app.

Docs

MANUAL β€” how to use it Β· PREP β€” before draft day Β· ENGINE β€” how it thinks Β· SEASON β€” Season Mode Β· PERF Β· DATA Β· ARCHITECTURE Β· BESTPRACTICES Β· PRIVACY Β· CONTRIBUTING Β· CHANGELOG

Architecture

  • Client: zero-build static PWA. index.html + styles.css + plain script modules loaded in order (data.js β†’ engine.js β†’ core.js β†’ season.js β†’ win.js β†’ simx.js β†’ ultra.js β†’ views.js β†’ wire.js β†’ campaign.js β†’ boot.js). A service worker (sw.js) handles offline caching, and state lives in localStorage with versioned migrations. There's no framework and no bundler.
  • Engine. engine.js is the draft kernel: value-over-replacement, saturation, tiers, stacks and Monte Carlo. CI type-checks it with tsc --checkJs. See ENGINE.md and SIM.md.
  • Server: a few small Vercel functions in api/ for the things a browser can't do alone. These are ESPN/CBS projection fetching with a 15-minute cache, the season campaign model, Web Push alert subscriptions and scans (web-push + @vercel/blob, encrypted at rest), and the Edge Board feed. Fixed vercel.json rewrites proxy the ESPN injury and scoreboard feeds around CORS.
  • Data pipeline. tools/refresh.sh and tools/enrich.py rebuild data.js from projection and board CSVs plus the public Sleeper and ESPN APIs.
  • Integrity. Releases ship a sha256 integrity.json, and vercel.json sets strict security headers.

More: ARCHITECTURE.md Β· DATA-FLOW.md Β· SYNC.md Β· SECURITY.md

Run it locally

git clone https://github.com/JROtto5/draft-war-room.git
cd draft-war-room
npm ci --ignore-scripts        # only needed for the api/ functions (web-push, @vercel/blob)
node tools/serve.mjs           # http://127.0.0.1:8767, with the same feed rewrites and api/ routes as Vercel

Run the test suites with:

./scripts/test-all.sh           # lint + engine, data, golden, logic, weekly, provider, campaign, party suites
node scripts/benchmark.mjs      # engine vs. pure-ADP drafter

Development

index.html + styles.css + plain JS modules + data.js, no build step. node tools/serve.mjs runs it locally with the same injury/schedule feed routes and api/ functions as Vercel. CI (GitHub Actions, Node 20 and 22) runs syntax checks, a tsc type gate on the engine kernel, HTML sanity, lint and size budgets, data-sanity tests, all node suites with coverage, a benchmark smoke (the engine must beat ADP), a full 192-pick marathon and a 69-check headless-Chrome E2E on every push. Releases ship a sha256 integrity.json. The repo's 1,250+ closed issues are the changelog.

License

MIT. See LICENSE.

About

🏈 Draft War Room: superflex fantasy cockpit with Monte Carlo survival odds, start/sit consensus, waiver radar and live injuries. Zero-build PWA.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages