Skip to content

Daily Fantasy Football lineup builder and optimizer created with Node.js and React.js. Build DraftKings contest lineups manually or optimize with linear programming for the highest projected lineup given salary and position constraints.

License

Notifications You must be signed in to change notification settings

ashhhlynn/optimize-fantasy-football

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Optimize Daily

Daily Fantasy Football lineup builder and optimizer application created with Node.js and React.js, featuring live DraftKings contest data and projections from Sleeper. Build DraftKings contest lineups manually from player queue or optimize with linear programming for the highest projected lineup given salary and position constraints. Updated weekly during the NFL season for the Sunday Classic and two Showdown contests.

Check out the live and video demos.

Technologies Used

  • JavaScript
  • React.js
  • Node.js
  • Express.js
  • DraftKings API
  • Sleeper API
  • lp-solver.js
  • Semantic UI React
  • HTML & CSS
  • Netlify & Render

Features

  • Fetch from DraftKings API to access live TNF/MNF Showdown and Sunday Classic contest data
  • Fetch from Sleeper API to access player projections for week (PPR scoring)
  • Sort player queue by position, name, projection, FPPG, and salary
  • Calculate optimal lineup (highest proj. value) given salary and position constraints with lp-solver.js
  • Manually add (or remove) players to lineup from player queue
  • Option to include manually selected players in optimization calculation
  • View lineup total projection and remaining salary data

Media

Screenshot (190) Screenshot (192)

Setup

  • git clone < this repository >
  • cd client
  • npm install
  • npm start

License

This project is MIT licensed.

About

Daily Fantasy Football lineup builder and optimizer created with Node.js and React.js. Build DraftKings contest lineups manually or optimize with linear programming for the highest projected lineup given salary and position constraints.

Topics

Resources

License

Stars

Watchers

Forks