How anuragkoirala51-crypto/idcs--integrated-disaster-cordination works
IDCS is an offline-first disaster coordination dashboard for responders, volunteers, and command agencies. Its main workflow is to gather incident and environmental information, present it on command maps, prioritize and route emergency communications, and coordinate relief resources. The README documents the tactical mesh, drone-relay simulation, offline queues, and agency dispatch; the source index confirms selected page-to-component and data-layer dependencies. Several implementation details are unsampled, so those documented capabilities are shown without asserting unverified internal calls.
Main entry points: chat/page.tsx Agency Dispatch · command/page.tsx Command Dashboard · government/page.tsx Government Resource HQ · MapClient.tsx Map and Incident Layers
Components 21
Command Operations
- Command Dashboard
src/app/command/page.tsx - Network Topology
src/components/Network/NetworkTopology.tsx - Drone Relay Simulation
src/components/Map/DroneRelay.tsx
Situational Awareness
- Tactical GIS Map
src/components/Map/ReliefMap.tsx - Map and Incident Layers
src/components/Map/MapClient.tsx - Disaster Globe
src/components/Globe/GlobeClient.tsx - Disaster and Weather Data
src/lib/disasterApi.ts
Communications
- Agency Dispatch
src/app/chat/page.tsx - Bearer Selection
src/components/Chat/MediumSelector.tsx - Message Feed
src/components/Chat/MessageFeed.tsx - Emergency Protocols
src/lib/commProtocols.ts - Offline Message Queue
src/lib/offlineChat.ts - Nostr Messaging
src/lib/nostr.ts - Priority Engine
src/lib/priorityEngine.ts
Relief Coordination
- Volunteer Coordination
src/app/volunteers/page.tsx - Government Resource HQ
src/app/government/page.tsx
Application Data
- Relief Data Actions
src/actions/fetchData.ts - MongoDB Connection
src/lib/mongodb.ts - Relief Records
src/models/Camp.ts - Shared App State
src/store/useAppStore.ts
Other components
- Field Responders
Connections 24
- Field Responders → Agency Dispatch: send dispatches
- Agency Dispatch → Bearer Selection: selects bearer
src/app/chat/page.tsx - Agency Dispatch → Message Feed: renders messages
src/app/chat/page.tsx - Agency Dispatch → Emergency Protocols: parses codes
src/app/chat/page.tsx - Agency Dispatch → Offline Message Queue: queues messages
src/app/chat/page.tsx - Agency Dispatch → Nostr Messaging: publishes messages
src/app/chat/page.tsx - Agency Dispatch → Priority Engine: prioritizes traffic
- Field Responders → Command Dashboard: monitor incidents
- Command Dashboard → Tactical GIS Map: renders map
src/app/command/page.tsx - Command Dashboard → Network Topology: shows topology
src/app/command/page.tsx - Command Dashboard → Disaster and Weather Data: loads disaster news
src/app/command/page.tsx - Command Dashboard → Drone Relay Simulation: simulates deployment
- Tactical GIS Map → Map and Incident Layers: renders map client
- Map and Incident Layers → Drone Relay Simulation: renders relays
src/components/Map/MapClient.tsx - Map and Incident Layers → Disaster and Weather Data: loads location data
src/components/Map/MapClient.tsx - Disaster Globe → Disaster and Weather Data: fetches live events
src/components/Globe/GlobeClient.tsx - Field Responders → Disaster Globe: inspect disaster conditions
- Government Resource HQ → Tactical GIS Map: renders relief map
src/app/government/page.tsx - Government Resource HQ → Shared App State: reads shared state
src/app/government/page.tsx - Volunteer Coordination → Shared App State: matches field tasks
src/app/volunteers/page.tsx - Volunteer Coordination → Field Responders: coordinates volunteers
- Relief Data Actions → MongoDB Connection: connects database
src/actions/fetchData.ts - Relief Data Actions → Relief Records: queries relief records
src/actions/fetchData.ts - Government Resource HQ → Relief Data Actions: loads relief data