How madn143/ais-tracker works
DarkWake is an AIS vessel anomaly dashboard with a separate Python batch detector. The detector downloads AIS data, prepares vessel features, scores anomalies, and writes a JSON export; the browser dashboard reads a static JSON file for both fleet metrics and a map. The supplied code does not show how the backend export reaches the frontend’s public data file, so those stores are kept separate. The map also loads OpenStreetMap tiles. Source coverage is limited to the excerpts and file tree; uninspected data-file contents are not inferred.
Main entry points: detector_real.py AIS Detector · page.tsx Dashboard Page · RadarMap.jsx Vessel Radar Map · StatsPanel.jsx Fleet Statistics
Components 13
AIS Detection
- AIS Detector
backend/detector_real.py - Feature Preparation
backend/detector_real.py - Anomaly Scoring
backend/detector_real.py - JSON Export
backend/detector_real.py
Web Dashboard
- Dashboard Page
frontend/app/page.tsx - Fleet Statistics
frontend/app/components/StatsPanel.jsx - Map Wrapper
frontend/app/components/MapWrapper.tsx - Vessel Radar Map
frontend/app/components/RadarMap.jsx
Vessel Data
- Detector Output
backend/all_vessels.json - Dashboard Vessel Data
frontend/public/all_vessels.json
Other components
- Kaggle AIS Dataset
- Dashboard User
- OpenStreetMap Tiles
Connections 13
- AIS Detector → Kaggle AIS Dataset: downloads dataset
backend/detector_real.py - AIS Detector → Feature Preparation: loads and cleans
backend/detector_real.py - Feature Preparation → Anomaly Scoring: provides features
backend/detector_real.py - AIS Detector → Anomaly Scoring: trains and predicts
backend/detector_real.py - AIS Detector → JSON Export: combines results
backend/detector_real.py - JSON Export → Detector Output: writes JSON
backend/detector_real.py - Dashboard User → Dashboard Page: opens dashboard
frontend/app/page.tsx - Dashboard Page → Fleet Statistics: renders
frontend/app/page.tsx - Dashboard Page → Map Wrapper: renders
frontend/app/page.tsx - Map Wrapper → Vessel Radar Map: loads dynamically
frontend/app/components/MapWrapper.tsx - Fleet Statistics → Dashboard Vessel Data: fetches metrics data
frontend/app/components/StatsPanel.jsx - Vessel Radar Map → Dashboard Vessel Data: fetches vessel data
frontend/app/components/RadarMap.jsx - Vessel Radar Map → OpenStreetMap Tiles: loads map tiles
frontend/app/components/RadarMap.jsx