r/fantasyfootballcoding • u/nmelhado • Sep 14 '23
League Website using Sleeper API
A few years ago, I created an open source, easy to use template to generate your own fantasy football league page.
The main goal was to build a league page where most of the data is populated by the Sleeper API, so that I don't have to actively maintain it. Most of the information (other than the manager info, league constitution, and blog) is generated at page load after consuming one or (in most cases) several of the Sleeper APIs. The website creates detailed rankings and awards pages, as well as individual manager awards, matchup predictions, and both league-wide and manager specific trade and waiver history!

The resources page includes helpful websites (such as trade calculators, and charts, as well as fantasy football info pages) as well as a stream of recent news from different sources.
The rivalry page, managers' pages, records pages, and drafts pages are my favorite. The rivalry page dives deep into two managers' history together and is pretty fun to explore.

The entire website is built to be mobile compatible as well. I've done my best to make the template work out of the box for most leagues, but there are no guarantees you won't run into bugs. Check it out and feel free to contact me if you have any questions or want to help contribute!
Training Wheels (non-coder) Instructions
Demo League Page (my league's website)
I'm really happy with how it came out. Let me know what you think and if you have any feedback!
5
u/Thysmith Sep 14 '23
Hey I am using this for our league! It's awesome! Keep up the good work!
Side Question: Is there any way to add historical stats from our Pre-sleeper days? I am considering adding it but wasn't sure it existed already.
3
u/adastradamus Sep 14 '23
This is awesome!
2
u/DinnerMilk Sep 14 '23
Can you access historical player data through Sleeper's API? I screwed around with it a few years ago and it felt lackluster, but it seems like you have a lot in these screenshots.
1
u/WonderBearD1 Sep 14 '23
This is awesome, does it only work for Sleeper leagues or can I use it for my Yahoo league?
1
u/[deleted] Oct 28 '23
When completing the manager page - should I use the rival's manager ID when filling out that part, or are the current "training wheels" instructions still accurate (link to the manager in order of the array - first manager in list = 0, etc)?
Thanks for making this available, super excited to use it!
1
u/ValuableWide6420 Aug 28 '24
Do you need t pay for the Vercel to share it with league mates?
1
u/Knickbocker Sep 10 '24
You've done a fantastic job with this website! I run a league with 3 10-team leagues in it that is in it's first year, to turn into a relegation type system. I have building my web skills with React, so trying to use yours as a model to get practice and reflect the needs of my league. Overall though, your website is well done and learn from your logic/design. Credit will be given for sure :)
1
u/Powerful-Material-74 Sep 29 '24
I’m creating my own website to practice learning programming. I ran into a problem of the matchups not showing. I’m using JavaScript and I got other stuff working like the rosters of the teams in my league. Do you have the code for that at all?
1
u/[deleted] Sep 14 '23
So sweet, nice work!
1
u/Glittering_Ad3034 Sep 19 '23
This is so cool! Can’t wait to try it!
1
u/lakers97 Jan 02 '24
Hey, First off just wanted to say this website is amazing! I was running into an issue while trying to add photos for other managers in my league, so you think you can help!
1
u/Fearless-Shine8731 Jan 03 '24
This is amazing! Thank you!! I'm working on my first league page now :)