How commaai/connect works
comma connect is the web and mobile companion for openpilot devices. The user-facing flow begins at the app shell, enters the Explorer, and branches into device management, drive review, and live teleoperation; account, Prime, referrals, and file handling are additional capabilities. Redux and the timeline playback state form an important internal layer. Source excerpts establish some links, while several feature modules are unsampled, so their likely connections are shown as unverified rather than asserted.
Main entry points: explorer.jsx Explorer and routing · DeviceInfo/index.jsx Device details · DriveView/index.jsx Drive viewer · backend.js Backend facade
Components 24
App and state
- App shell
src/App.jsx - Explorer and routing
src/components/explorer.jsx - Redux store
src/store.js - Global state
src/reducers/globalState.js - Playback state
src/timeline/playback.js
Device workflows
- Device dashboard
src/components/Dashboard - Device details
src/components/DeviceInfo/index.jsx - Live teleoperation
src/components/BodyTeleop - Map navigation
src/components/Navigation/index.jsx - Device actions
src/actions/index.js
Drive review
- Drive viewer
src/components/DriveView/index.jsx - Drive timeline
src/components/Timeline/index.jsx - Clip management
src/components/DriveView/ClipMenu.jsx - Drive map
src/components/DriveMap/index.jsx - Drive video
src/components/DriveVideo/index.jsx - File uploads
src/components/Files/UploadQueue.jsx
Services and account
- Backend facade
src/api/backend.js - Comma APIs
src/api.js - Clip API
src/api/clips.js - Demo backend
src/api/demo.js - Prime subscription
src/components/Prime - Referrals
src/components/Referrals/index.jsx
Other components
- Openpilot user
- Comma services
Connections 28
- Openpilot user → App shell: opens
- App shell → Explorer and routing: routes to
src/App.jsx - App shell → Redux store: provides
src/App.jsx - Redux store → Global state: reduces state
src/store.js - Redux store → Playback state: uses reducer
- Explorer and routing → Device dashboard: offers
- Explorer and routing → Drive viewer: offers
- Explorer and routing → Device details: offers
- Device details → Device actions: dispatches
src/components/DeviceInfo/index.jsx - Device details → Clip API: checks support
src/components/DeviceInfo/index.jsx - Device details → Live teleoperation: opens
- Device details → Map navigation: links to
- Device actions → Backend facade: calls device API
src/actions/index.js - Drive viewer → Drive timeline: shows timeline
- Drive viewer → Drive map: shows map
- Drive viewer → Drive video: plays video
- Drive timeline → Playback state: uses controls
src/components/Timeline/index.jsx - Drive viewer → Clip management: offers clips
- Clip management → Clip API: uses
src/components/DriveView/ClipMenu.jsx - Backend facade → Comma APIs: wraps
src/api/backend.js - Backend facade → Demo backend: selects demo
src/api/backend.js - Comma APIs → Comma services: requests
src/api.js - Clip API → Comma APIs: uses
src/api/clips.js - Explorer and routing → Prime subscription: offers
- Explorer and routing → Referrals: offers
- Prime subscription → Backend facade: uses billing
- Referrals → Backend facade: uses account API
src/components/Referrals/index.jsx - Explorer and routing → File uploads: offers uploads