A Reddit Devvit app that creates interactive baseball scorecards with live game data, comprehensive statistics, and play-by-play analysis.
src/main.tsx - Devvit app configuration, settings, and entry pointsrc/app.tsx - Main fetching logic, scheduled jobs, and post renderingsrc/forms/GameSelectionForm.tsx - Date/game selection forms and post creation workflowsrc/phases/ - Game phase-specific components (pregame, postgame)src/utils/gameParsers.ts - SportsRadar API data normalization and parsingsrc/types/game.ts - TypeScript interfaces for game data structuresnpm install
devvit settings set sportsradar-api-key YOUR_API_KEY
devvit upload
GET /mlb/trial/v8/en/games/{year}/{month}/{day}/schedule.json - Daily game scheduleGET /mlb/trial/v8/en/games/{gameId}/boxscore.json - Current game stateGET /mlb/trial/v8/en/games/{gameId}/extended_summary.json - Detailed statisticsschedule_{year}_{month}_{day}boxscore_{gameId}extended_summary_{gameId}src/
├── main.tsx # Devvit app entry point and configuration
├── app.tsx # Main fetching logic and scheduled jobs
├── forms/
│ └── GameSelectionForm.tsx # Date/game selection forms
├── phases/
│ ├── pregame/
│ │ ├── pregame.tsx # Pregame voting and countdown
│ │ └── LineupsTab.tsx # Player lineups and stats
│ └── postgame/
│ ├── postgame.tsx # Final score and team stats
│ ├── BoxScoreTab.tsx # Detailed player statistics
│ └── PlayByPlayTab.tsx # Play-by-play with pagination
├── utils/
│ └── gameParsers.ts # API data normalization
├── types/
│ └── game.ts # TypeScript interfaces
└── assets/
├── bases.ts # Base runner images
└── logos/mlb.ts # Team logo URLs
npm iDull_Tradition687
CreatorApp identifier
mlbscoreboard
Version
0.0.12
Last updated
Apr 1, 2026
Send feedback
Terms and conditions
Privacy policy