How harshulchess77-arch/jc-apex works
JC-APEX is a live electric-racing telemetry and race-operations platform. Its main workflow is receiver telemetry captured in a browser over Web Serial, stored and broadcast through Supabase, then presented to pit and driver devices; crews can also export session CSV. The repository documents an optional Python serial bridge, weather polling, strategy advice, maps, race operations, and driver/vehicle management. Some page and gateway implementations were not sampled, so their relationships are shown only where the README or excerpts establish them.
Main entry points: App.jsx Route and provider shell · run_bridge.py Python bridge · telemetry-serial.js Browser serial ingest · telemetry-ingest.js Telemetry ingest
Components 27
Telemetry capture
- Browser serial ingest
web/src/hooks/telemetry/telemetry-serial.js - Telemetry ingest
web/src/hooks/telemetry/telemetry-ingest.js - Demo simulator
web/src/pages/Demo.jsx
Live race operations
- Telemetry dashboard
web/src/pages/TelemetryDashbaord.jsx - Pit operations
web/src/pages/PitCenter.jsx - Driver HUD
web/src/pages/DriverHUD.jsx - Race director
web/src/pages/RaceDirector.jsx - Circuit mapping
web/src/pages/CircuitMap.jsx - Driver profiles
web/src/pages/DriverProfile.jsx - Championship standings
web/src/pages/ChampionshipStandings.jsx - Race benchmarks
web/src/pages/Benchmarks.jsx - Vehicle configuration
web/src/pages/VehicleConfig.jsx - Live communications
web/src/pages/LiveComms.jsx
Race intelligence
- Strategy library
web/src/pages/StrategyLibrary.jsx - AI driving oracle
web/src/hooks/useAIDrivingOracle.js - Weather engine
gateway/weather_engine.py
Shared platform
- Telemetry history
- Supabase Realtime
- App settings
web/src/pages/AppSettings.jsx - Route and provider shell
web/src/App.jsx - Supabase client
web/src/lib/supabaseClient.js - Driver profile service
web/src/lib/driverService.js
Optional gateway
- Python bridge
gateway/run_bridge.py - Gateway AI oracle
gateway/ai_oracle.py - Weather station adapter
gateway/station_adapter.py
Other components
- Pit crew devices
- LoRa receiver
Connections 27
- LoRa receiver → Browser serial ingest: sends serial data
- Browser serial ingest → Telemetry ingest: parses packets
- Telemetry ingest → Telemetry history: inserts packets
- Telemetry history → Supabase Realtime: broadcasts inserts
- Supabase Realtime → Pit crew devices: streams updates
- Pit crew devices → Telemetry dashboard: views live data
- Pit crew devices → Pit operations: opens operations
- Pit crew devices → Driver HUD: opens HUD
- Route and provider shell → Pit operations: routes to
web/src/App.jsx - Route and provider shell → Driver HUD: routes to
web/src/App.jsx - Route and provider shell → Race director: routes to
web/src/App.jsx - Route and provider shell → Circuit mapping: routes to
web/src/App.jsx - Route and provider shell → Telemetry dashboard: routes to
web/src/App.jsx - Pit crew devices → Circuit mapping: views track map
- Pit crew devices → Strategy library: views strategy
- Pit crew devices → Driver profiles: manages drivers
- Pit crew devices → Championship standings: views standings
- Pit crew devices → Race benchmarks: views benchmarks
- Pit crew devices → App settings: configures app
- Pit crew devices → Vehicle configuration: configures vehicle
- Pit crew devices → Live communications: uses communications
- Pit crew devices → Demo simulator: starts simulation
- Supabase client → Driver profile service: serves profile queries
web/src/lib/driverService.js - Python bridge → Telemetry history: uploads telemetry
- Python bridge → Gateway AI oracle: integrates oracle
gateway/run_bridge.py - Python bridge → Weather engine: uses weather engine
gateway/run_bridge.py - Weather engine → Weather station adapter: adapts station data
gateway/weather_engine.py