Fire professionals and hotshots getting deployed to a wildfire currently stitch together NIFC/CalFire data, pyrecast spread forecasts, FTP'd incident maps, and weather sites to build a picture of the incident. Responder Debrief unifies them in one map-centric web app: a USA map of active fires, per-fire detail with spread forecasts and weather layers, a timeline that scrubs from fire history into the forecast future, and geo-aligned incident-map PDF overlays.
Features
- National map of ~400 active fires: pins, perimeters (pre-rendered snapshot image), satellite hotspot detections with age-based styling
- Per-fire view: versioned perimeter history, stats, AI incident summary, structure exposure
- Spread forecasts (pyrecast ELMFIRE): crown fire, flame length, spread rate, hours-since-burned, time of arrival — percentile selector (50/90 pre-rendered), hourly playback out to +7 days
- Weather forecast overlays (HRRR via pyrecast): temperature, RH, wind, gusts, fire-weather index, smoke, precip, and more — multi-select with legends
- Timeline scrubber spanning fire history (perimeter versions, hotspot aging) into the forecast future, with buffered playback
- Incident map room: the actual ops/IAP/briefing/evac PDFs posted by incident teams, mirrored from ftp.wildfire.gov, tiled and geo-aligned on the map where georeferenced, with IR heat-perimeter vectors
Browser (Vite+React+TS+MapLibre SPA — GitHub Pages)
├─→ fire-api-prod.web.app directly (CORS *)
└─→ https://fNNN.backblazeb2.com/file/responder-debrief-data/… catalogs, frames, tiles, PDFs (B2, CORS *)
Cron worker (Python 3.12 + gdal-bin CLI, GitHub Actions, public repo)
├─ catalogs job (hourly): fire API + pyrecast caps → pre-rendered WMS frames + catalog.json / pyrecast_runs.json / weather_runs.json
└─ mirror job (4×/day): FTP crawl → match to active fires → mirror PDFs → GeoPDF→XYZ tiles → B2
Static frames: the browser never talks to the pyrecast geoservers. The hourly catalogs job pre-renders every WMS image the frontend needs — spread-forecast frames per new run (percentiles 50/90 only, thinned time instants, run-bbox PNGs), CONUS weather frames per HRRR forecast hour, a national perimeters snapshot, and legends — into B2 as static, mostly immutable PNGs that the manifests reference by path template. Each frame is fetched from pyrecast exactly once ever (runs are immutable and run-stamped), with ≤2 concurrent requests per geoserver and a per-sync image budget (FRAME_BUDGET, default 3000; budget-limited runs are marked "complete": false and finish on later ticks).
Repo layout:
| Dir | What | Deployed by |
|---|---|---|
frontend/ |
Vite + React + TS + MapLibre GL SPA | deploy-pages.yml → GitHub Pages |
worker/ |
Python data pipeline (uv-managed) | catalogs.yml (hourly), mirror.yml (4×/day) on GitHub Actions |
docs/ |
Plan + detailed specs | — |
Frontend:
cd frontend
npm install
npm run dev # http://localhost:5173Python worker (dry-run writes catalogs and frames to ./out/ instead of B2 — no credentials needed):
cd worker
uv sync
uv run python -m responder_worker.cli sync-catalogs --dry-run \
--frames-fires <slug> --frames-hours 8 --frames-products smoke,ws,rh # polite frame limits
uv run python -m responder_worker.cli sync-incidents --dry-run --fire elk
uv run pytest # unit tests against tests/fixtures/Dry-run frames land under worker/out/frames/…; copy worker/out/ into frontend/public/data for local dev data.
Local GDAL for the mirror job: brew install gdal (macOS) / apt-get install gdal-bin (Linux).
-
Create the GitHub repo (public — Actions minutes are free only on public repos) and push:
git remote add origin git@github.com:<you>/responder_debrief.git git push -u origin main
-
Enable GitHub Pages: repo → Settings → Pages → Build and deployment → Source: GitHub Actions. The site will live at
https://<you>.github.io/responder_debrief/(the Vite build bakes inVITE_BASE=/responder_debrief/; if you rename the repo, update that value in.github/workflows/deploy-pages.yml). -
Create the B2 bucket
responder-debrief-data, public, with CORS open for GET:-
Console: Buckets → Create Bucket → name
responder-debrief-data, Files in Bucket are: Public. -
CLI (
brew install b2-toolsorpip install b2):b2 account authorize # master key, one-time b2 bucket create responder-debrief-data allPublic b2 bucket update responder-debrief-data allPublic --cors-rules '[{ "corsRuleName": "public-get", "allowedOrigins": ["*"], "allowedOperations": ["b2_download_file_by_name", "b2_download_file_by_id", "s3_get", "s3_head"], "allowedHeaders": ["range"], "exposeHeaders": ["etag", "content-range"], "maxAgeSeconds": 3600 }]'
-
Create an application key scoped to this bucket only (Read & Write): App Keys → Add a New Application Key → restrict to
responder-debrief-data. Note thekeyIDandapplicationKey. -
Note your bucket's S3 endpoint (shown on the bucket page, e.g.
s3.us-west-004.backblazeb2.com) and friendly download URL (e.g.https://f004.backblazeb2.com/file/responder-debrief-data). -
Optional: add a 14-day lifecycle rule on the
catalogs/versions/prefix (the worker snapshots catalogs there). -
Recommended for the trails build and routing bundles: a lifecycle rule with
daysFromHidingToDeleting: 1oncatalogs/(pointer rewrites leave hidden versions) andwork/(NHD cache). Old trails builds (trails/b*/) and bundles (routing/*/b*/) are never deleted automatically; prune them by hand when storage matters (cents per month today).
-
-
GitHub secrets (repo → Settings → Secrets and variables → Actions → Secrets):
Secret Value B2_KEY_IDthe bucket-scoped application keyID B2_APP_KEYthe bucket-scoped applicationKey Variables (same page, Variables tab):
Variable Example B2_S3_ENDPOINThttps://s3.us-west-004.backblazeb2.comVITE_DATA_BASE_URLhttps://f004.backblazeb2.com/file/responder-debrief-dataFRAME_BUDGET(optional)3000— per-sync cap on pre-rendered frame images -
Trails + offline Walk (optional, independent of the rest): run Trails build once (Actions → Run workflow,
force), then Routing bundles runs after it and every 3 hours. Both have adry_runinput that uploads the output as an artifact instead of writing B2 — use it to inspect a real GDAL 3.8.4 build first. Optional variablePRIORITY_FIRES(slugs/names/cornea ids) builds those fires' bundles first. -
Go live: push to
main.deploy-pages.ymlbuilds and publishes the frontend; run Sync catalogs and Mirror incidents once by hand (Actions → workflow → Run workflow) to seed B2, after which the crons keep them fresh (catalogs hourly at :07, mirror at 01:25/07:25/13:25/19:25 UTC). The first few catalog runs work through the frame backlog under theFRAME_BUDGETcap; runs marked"complete": falsefinish on later ticks.
- Fire locations, perimeters, hotspots, incident data — NIFC and CAL FIRE public data, accessed via the fire-api service.
- Fire spread & fire-weather forecasts — WMS services by Pyrecast LLC (pyrecast.org). Out of courtesy to their free service, this app never hits their geoservers from users' browsers: the worker pre-renders each frame server-side exactly once per forecast run (low concurrency, retry backoff, per-sync budget) and serves the static images from B2. Forecasts are experimental model output — not operational guidance.
- Incident maps & IR products — incident-team uploads on ftp.wildfire.gov (NWCG), mirrored 4×/day with conditional requests and a contact-tagged user agent.
- Basemap — OpenFreeMap tiles, © OpenStreetMap contributors.
- Trails — USDA Forest Service (National Forest System Trails, EDW), BLM (Ground Transportation Linear Features), National Park Service (Public Trails).
- Offline Walk routing — roads and paths © OpenStreetMap contributors via Geofabrik extracts (the published routing graphs are ODbL 1.0 derivative databases); vegetation, fuels, slope and elevation from LANDFIRE; perennial streams and water from the USGS National Hydrography Dataset; travel rates from Sullivan et al. 2020 and the USFS Ground Evacuation Time v2 model. Cross-country legs are modeled, not scouted.
- Design inspiration — fires.cornea.is.
This is a prototype for gathering user feedback. Verify all operational information through official channels before acting on it.