TeamStat Insights

In May 2025 I built a scouting app in Firebase Studio for the Thomson Division at the Michiana Premier Event, where my team competed. It lists 48 of the division’s teams in a table you can sort and search, and two simulators play out a match or a whole competition from each team’s scores.

Year
2025
Status
Deployed
Stack
Next.js, TypeScript, Genkit
The chart on the TeamStat Insights dashboard, in a browser window: a bar chart titled All Teams by Round 1 Score, with a bar for each of the first teams from the highest score down and each team’s name and number under its bar.

Scouting a division

The team list, my team MakEMinds (23786) included, is fixed in the code. The app fetches nothing at run time. Each team has four score and rank pairs, which the app labels Round 1 through Round 4.

The dashboard charts every team’s Round 1 score above the table, and Compare Teams puts two teams side by side as bar charts. An info icon on a column header asks a Genkit flow running Gemini 2.0 Flash to explain what that statistic means and how a team might improve it.

Simulating an event

The match simulator takes two alliances of two teams and scores each team as its Round 1 number times a random factor. The Score Swing slider sets how far that factor can move. At the default of plus or minus 20 percent, a team lands anywhere from 80 to 120 percent of its base.

The match simulator in TeamStat Insights after a run: a Red Alliance of KIROSHI and Engineerds NextGen against a Blue Alliance of Caesar Circuitry and MakEMinds, the Score Swing slider at plus or minus 20 percent, simulated scores of 273.84 and 227.35, and Red Alliance as the predicted winner.
The match simulator after a run.

The competition simulator plays 10 qualification matches per team in two-team alliances, with outcomes drawn from the combined Round 1 scores. It then runs a double-elimination playoff for 8 alliances of 2 teams, taken from the top 16. The swing slider applies to the playoff matches only.

The playoff results from a full competition run in TeamStat Insights: eight alliances of two teams each, then the start of the upper and lower double-elimination brackets with the score of every game.
The playoffs from one full competition run.

Pages and data

Pages
Dashboard, Compare Teams, Simulate Match, Simulate Competition and a page for each team
Data
48 teams, each with four score and rank pairs