An offline-first emergency coordination system for disasters, outages, and degraded networks.
When disaster hits, communication infrastructure is often the first thing to break. People can still report danger, injuries, and location from their phones, but cloud-dependent systems fail the moment those reports cannot leave the device.
CrisisMapr is built for that failure mode. Every emergency report is stored locally first, then delivered through whatever path becomes available: live internet, delayed reconnect, satellite-style fallback, or QR-based device relay. Once delivered, reports appear in a realtime command dashboard alongside live hazard data for dispatch and situational awareness.
The first diagram shows the problem. The second shows the implementation in this repository.
- captures emergency reports from a mobile field app
- stores every packet in a local outbox before any network attempt
- retries delivery automatically as connectivity changes
- supports four delivery paths:
direct,queued,satellite, andmesh - streams delivered reports into a live web dashboard
- overlays external hazard feeds so responders can correlate reports with active events
The mobile app is designed for use at the edge of the network. It supports:
- one-tap
DANGERandSAFEreporting - structured triage fields for severity, medical need, trapped status, mobility, and people count
- GPS coordinates attached at source
- visible connectivity state and unsynced packet count
- QR send and receive flows for cross-device relay
Every report is written to expo-sqlite before sync. The device keeps custody of the report until delivery succeeds.
That model gives the system:
- persistence across outages and app restarts
- ordered retry and later flush
- delivery tracking through multiple network conditions
- a durable local source of truth when the cloud is unavailable
The sync layer promotes packets through four delivery modes:
| Tier | Meaning |
|---|---|
direct |
sent immediately when connectivity is available |
queued |
held locally during outage and flushed on reconnect |
satellite |
delivered through a delayed fallback path |
mesh |
relayed between devices through QR custody transfer |
Once packets reach Supabase, the web dashboard provides:
- realtime packet subscriptions
- live map pins with triage context
- delivery provenance including tier and attempts
- dispatch-oriented monitoring
- hazard overlays from external disaster feeds
| Layer | Technology |
|---|---|
| Mobile app | React Native 0.81, Expo 54, TypeScript |
| Local persistence | expo-sqlite |
| Connectivity awareness | @react-native-community/netinfo |
| QR relay | expo-camera, react-native-qrcode-svg |
| Web dashboard | Next.js 16, React 19 |
| Mapping | Mapbox GL |
| Backend | Supabase, PostgreSQL, Realtime |
- Store-and-forward delivery keeps reports durable before sync
- Delay-tolerant networking allows delivery without end-to-end connectivity
- Idempotent upserts make retries and relay safe without duplicate records
- Eventual consistency ensures reports appear once delivery becomes possible
- Geospatial reasoning supports hazard correlation and live map context
The dashboard combines emergency packets with live hazard layers from:
- USGS
- NASA FIRMS
- NASA EONET
- GDACS
This gives responders a single operational view of reported incidents, known hazards, and spatial overlap between them.
The interface is designed for high-pressure use:
- primary actions are immediate and obvious
- triage data is structured for responders
- connectivity state is visible instead of hidden
- delayed and relayed packets remain traceable
- the dashboard moves directly from signal to response context
app/ Mobile field app
web/ Web command dashboard
docs/ Supporting material
app/.env
EXPO_PUBLIC_SUPABASE_URL=your_supabase_url
EXPO_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your_publishable_key
EXPO_PUBLIC_MAPBOX_TOKEN=your_mapbox_tokenweb/.env.local
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your_publishable_key
NEXT_PUBLIC_MAPBOX_TOKEN=your_mapbox_token
NEXT_PUBLIC_FIRMS_MAP_KEY=your_nasa_firms_keycd web
npm install
npm run devcd app
npm install
npm run start
