Skip to content
← All projects

Esports league platform

Rivals League

Rivals League is a Swedish esports league for League of Legends, Counter-Strike 2 and VALORANT. The platform handles team registration, brackets, match pages, player stats and tickets for the live event. I'm the lead developer and run it day to day, with a developer from Challengermode and a few others contributing to parts of it.

Rivals League project screenshot

The problem

Running an esports league means a lot of manual work: registrations, seeding, Discord channels and roles for every team, match results and player stats. Most organizers spread it across spreadsheets, Discord DMs and bracket tools that don't share any data. I administered tournaments at G-Loot and knew where that setup falls apart, so the platform is built to remove those manual steps.

What I built

The frontend is React on Vite, backed by serverless API routes, an Express server and Supabase. Teams register and sign in with Discord, players link their Riot accounts, and the platform integrates with Challengermode and the Riot API. A separate stats backend turns match data into player and team statistics. News and guides are edited in Sanity, and Stripe Checkout sells tickets to the live event.

Discord operations

Every season the league's Discord server needs announcement and group channels per division, a private voice channel and a role for each team, and the right permissions for admins. I wrote discord.js scripts that build all of that from the roster, with a dry-run mode; the current setup covers 154 teams in 7 divisions. A scheduled job posts to Discord when a team goes live on Twitch, registration changes go to a staff channel, and the admin dashboard tracks how each game's Discord community grows week by week.

Why it's built this way

Players already live in Discord, so login is Discord and the server structure comes from the same roster as the website instead of being clicked together by hand each season. The stats backend runs on its own so heavy aggregation never slows down match-day traffic, and Stripe leaves a record of every ticket sold.

Highlights

  • Team registration, brackets, match pages, player stats and leaderboards
  • Discord login, plus discord.js scripts that set up channels and roles for 154 teams
  • Twitch go-live alerts posted to Discord by a scheduled job
  • Riot API and Challengermode integrations
  • Stripe Checkout for event tickets, Sanity for editorial content

Got a project in mind?

Tell me what you're building and I'll get back to you within a day. You can also email me at adampeleback@gmail.com.

Send a message