How amirisufi/atlas works
Atlas is an emergency incident reporting and operations dashboard. The visible workflow runs from incident reporting and live monitoring through AI-assisted triage and duplicate-event clustering, then presents reports on a map with team and station guidance. The dashboard also supports cluster review and resolution, while a separate navigation view provides station-based routing. Some page behavior and supporting modules were not sampled, so the graph includes only relationships shown in excerpts or the SOURCE INDEX.
Main entry points: page.js Live dashboard · supabaseClient.js Supabase client · incidentClusters.js Map cluster grouping · incidentMarkers.js Incident markers
Components 22
User experience
- Incident reporting
app/page.js - Live dashboard
app/dashboard/page.js - Cluster review
app/dashboard/ClusterDrawer.js - Station navigation
app/dashboard/navigation/page.js
Incident operations
- AI triage API
app/api/triage/route.js - Incident clustering API
app/api/cluster/route.js - Event matching
lib/clusterMatch.js - Gemini client
lib/geminiClient.js
Map and dispatch support
- Map layers
lib/incidentMapLayers.js - Incident markers
lib/incidentMarkers.js - Map cluster grouping
lib/incidentClusters.js - Geospatial calculations
lib/geo.js - Team guidance
lib/incidentTeams.js - Emergency stations
lib/emergencyStations.js
Runtime and storage
- Browser config bootstrap
app/EnvBootstrap.js - Public config API
app/api/config/route.js - Public environment
lib/publicEnv.js - Supabase client
lib/supabaseClient.js - Incident database
supabase/schema.sql
Other components
- Operator or reporter
- Supabase service
- Google Gemini
Connections 32
- Operator or reporter → Incident reporting: submits report
app/page.js - Incident reporting → Supabase client: uses data client
app/page.js - Live dashboard → Supabase client: reads live data
app/dashboard/page.js - Live dashboard → Supabase client: subscribes realtime
app/dashboard/page.js - Live dashboard → Map layers: binds interactions
app/dashboard/page.js - Live dashboard → Map cluster grouping: groups reports
app/dashboard/page.js - Live dashboard → Incident markers: renders incidents
app/dashboard/page.js - Live dashboard → Team guidance: shows teams
app/dashboard/page.js - Live dashboard → Emergency stations: uses station data
app/dashboard/page.js - Live dashboard → Cluster review: opens review
app/dashboard/page.js - Cluster review → Team guidance: shows teams
app/dashboard/ClusterDrawer.js - Incident markers → Team guidance: formats teams
lib/incidentMarkers.js - Map cluster grouping → Incident markers: reads coordinates
lib/incidentClusters.js - Map cluster grouping → Geospatial calculations: calculates distance
lib/incidentClusters.js - Map layers → Incident markers: uses marker data
lib/incidentMapLayers.js - Map layers → Map cluster grouping: uses cluster groups
lib/incidentMapLayers.js - Station navigation → Emergency stations: finds nearest station
app/dashboard/navigation/page.js - Station navigation → Public environment: reads map config
app/dashboard/navigation/page.js - Operator or reporter → Live dashboard: monitors incidents
app/dashboard/page.js - Operator or reporter → Station navigation: requests directions
- AI triage API → Supabase client: updates incident
app/api/triage/route.js - AI triage API → Google Gemini: requests triage
app/api/triage/route.js - Incident clustering API → Supabase client: queries and links
app/api/cluster/route.js - Incident clustering API → Geospatial calculations: checks proximity
app/api/cluster/route.js - Incident clustering API → Event matching: evaluates candidates
app/api/cluster/route.js - Event matching → Gemini client: uses model client
lib/clusterMatch.js - Gemini client → Google Gemini: creates API client
lib/geminiClient.js - Browser config bootstrap → Public config API: fetches config
app/EnvBootstrap.js - Public config API → Public environment: gets runtime values
app/api/config/route.js - Supabase client → Public environment: reads credentials
lib/supabaseClient.js - Supabase client → Supabase service: connects to
lib/supabaseClient.js - Supabase service → Incident database: stores incident data