All projects

SF Tournaments

Checking

Owner · Developer

SF Tournaments is a Soldier Front clan and eSports tournament platform with brackets, team ladders, scrims, stats and a Discord bot.

NextJSTypescriptTailwindCSSPrismaPostgres
SF Tournaments preview

Live stats

Uptime

Embed a status badge
SF Tournaments status badge
[![SF Tournaments status](https://tomdev.xyz/badge/sf-tournaments.svg)](https://tomdev.xyz/status)
<a href="https://tomdev.xyz/status"><img src="https://tomdev.xyz/badge/sf-tournaments.svg" alt="SF Tournaments status"></a>

Overview

A clan and eSports tournament platform for the Soldier Front community, covering everything from sign-up to finals: teams, brackets, match reporting, stats and a Discord bot that keeps the server in sync.

The problem

Community tournaments were run by hand across Discord messages and spreadsheets, so brackets, check-ins, score disputes and stats were slow to manage and easy to get wrong.

How it's built

  • Next.js App Router with Cache Components, so public pages like brackets and leaderboards stay fast while match data changes.
  • Postgres through Prisma, with backup and restore tooling so the live database can be moved or recovered safely.
  • Auth.js with Discord and Twitch sign-in, both linkable to a single player account.
  • Uploads such as score screenshots go to Cloudflare R2.
  • Windows batch scripts handle setup, updates (with an automatic database backup first) and running the site, so it can be self-hosted without knowing Node.

Architecture

  1. Players and admins
  2. App
  3. Data
  4. Hosting

Website: Brackets, ladders, stats and team pages. Public pages are cached so they stay fast during big events.

Features

  • Single- and double-elimination brackets with byes, seeding and registration approval
  • Match check-in with automatic no-show forfeits
  • Captain score reports with screenshots, plus admin dispute resolution
  • Match scheduling with captain proposals and local-time display
  • Map veto (ban/pick) and match line-ups picked from the roster
  • Player and team stats, head-to-head records and leaderboards with ranking points
  • Team ladder with ELO ratings, challenges and seasons
  • Free agent board, scrim finder and recurring cups that run themselves
  • Admin tools for roles, bans and an audit log
  • Discord bot that sets up the server and posts announcements

From the devlog