Skip to content
Gabriel Tibay

Work Case study

Full StackAnalyticsInfrastructure

LOBBY20: Apex Scrim Platform

Enter the tournament once, let the platform watch the game through Apex's own LiveAPI, and have scoring, bans, standings and scrim-quality metrics update themselves while the host keeps full control inside the game.

How it fits together

TournamentHostLiveAPIEventsScoringStandings

01

The problem

Running Apex Legends scrims and tournaments means hours of organizer admin: re-entering rosters, checking lobbies by eye, scoring kills and placements from screenshots, tracking legend bans by hand, and arguing about restarts afterwards.

02

What needed to change

Enter the tournament once, let the platform watch the game through Apex's own LiveAPI, and have scoring, bans, standings and scrim-quality metrics update themselves while the host keeps full control inside the game.

03

Architecture

A pnpm monorepo: a Next.js web app, a core service that hosts connect their game client to over WebSockets, and shared packages for the Apex protocol, scoring, legend bans, scrim quality and analytics over PostgreSQL. The platform never starts a match. It detects one, captures the event stream, scores it, and surfaces the exceptions. A logical game can have several attempts, so a crash or restart is voided without losing data. It runs as two apps on Dokploy, with hosts connecting straight to the core and nothing installed on their PC.

04

What I built

  • Invite-only hosts with email verification, two-factor auth, device registration, short-lived sessions and audit logs
  • Lobby sync that keeps the platform's team slots authoritative, validates connected players and flags unknown or missing ones
  • Automatic match detection, raw event persistence, replay and de-duplication, and recovery when a match end never arrives
  • Versioned legend-ban rulesets with automatic pick capture, ban calculation and violation detection, safe across restarts
  • Automatic kill and placement scoring with manual adjustments and penalties, official confirmation, live standings and a public leaderboard
  • Match analytics from the event stream: rotations, fights, elimination causes, zone intelligence and recurring patterns per team

05

Stack

  • Next.js
  • TypeScript
  • Node.js
  • Fastify
  • WebSockets
  • PostgreSQL
  • Drizzle ORM
  • pnpm
  • Vitest
  • Docker
  • Dokploy

06

Result

A scrim block runs without a spreadsheet: teams in, host connects, games are detected and scored, and the standings are official when the last ring closes.

07

What I learned

The platform earned trust by refusing to control the game. Observing, scoring and recovering well mattered more than any feature that touched the match itself.