How harpita-p/beyond-the-horizon works
Beyond the Horizon is a React-based Team USA Olympic and Paralympic exploration experience. Fans enter an interactive 3D U.S. map, ask questions through Gemini Live, and see geographic highlights and data visualizations; they can also inspect state-level history, explore collective athlete stories, and play GeoQuest using Street View. The map scene coordinates these user-facing paths, with CSV analysis and Gemini services providing an internal data-and-agent layer. Relationships below follow shown imports/calls or README descriptions; some feature wiring is documented but its implementation was not sampled.
Main entry points: Scene.tsx Interactive Scene · useGeminiLive.ts Gemini Live Voice · GeoSeeker.tsx GeoQuest Game · geoSeekerService.ts GeoQuest Locations
Components 23
3D Fan Experience
- Interactive Scene
src/components/3d/Scene.tsx - 3D U.S. Map
src/components/3d/USMap3D.tsx - Flight Controls
src/components/3d/Falcon.tsx - Keyboard Input
src/hooks/useKeyboard.ts - Chart Panels
src/components/3d/ChartPanel.tsx - Hometown Chart
src/components/3d/HometownBarChart.tsx - Medal Chart
src/components/3d/PieChartPanel.tsx
Data Analysis
- Athlete CSVs
public - CSV Statistics
src/services/csvDataService.ts - Chart Analysis
src/services/dataAnalystAgent.ts
Gemini Agents
- Gemini Live Voice
src/hooks/useGeminiLive.ts - Gemini API
- State Selection
src/services/geminiStateSelector.ts - Hometown Intelligence
src/services/hometownInfoService.ts
GeoQuest
- GeoQuest Panel
src/components/GeoSeekerPanel.tsx - GeoQuest Game
src/components/GeoSeeker.tsx - GeoQuest Locations
src/services/geoSeekerService.ts - Geo Clues
src/services/geminiGeoService.ts - Google Street View
Collective Stories
- Story Panel
src/components/StoryPanel.tsx - Story Generation
src/services/geminiService.ts - Collective Articles
public
Other components
- Fan
Connections 27
- Fan → Interactive Scene: explores
README.md - Interactive Scene → 3D U.S. Map: renders
src/components/3d/Scene.tsx - Interactive Scene → Flight Controls: renders
src/components/3d/Scene.tsx - Flight Controls → Keyboard Input: reads input
src/components/3d/Falcon.tsx - Interactive Scene → Gemini Live Voice: starts voice
src/components/3d/Scene.tsx - Gemini Live Voice → Gemini API: streams voice
src/hooks/useGeminiLive.ts - Interactive Scene → CSV Statistics: loads statistics
src/components/3d/Scene.tsx - CSV Statistics → Athlete CSVs: reads CSVs
README.md - Interactive Scene → Chart Analysis: generates charts
src/components/3d/Scene.tsx - Chart Analysis → Athlete CSVs: reads CSVs
README.md - Interactive Scene → Chart Panels: renders
src/components/3d/Scene.tsx - Interactive Scene → Hometown Chart: renders
src/components/3d/Scene.tsx - Interactive Scene → Medal Chart: renders
src/components/3d/Scene.tsx - Gemini Live Voice → 3D U.S. Map: highlights states
README.md - Interactive Scene → State Selection: selects states
README.md - Interactive Scene → Hometown Intelligence: loads state insights
README.md - Interactive Scene → Story Panel: opens stories
src/components/3d/Scene.tsx - Story Panel → Story Generation: requests narrative
README.md - Story Generation → Gemini API: generates narrative
README.md - Story Generation → Collective Articles: uses article content
README.md - Interactive Scene → GeoQuest Game: starts game
README.md - GeoQuest Game → GeoQuest Locations: requests locations
src/components/GeoSeeker.tsx - GeoQuest Locations → Athlete CSVs: reads athlete CSV
src/services/geoSeekerService.ts - GeoQuest Locations → Geo Clues: requests clues
src/services/geoSeekerService.ts - Geo Clues → Gemini API: generates clues
src/services/geminiGeoService.ts - GeoQuest Game → GeoQuest Panel: shows clues
- GeoQuest Panel → Google Street View: loads panorama
src/components/GeoSeekerPanel.tsx