"Build Lineups" calls your deployed dfs-optimizer-nhl-api
Cloudflare Worker, which dispatches to GitHub Actions and runs the real
optimizer.py. Also used for cloud-synced slates and presets. Stored only
in this browser's localStorage.
Slates
▸
Upload Slate CSV
No slate loaded
Date:
Accepts either final_projections_{site}_{date}.csv (to build lineups) or an already-built lineup_*.csv (to view) or a pivot_suggestions_{site}_{date}.csv (paired to a matching date already saved -- type that same date above). The date field is pre-filled from the filename -- leave it as-is unless you have a reason to change it, since this exact value is what "Build Lineups" sends to the real solver as --date. Must be a real YYYY-MM-DD date (NHL's data pipeline is date-keyed, not free-labeled). Persists across reloads and syncs to cloud.
Cheat Sheet
▸
A guide built from available data, not a prediction. Labels and confidence are not validated. Confidence 1-10 = how this player ranks against the others shown at the position, minus a penalty for a wide floor-to-ceiling spread.
Build a Lineup
▸
# Lineups
Max Exposure %
Min Swaps (Uniqueness)
Stack Mode
Randomization %
Minimum Salary
Lineups must spend at least this much (cap is $50,000 on DK, $55,000 on FD -- the slider adjusts automatically when you switch sites).
Max Players Per Team (optional -- applies to every team, every lineup)
Max Players Per Game (optional -- both teams combined, every lineup)
A single number applied uniformly to every team/game (matches optimizer.py's current --max-players-per-team/--max-players-per-game). Per-team-specific caps (e.g. cap COL at 2 but TOR at 3 in the same build) aren't supported yet -- flagged as a follow-up backend session.
Settings Presets
Each lineup in the batch draws its own randomized projection around the real value -- adds variety across a multi-lineup build.
Stack Size
Line #
Stack Team(s) (optional -- pick 1 or more, or leave blank to auto-select)
Stack Game(s) (optional -- pick 1 or more, or leave blank to auto-select)
Secondary Stack Mode (optional -- a 2nd, different team)
Secondary Stack Size
Secondary Line #
Secondary Stack Team(s) (optional -- pick 1 or more, or leave blank to auto-select)
Line # "Auto" compares the stack team's line 1 vs line 2 summed forward projections in the loaded pool and sends the higher one as --stack-line-number (resolved when you click Build; the primary and secondary each need exactly one stack team picked to auto-resolve a line, otherwise that stack falls back to line 1). Research note: projections picked the right line on 11/15 blow-up team-nights vs 9/15 for always-line-1, but a full backtest was inconclusive (report sections 12-13) -- a sensible default, not a proven edge.
Team stacks: the secondary team must be a different team from the primary (the solver enforces this per lineup). Team stacks can only be paired with another Team stack.
Secondary stack (e.g. 4-3 shape): requires N players from a DIFFERENT team's line/PP1. Held at EXACTLY N total skaters from that team by default (optimizer.py decision #38), not "N or more" -- so size 3 won't silently drift to a tied 4-4. The field/top-1% descriptive breakdown favors 4-3 over 4-2, but this shape itself is opt-in and experimental, not yet a projection/ownership-controlled verdict. Picking the SAME team in both Stack Team(s) and Secondary Stack Team(s) is fine -- whichever team the solver actually uses as primary is automatically excluded from the secondary, so you don't need to guess which will win and pick around it.
Probe Notes (paste AI-probe chalk / pivot / line answers here -- saved in this browser per site + date)
Player Pool
Using estimated_ownership_pct from chalk_scores, if loaded
Salary
–
Projection
–
Value
–
Own %
–
Runs the actual optimizer.py via GitHub Actions (typically 20-90s) and supports every control above.