Gridiron Duels

Gridiron Duels

A real-time fantasy football draft platform — built end-to-end across web, mobile, and a service-oriented backend that runs the league.

gridiron-duels.com App Store

Year
2025—2026
Role
Designer & Engineer
Team
Solo build
Status
Live
  • 3,400+ Players
  • 1,041,000+ Picks made
  • 16 Players per league
  • 50 Battle pass tiers

Fantasy football lives or dies on the draft. The instant someone's connection drops, a turn timer skips, or a CPU pick feels robotic, the whole illusion collapses. Gridiron Duels is built around the idea that the draft is the product — and everything else, scoring, leaderboards, cosmetics, the meta, is scaffolding that holds the moment together.

Draft room
The web draft room: two nine-player rosters side by side, this round's NFL team (SF) between them
Fig. 01 The live draft room. Same state, every device.

I The roster behind the roster

Two stacks under one roof. Public-facing pages — homepage, leaderboard, marketing — are server-rendered Blade for fast first paint and clean SEO. The interactive surfaces — draft room, shop, achievements — are React / Inertia, sharing auth state through middleware so users glide between server-rendered and SPA pages without ever feeling the seam.

Backend
Laravel 12 · PHP 8.3 · Octane / RoadRunner
Frontend
React 19 · Inertia.js · Tailwind CSS
Mobile
Expo SDK 54 · React Native
Real-time
Laravel Reverb (Pusher protocol)
Database
PostgreSQL
Payments
Stripe (checkout + virtual currency)
Infra
Laravel Cloud · scheduler · queue workers

II The engine that orchestrates the draft

DraftEngine is a single service class that owns the full game lifecycle: create, join, ready-up, pick, score, complete. Every state transition broadcasts an event — PlayerDrafted, TurnUpdated, GameCompleted — through Laravel Reverb. Web clients listen via Laravel Echo, mobile clients via pusher-js. Same channels, identical events, one source of truth.

Turn timers run client-side for snappy UX, with a 30-second backend sweep that auto-picks for any player whose timer expired while disconnected. Two layers, one consistent state.

A player can start a draft on their laptop and a friend can join from their phone mid-pick. Same lobby, same turn order, same animations. That parity is enforced everywhere downstream — there is no mobile version of the draft, only the draft as accessed from a phone.

Draft vs CPU
Fig. 02 A draft against the CPU, pick by pick.

III Modes by composition, not by branch

Games are assembled from two pieces. GameFormat defines structure — 1v1, 2v2 teams, League up to sixteen — and decides player count, draft order, and scoring rules. Modifiers stack on top: CPU fill, Crazy Mode randomized scoring, Time Machine using past NFL seasons. Add a new modifier and the core draft logic doesn't move.

Format × Modifier set = Game
Results
The results screen after a 1v1: the winner's banner, the two totals, and each roster's picks with their points
Fig. 03 Results: every pick scored, totals compared.

IV An economy split into focused services

Five services, five domains, one shared coin. Every service owns its slice and nothing else, which keeps the failure modes small and the tests narrow.

  1. 01

    CoinService

    Atomic balance transactions, escrow and house rake on coin wagers, and Stripe-powered coin purchases. Every line item logged for auditability.

  2. 02

    BattlePassService

    50-tier seasonal progression with free and premium tracks. XP funnels in from wins, drafts, and missions; resets each season with new content.

  3. 03

    CosmeticShopService

    Daily rotating shop selling name colors, titles, profile borders, and banners. Cosmetic only — no pay-to-win.

  4. 04

    MissionService

    Daily and weekly objectives that feed XP into the battle pass and coins into the wallet. Resets via the scheduler.

  5. 05

    RankedService

    Elo-based MMR across 9 tiers from Iron to Hall of Fame. Matchmaking widens the skill window every 5 seconds until a match is found.

Battle pass
The Season 1 battle pass at tier 8 of 50: the premium track claimed to tier 8 above the free track, coin and cosmetic rewards in the tiers ahead, and an 11,815 coin balance
Fig. 04 Season 1: 50 tiers across a free and a premium track.
Shop
The shop: Pro membership at $6.99/mo or $49.99/yr through Stripe, three featured cosmetics priced in coins, and an 11,815 coin balance
Fig. 05 Cosmetics for coins, a featured rotation, and Pro by subscription.

V The schedule that runs the league

Nine scheduled tasks keep Gridiron Duels alive between human inputs. They roll missions, rotate the shop, sweep abandoned games, generate weekly challenges, and snapshot leaderboards on time, every time.

FrequencyTaskPurpose
Weekly Sleeper API sync Pull latest NFL player and schedule data
Daily Mission reset Roll new daily objectives
Daily Shop rotation Refresh cosmetic shop inventory
Daily Battle pass check Process tier rewards and season transitions
Every 5s Matchmaking queue Match ranked players, expanding window
Every 30s Timer safety net Auto-pick for disconnected players
Every 30m Stale game cleanup Close abandoned games and refund coin wagers
Wednesdays Weekly challenge Generate new challenge with a random team pool
Week-end Leaderboard snapshot Lock results and pay out coins and XP

VI One game, every device

The Expo app talks to a dedicated api/v1 route group — sixteen controllers that mirror the web experience. Auth uses Laravel Sanctum tokens stored in expo-secure-store; broadcasting auth has its own endpoint, so mobile clients connect to the same Reverb channels as web users and receive identical events.

There is no second backend, no parallel implementation, no “mobile mode.” The phone is just another window into the same draft.

The iOS draft room in round 8 of 10: the pick clock at 26s, the opponent on the clock, and a full nine-player roster
Fig. 06 Expo on iOS, mid-draft. The pick clock reads 26s.

Gridiron Duels is live at gridiron-duels.com. For the architectural deep-dive, read the companion essay in the blog.