Skip to content
AuritroSPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrisisMapr

Web Dashboard Mobile App

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.

At A Glance

The first diagram shows the problem. The second shows the implementation in this repository.

Problem

problem

Implementation

implementation

What The System Does

  • 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, and mesh
  • streams delivered reports into a live web dashboard
  • overlays external hazard feeds so responders can correlate reports with active events

Architecture

Mobile field app

The mobile app is designed for use at the edge of the network. It supports:

  • one-tap DANGER and SAFE reporting
  • 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

Local-first delivery

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

Delivery tiers

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

Command dashboard

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

Technical Depth

Stack

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

System principles

  • 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

Hazard Intelligence

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.

User Experience

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

Repository Structure

app/    Mobile field app
web/    Web command dashboard
docs/   Supporting material

Local Setup

Environment

app/.env

EXPO_PUBLIC_SUPABASE_URL=your_supabase_url
EXPO_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your_publishable_key
EXPO_PUBLIC_MAPBOX_TOKEN=your_mapbox_token

web/.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_key

Run

cd web
npm install
npm run dev
cd app
npm install
npm run start

Links

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages