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.
- 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.
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.
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.
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.
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.
- 01
CoinService
Atomic balance transactions, escrow and house rake on coin wagers, and Stripe-powered coin purchases. Every line item logged for auditability.
- 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.
- 03
CosmeticShopService
Daily rotating shop selling name colors, titles, profile borders, and banners. Cosmetic only — no pay-to-win.
- 04
MissionService
Daily and weekly objectives that feed XP into the battle pass and coins into the wallet. Resets via the scheduler.
- 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.
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.
| Frequency | Task | Purpose |
|---|---|---|
| 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.
Gridiron Duels is live at gridiron-duels.com. For the architectural deep-dive, read the companion essay in the blog.