How milibovan/game-tracker works
Leaderboard tracker is a React app for friends to enter daily results across multiple games and compare standings. The main workflow is player sign-in, manual or pasted-share score entry, score parsing, persistence in Supabase, and daily or per-game ranking; profiles also summarize player strength. The sampled App excerpt shows Supabase score-change subscriptions and use of parsing, ranking, icon, and avatar modules. The README documents server-checked PINs and the database setup; unsampled details of RPC and schema behavior are not inferred.
Main entry points: App.jsx App controller · main.jsx React entry · supabase.js Supabase client · icons.js Game icons
Components 15
Frontend app
- React entry
src/main.jsx - App controller
src/App.jsx - Player access
src/App.jsx - Score entry
src/App.jsx - Standings views
src/App.jsx - Player profiles
src/App.jsx
Leaderboard domain
- Share parser
src/lib/parse.js - Score formatting
src/lib/parse.js - Ranking calculations
src/lib/ranking.js
Supabase backend
- Supabase client
src/lib/supabase.js - Supabase database
- Database schema
supabase/schema.sql
Player presentation
- Avatar choices
src/lib/avatars.js - Game icons
src/lib/icons.js
Other components
- Players
Connections 19
- Players → React entry: open app
src/main.jsx - React entry → App controller: renders
src/main.jsx - App controller → Player access: presents
src/App.jsx - Players → Player access: sign in
README.md - Players → Score entry: enter scores
README.md - Score entry → Share parser: parses shares
src/App.jsx - Score entry → Score formatting: formats scores
src/App.jsx - App controller → Supabase client: subscribes to changes
src/App.jsx - Supabase client → Supabase database: connects
src/lib/supabase.js - App controller → Supabase database: reads and writes
README.md - Supabase database → App controller: notifies score changes
src/App.jsx - Database schema → Supabase database: sets up
README.md - App controller → Standings views: renders
src/App.jsx - App controller → Player profiles: renders
src/App.jsx - Standings views → Ranking calculations: ranks results
src/App.jsx - Player profiles → Ranking calculations: calculates strengths
src/App.jsx - App controller → Avatar choices: uses choices
src/App.jsx - App controller → Game icons: uses icons
src/App.jsx - Game icons → Share parser: normalizes names
src/lib/icons.js