How urveebettadapur/resq-grid-ai works
ResQ-Grid AI is a browser-based disaster-response coordination application. Civilians submit SOS reports with location and optional media; the application ranks incoming incidents, selects a nearby relief hub, and calculates a hazard-aware route for coordinators and responders. Mission control presents incidents, hazards, routes, triage, and resources; offline queuing and hop relay support the software-side blackout workflow. The sampled code confirms the main App-to-engine calls and SOS intake; several README-described features have tree-supported components but their internal wiring was not sampled.
Main entry points: App.jsx Application · MobileCivilianSOS.jsx SOS Portal · SatelliteMap.jsx GIS Mission Map · TriageMatrix.jsx Triage Feed
Components 21
Civilian SOS Intake
- SOS Portal
src/components/MobileCivilianSOS.jsx - Alert Audio
src/services/audioAlerts.js - QR Sharing
src/components/MobileQrModal.jsx
Mission Coordination
- Application
src/App.jsx - GIS Mission Map
src/components/SatelliteMap.jsx - Resource Inventory
src/components/ResourceInventory.jsx - Situation Reports
src/components/SitrepExport.jsx - Disaster Scenarios
src/services/disasterData.js - Disaster Guide
src/components/DisasterGuideModal.jsx - Navigation
src/components/Navbar.jsx
Response Decision Support
- Triage Scoring
src/services/triageEngine.js - Triage Feed
src/components/TriageMatrix.jsx - Safe Routing
src/services/routingEngine.js - Route Optimizer
src/components/RouteOptimizer.jsx
Offline Connectivity
- Offline Queue
src/services/offlineStorage.js - Hop Relay Engine
src/services/hopRelayEngine.js - Relay Terminal
src/components/HopRelayTerminal.jsx - Mesh Visualizer
src/components/OfflineMeshVisualizer.jsx
Other components
- Civilian
- Responder
- Satellite Imagery
Connections 21
- Civilian → SOS Portal: submits SOS
- SOS Portal → Application: submits incident
- SOS Portal → Offline Queue: queues offline
- SOS Portal → Alert Audio: plays alert
- Application → Alert Audio: plays alert
- Application → Triage Scoring: ranks incidents
- Application → Safe Routing: selects hub and routes
- Application → GIS Mission Map: supplies map state
- Application → Triage Feed: supplies incidents
- Application → Route Optimizer: renders optimizer
- Application → Resource Inventory: renders resources
- Application → Relay Terminal: renders terminal
- Application → Mesh Visualizer: renders mesh view
- Application → Situation Reports: renders reports
- Application → Disaster Scenarios: loads scenarios
- Application → Disaster Guide: renders guide
- Application → QR Sharing: renders QR modal
- Application → Navigation: renders navigation
- GIS Mission Map → Satellite Imagery: loads imagery
- Triage Feed → Responder: presents priorities
- GIS Mission Map → Responder: shows hazards and routes