How sangamdevhare6-crypto/world-monitor works
WORLD MONITOR is a disaster-intelligence and civil-protection command center serving citizens and authorities. Users reach dashboards, weather/radar, alerts, evacuation routes, infrastructure monitoring, incident reporting, and analytics through the web client and Express API. Backend controllers implement these domain workflows over PostgreSQL or the embedded fallback store; weather and emergency-alert services add external telemetry, while SSE distributes live updates. The graph preserves README-documented capabilities even where their frontend or controller implementations were not sampled; those connections are shown only when documented or indexed.
Main entry points: server.js Express API · app.js Command Interface · emergencyAlertService.js Emergency Alert Engine · alertService.js Alert Management
Components 27
Web Client
- Command Interface
frontend/js/app.js - REST Client
frontend/js/api.js - Dashboard View
frontend/js/dashboard.js - Weather & Radar
frontend/js/weather.js - Radar View
frontend/js/radar.js - Evacuation Map
frontend/js/routes.js - Alerts View
frontend/js/alerts.js - Reports View
frontend/js/reports.js - Live Notifications
frontend/js/notifications.js
API Workflows
- Express API
backend/server.js - Situation Dashboard
backend/controllers/dashboardController.js - Safe Routing
backend/controllers/routeController.js - Infrastructure Sensors
backend/controllers/infrastructureController.js - Monitoring Stations
backend/controllers/stationController.js - Alert Management
backend/services/alertService.js - Incident Reports & Dossiers
backend/controllers/reportController.js
Monitoring & Response
- Weather Forecasts
backend/services/weatherService.js - Radar Telemetry
backend/services/radarService.js - Emergency Alert Engine
backend/services/emergencyAlertService.js - SSE Event Stream
backend/services/realtimeService.js
Identity & State
- Authentication
backend/controllers/authController.js - JWT & Role Guards
backend/middleware/authMiddleware.js - Database & Fallback
backend/config/db.js
Other components
- Citizen
- Authority
- Open-Meteo
- GDACS & USGS
Connections 36
- Citizen → Command Interface: uses
- Authority → Command Interface: uses
- Command Interface → REST Client: requests data
- REST Client → Express API: calls REST
- Command Interface → Dashboard View: renders
- Command Interface → Weather & Radar: renders
- Command Interface → Radar View: renders
- Command Interface → Evacuation Map: renders
- Command Interface → Alerts View: renders
- Command Interface → Reports View: renders
- Command Interface → Live Notifications: renders
- Express API → Situation Dashboard: routes requests
backend/server.js - Express API → Authentication: routes requests
backend/server.js - Express API → Incident Reports & Dossiers: routes requests
backend/server.js - Express API → Weather Forecasts: routes requests
backend/server.js - Express API → Radar Telemetry: routes requests
backend/server.js - Express API → Safe Routing: routes requests
backend/server.js - Express API → Infrastructure Sensors: routes requests
backend/server.js - Express API → Monitoring Stations: routes requests
backend/server.js - Express API → Alert Management: routes requests
backend/server.js - Express API → SSE Event Stream: registers clients
backend/server.js - Express API → Emergency Alert Engine: starts engine
backend/server.js - Situation Dashboard → Weather Forecasts: reads forecasts
backend/controllers/dashboardController.js - Situation Dashboard → Alert Management: reads alerts
backend/controllers/dashboardController.js - Weather Forecasts → Open-Meteo: fetches forecasts
backend/services/weatherService.js - Emergency Alert Engine → Open-Meteo: fetches telemetry
backend/services/emergencyAlertService.js - Emergency Alert Engine → GDACS & USGS: checks events
backend/services/emergencyAlertService.js - Emergency Alert Engine → SSE Event Stream: broadcasts alerts
backend/services/emergencyAlertService.js - Incident Reports & Dossiers → SSE Event Stream: broadcasts updates
backend/controllers/reportController.js - Incident Reports & Dossiers → Database & Fallback: reads and writes
backend/controllers/reportController.js - Alert Management → SSE Event Stream: broadcasts alerts
backend/services/alertService.js - Alert Management → Database & Fallback: reads and writes
backend/services/alertService.js - Authentication → Database & Fallback: reads and writes
backend/controllers/authController.js - Authentication → JWT & Role Guards: issues tokens
backend/controllers/authController.js - JWT & Role Guards → Database & Fallback: loads user
backend/middleware/authMiddleware.js - JWT & Role Guards → Express API: guards routes
backend/server.js