How stranger0071/beyond-the-score works
Beyond The Score is a cricket analytics dashboard for IPL and ICC Men’s Cricket World Cup data. Users choose a tournament, browse and select a match, then explore its scorecard, play-by-play narration, analytics, player details, and squad; separate views compare teams, venues, and tournament-wide statistics. Precompiled match data feeds the client, while match narration can request AI summaries through the documented backend proxy. The README describes CSV-to-JSON ingestion tools, but their build-time role is distinct from the runtime dashboard. Some component routing and proxy details are documented rather than shown in the sampled source.
Main entry points: App.jsx Dashboard shell · loadMatches.js Match data loader · loadPlayers.js Player enrichment · MatchesView.jsx Match browser
Components 27
Dashboard experience
- Dashboard shell
src/App.jsx - Navigation
src/components/NavBar.jsx - Match browser
src/components/MatchesView.jsx - Tournament selector
src/components/Header.jsx
Match intelligence
- Dataset overview
src/components/DatasetStats.jsx - Match scorecard
src/components/MatchScorecard.jsx - Match analytics
src/components/MatchAnalytics.jsx - Insight cards
src/components/InsightCards.jsx - Key moments
src/components/KeyMoments.jsx - Match squad
src/components/MatchSquad.jsx - Player spotlight
src/components/PlayerSpotlight.jsx - Head-to-head
src/components/HeadToHead.jsx - Venue insights
src/components/VenueStats.jsx - Cricket glossary
src/components/Glossary.jsx - AI match narration
src/components/MatchNarration.jsx
Cricket data
- Player enrichment
src/data/loadPlayers.js - Player lookup
src/utils/playerLookup.js - Team metadata
src/utils/teamMeta.js - Match data loader
src/data/loadMatches.js - Tournament match data
src/data/ipl-by-year - Player registry
src/data/players.json - Glossary terms
src/data/glossary.js - CSV ingestion tools
scripts - CSV parser
src/utils/csvParser.js
Narration service
- Express AI proxy
server/index.js - Gemini API
Other components
- Cricket fan
Connections 28
- Cricket fan → Dashboard shell: opens
README.md - Dashboard shell → Navigation: renders
src/App.jsx - Dashboard shell → Tournament selector: renders
src/App.jsx - Dashboard shell → Match browser: shows
README.md - Dashboard shell → Dataset overview: renders
src/App.jsx - Dashboard shell → Match data loader: loads matches
src/App.jsx - Dashboard shell → Player enrichment: loads players
src/App.jsx - Dashboard shell → Match scorecard: renders
src/App.jsx - Dashboard shell → Match analytics: renders
src/App.jsx - Dashboard shell → AI match narration: renders
src/App.jsx - Dashboard shell → Player spotlight: renders
src/App.jsx - Dashboard shell → Head-to-head: provides view
README.md - Dashboard shell → Venue insights: provides view
README.md - Dashboard shell → Insight cards: provides view
README.md - Dashboard shell → Key moments: provides view
README.md - Dashboard shell → Match squad: provides view
README.md - Dashboard shell → Cricket glossary: provides view
README.md - Match browser → Match data loader: uses match list
README.md - Match data loader → Tournament match data: loads by year
src/data/loadMatches.js - Head-to-head → Match data loader: reads matches
src/components/HeadToHead.jsx - Venue insights → Match data loader: reads matches
src/components/VenueStats.jsx - Player enrichment → Player registry: enriches profiles
src/data/loadPlayers.js - Player enrichment → Player lookup: finds profiles
src/data/loadPlayers.js - Player enrichment → Team metadata: gets team details
src/data/loadPlayers.js - Match data loader → CSV ingestion tools: uses generated data
README.md - CSV ingestion tools → CSV parser: parses CSV
scripts/build-ipl-matches.mjs - AI match narration → Express AI proxy: requests summary
README.md - Express AI proxy → Gemini API: calls
README.md