Skip to content
All projects
🏸Live2025 to 2026

NextRally

Clubs platform for racket sports with a fair court-rotation engine

Private repository · demo on request

NextRally started as an anonymous quick-shuffle tool for our weekly badminton sessions and grew into a roughly 41k-line clubs platform for badminton, tennis, pickleball and padel. Coordinators create recurring games; players RSVP, check in and get placed on courts by a small framework-free rotation engine that keeps court reuse, repeated partners and uneven rest to a minimum.

There are two ranking systems on purpose: a Bayesian-smoothed live win rate for in-session standings, and a per-group Glicko-2 rating that is rolled up once a game ends. The rollup is idempotent, so a replay never double-counts. Gameplay stays local-first in the host's browser and mirrors to Supabase realtime for viewers, who can only post match results back.

Notifications go through the WhatsApp Cloud API (templates only) with Resend email as the fallback, and a pg_cron tick drives check-in reminders and recurring-game creation. It began on Lovable and was moved to a self-hosted Bun and Nitro container on Dokploy with custom HMAC auth, Google sign-in and OTP 2FA. It also mints short-lived SSO handoffs into ShuttleSense.

Related

esc