How traccar/traccar-web works
Traccar Web is a React single-page GPS-tracking dashboard. Users authenticate, then monitor devices on a live map and use reports, replay, geofences, and management screens; the app exchanges REST and live updates with a Traccar server. The graph preserves these documented product branches and the sampled state, map, and localization layers. Some feature pages were not sampled, so their internal calls and routing are not asserted.
Main entry points: App.jsx Application shell · SocketController.jsx Live update controller · MainPage.jsx Live tracking workspace · MapView.jsx Interactive map
Components 20
App shell
- Application shell
src/App.jsx - Navigation
src/Navigation.jsx - Login and registration
src/login/LoginPage.jsx
Live tracking
- Live update controller
src/SocketController.jsx - Live tracking workspace
src/main/MainPage.jsx - Device list
src/main/DeviceList.jsx - Interactive map
src/map/core/MapView.jsx - Map layers and overlays
src/map - Motion timeline
src/main/MotionController.jsx
Reports and history
- Position replay
src/other/ReplayPage.jsx - Reports
src/reports
Administration
- Geofence management
src/other/GeofencesPage.jsx - Device and account settings
src/settings
Shared runtime
- Application state
src/store/index.js - HTTP response helper
src/common/util/fetchOrThrow.js - Localization provider
src/common/components/LocalizationProvider.jsx - Persisted browser state
src/common/util/usePersistedState.js - Map geometry utilities
src/map/core/mapUtil.js
Other components
- Dashboard user
- Traccar server
Connections 26
- Dashboard user → Application shell: opens dashboard
README.md - Application shell → Navigation: renders navigation
src/App.jsx - Dashboard user → Login and registration: authenticates
README.md - Login and registration → Traccar server: uses REST API
README.md - Application shell → Application state: configures state
src/App.jsx - Application shell → Live update controller: renders controller
src/App.jsx - Live update controller → Traccar server: loads devices and receives updates
src/SocketController.jsx - Live update controller → Application state: dispatches updates
src/SocketController.jsx - Dashboard user → Live tracking workspace: monitors devices
README.md - Live tracking workspace → Device list: shows devices
- Live tracking workspace → Interactive map: shows live map
README.md - Interactive map → Persisted browser state: saves map choice
src/map/core/MapView.jsx - Interactive map → Map layers and overlays: hosts map layers
src/map/core/MapView.jsx - Map layers and overlays → Map geometry utilities: uses geometry helpers
src/map/MapGeofence.js - Application shell → Motion timeline: renders controller
src/App.jsx - Motion timeline → Traccar server: loads motion events
src/main/MotionController.jsx - Motion timeline → Application state: stores motion segments
src/main/MotionController.jsx - Dashboard user → Position replay: reviews history
README.md - Position replay → Traccar server: loads historical data
- Dashboard user → Reports: runs reports
README.md - Reports → Traccar server: requests report data
- Dashboard user → Geofence management: manages geofences
README.md - Dashboard user → Device and account settings: manages devices
README.md - Application shell → Localization provider: provides translations
src/App.jsx - Localization provider → Persisted browser state: persists language choice
src/common/components/LocalizationProvider.jsx - Localization provider → HTTP response helper: updates user language
src/common/components/LocalizationProvider.jsx