How team2137/2026-frc-scouting-app works
This is a FIRST Robotics Competition scouting application: users create accounts, select an event, record pit and match observations, and review team and alliance insights. The graph separates scouting workflows, FRC event-data synchronization, analytics, and shared data infrastructure. Some feature implementations are indexed but not excerpted, so only documented or indexed relationships are shown; uncertain links are omitted.
Main entry points: db.ts MongoDB connection · frc-events FRC event records · route.ts Match summaries · scout Scout data operations
Components 29
Scouting workflows
- Scouting workspace
app/scout/page.tsx - Match scouting list
components/scout/ScoutMatches.tsx - Match observation form
components/scout/MatchScoutForm.tsx - Pit observation form
components/scout/PitScoutForm.tsx - Alliance pick tools
components/scout/AllianceTools.tsx - Scout records
models/scout - Scout data operations
lib/scout
FRC event data
- Event selection
app/selectevent/page.tsx - Event sync APIs
app/api/frc-events/pulleventstodb/route.ts - Team sync API
app/api/frc-events/pullteamstodb/route.ts - Schedule sync API
app/api/frc-events/pulltodb/geteventschedule/route.ts - Results sync API
app/api/frc-events/pulltodb/getmatchresults/route.ts - Rankings sync API
app/api/frc-events/pulltodb/geteventrankings/route.ts - FRC event records
models/frc-events
Insights and tools
- Insights and rankings
components/scout/Insights.tsx - Match summaries
app/api/insights/summaries/[eventCode]/route.ts - Team summaries
app/api/insights/teamsummaries/[eventCode]/route.ts - Event summary export
app/api/insights/sumevent/route.ts - Match summary records
models/insights/MatchSummary.ts - Fuel performance
app/api/fpr/route.ts
Identity and shared data
- Entry and auth pages
app/page.tsx - Account registration
components/auth/SignUpScout.tsx - User persistence
lib/auth/storeUser.ts - User records
models/auth/User.ts - User and event context
context/AppContext.tsx - MongoDB connection
lib/db.ts
Other components
- Scout or team user
- FIRST events service
- MongoDB
Connections 34
- Scout or team user → Entry and auth pages: opens
app/page.tsx - Entry and auth pages → Account registration: presents
app/page.tsx - Account registration → User persistence: stores user
components/auth/SignUpScout.tsx - User persistence → User records: persists
components/auth/SignUpScout.tsx - Scout or team user → Event selection: chooses event
app/selectevent/page.tsx - Event selection → User and event context: sets event
app/selectevent/page.tsx - User and event context → Scouting workspace: provides state
app/scout/page.tsx - Scouting workspace → Match scouting list: renders
app/scout/page.tsx - Match scouting list → Scout data operations: loads schedule
components/scout/ScoutMatches.tsx - Match scouting list → Match observation form: opens form
components/scout/ScoutMatches.tsx - Match observation form → Scout data operations: uses operations
- Pit observation form → Scout data operations: uses operations
- Alliance pick tools → Scout data operations: uses operations
- Scout data operations → Scout records: reads and writes
- Event sync APIs → FIRST events service: fetches events
app/api/frc-events/pulleventstodb/route.ts - Event sync APIs → FRC event records: upserts events
app/api/frc-events/pulleventstodb/route.ts - Team sync API → FRC event records: stores teams
app/api/frc-events/pullteamstodb/route.ts - Schedule sync API → FRC event records: stores schedule
app/api/frc-events/pulltodb/geteventschedule/route.ts - Results sync API → FRC event records: stores results
app/api/frc-events/pulltodb/getmatchresults/route.ts - Rankings sync API → FRC event records: stores rankings
app/api/frc-events/pulltodb/geteventrankings/route.ts - Insights and rankings → Match summaries: requests summaries
- Match summaries → FRC event records: reads match data
app/api/insights/summaries/[eventCode]/route.ts - Match summaries → Scout records: reads scout data
app/api/insights/summaries/[eventCode]/route.ts - Match summaries → Match summary records: upserts summaries
app/api/insights/summaries/[eventCode]/route.ts - Team summaries → Match summary records: aggregates summaries
app/api/insights/teamsummaries/[eventCode]/route.ts - Event summary export → Match summary records: reads summaries
app/api/insights/sumevent/route.ts - Fuel performance → MongoDB: uses database
- MongoDB connection → MongoDB: connects
lib/db.ts - Event sync APIs → MongoDB connection: connects
app/api/frc-events/pulleventstodb/route.ts - Schedule sync API → MongoDB connection: connects
app/api/frc-events/pulltodb/geteventschedule/route.ts - Results sync API → MongoDB connection: connects
app/api/frc-events/pulltodb/getmatchresults/route.ts - Rankings sync API → MongoDB connection: connects
app/api/frc-events/pulltodb/geteventrankings/route.ts - Match summaries → MongoDB connection: connects
app/api/insights/summaries/[eventCode]/route.ts - Team summaries → MongoDB connection: connects
app/api/insights/teamsummaries/[eventCode]/route.ts