Skip to content

Repository files navigation

ReliefOps Command Center

Next.js live-ops disaster-relief dashboard simulation for a fictionalized Mandalay earthquake response scenario.

Run

npm install
npm run dev

Open http://127.0.0.1:3000.

Optional local model configuration:

NEXT_PUBLIC_COGENT_MODEL_URL=https://example.com/gemma-4.gguf
NEXT_PUBLIC_COGENT_PROJECTOR_URL=https://example.com/mmproj-gemma-4.gguf
NEXT_PUBLIC_MAP_STYLE_URL=https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json

Current Slice

  • Next.js App Router dashboard shell.
  • MapLibre operations map centered on Mandalay with CARTO Dark Matter basemap and fallback status.
  • Deterministic mock report generator with slower calm-trickle pacing and reset.
  • Dexie/IndexedDB persistence for reports, analyses, regional summaries, and selection briefs.
  • Worker-backed CogentLM/Gemma 4 analysis adapter with mock fallback when model URL, WebGPU, OPFS, worker startup, or parsing fails.
  • CogentLM vision path for image/video thumbnails when a Gemma vision projector is configured.
  • Active AI-generated meta incidents that aggregate nearby source reports into a separate map overlay.
  • Zod validation for report analysis and selection briefs.
  • Regional severity scoring and periodic synthesis.
  • Manual map selection, marker inspection, cluster/group inspection, and reliable hotspot inspection for demos.
  • Generated local mock media assets under public/mock-media/.
  • Lightweight route handlers for scenario seed, reset, and external ingest validation.

Notes

The scenario is a fictionalized operational simulation inspired by the March 28, 2025 Mandalay earthquake. Mock reports are generated data and should not be interpreted as real incident records.

CogentLM is alpha, so the UI defaults to a safe fallback when NEXT_PUBLIC_COGENT_MODEL_URL is unset. The browser integration is isolated behind lib/ai/AIWorkerClient.ts, workers/ai.worker.ts, and lib/ai/CogentLMAdapter.ts. Per-report enrichment, region synthesis, meta-incident synthesis, and selection briefs all use validated JSON prompts when a local Gemma 4 model is ready, with deterministic/mock fallback paths preserved. Configure NEXT_PUBLIC_COGENT_PROJECTOR_URL to enable thumbnail vision analysis.

About

ReliefOps: Local-First Disaster Intelligence with Gemma 4

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages