
/02 Overview
inflect.gg is a post-game analytical engine for League of Legends and Teamfight Tactics. It ingests high-resolution Match-V5 timeline data from the Riot Games API and surfaces the moments where a match actually turned: gold spikes, objective flips, and momentum shifts that decide wins and losses.
/03 The Challenge
Most post-game tools for competitive games show summary statistics — kills, deaths, gold totals. They rarely answer the question players actually care about: when did the game slip away, and why? We needed a system that could reconstruct a match minute-by-minute, detect inflection points, and present them in a way that made sense to both players and coaches.
The platform also had to stay within Riot's rate limits, handle large match payloads efficiently, and deliver analysis fast enough that a user could review a match immediately after it ended.
/04 Architecture
Real-Time Data Pipeline
A Node.js worker tier fetches match timelines from the Riot Games API, applies rate-limit pacing, and persists raw payloads in PostgreSQL. Redis acts as a hot cache for recently requested matches and player profiles, reducing redundant API calls.
Inflection Detection
The analyzer parses per-minute gold deltas, objective events, vision control, and team fight outcomes to flag the moments where the match state materially changed. Each inflection point is scored by impact and presented with surrounding context.
Next.js Frontend
The dashboard is built with Next.js and Tailwind CSS, rendering interactive charts and match timelines. TypeScript keeps the data model strict across the API boundary, from timeline ingestion to the UI.
Docker Infrastructure
The stack is containerized with Docker Compose for local development and deployment portability. PostgreSQL stores authoritative match records while Redis handles caching and session state.
/05 Key Features
- Match ingestion from Riot Match-V5 with rate-limit respect and retry logic.
- Gold-delta spike detection to identify turning points in team economy.
- Vision correlation analysis that maps ward placement to objective control 60 seconds prior.
- TFT-specific rolldown and economy detection for set-based strategy review.
- Player-centric perspective engine that centers each analysis on a selected PUUID and team context.
/06 Initialization