Skip to content
All work

Case study · NASA Space Apps Challenge 2026

FIREBRIDGE

A consistent fire history across changing satellites. The satellites changed. Did the fires?

My role
Built the data platform and AI agent; main contributor to the web app
Team
Astra Mind · team of 4
Challenge
Harmonization of MODIS and VIIRS Hot Spots
Status
Live in production with CI/CD
FIREBRIDGE home page: MODIS is going dark, the fire record doesn’t have to

01 · The problem

Same fires, different eyes.

NASA's MODIS instruments on Terra and Aqua have recorded Earth's fires since 2000. Since 2012, VIIRS has flown beside them. It sees the same fires through smaller pixels (375 m instead of 1 km) and at other times of day. Both MODIS satellites are now drifting toward the end of their missions.

Compare a region in 2010 with the same region in 2020, and more detections could mean more burning, a more sensitive sensor, different overpass times, or all three. Adding every satellite's points together hides that.

FIREBRIDGE brings the records into one workspace and keeps every sensor difference visible. Its sensor bridge estimates what Aqua-MODIS would have reported, so different years can be compared on one scale.

NASA FIRMS records in the archive, millions

  • Terra MODIS 1 km · 2000 41.0M
  • Aqua MODIS 1 km · 2002 74.2M
  • Suomi-NPP VIIRS 375 m · 2012 298.0M
  • NOAA-20 VIIRS 375 m · 2018 173.3M
  • NOAA-21 VIIRS 375 m · 2023 73.4M

Archived and audited 9 Nov 2026. VIIRS's higher counts come from its finer pixels, which is exactly the bias the bridge accounts for.

02 · Architecture

From a NASA API to a pinned release.

  1. 01

    Sources

    • NASA FIRMS (MODIS, VIIRS)
    • NASA POWER weather
    • Dated reports
  2. 02

    Orchestrate

    • Airflow 3.3 · 10 DAGs
    • Retries, checkpoints
    • Resumable downloads
  3. 03

    Lake

    • Immutable raw + SHA-256
    • Parquet · Arrow
    • DuckDB audits
  4. 04

    Serve

    • PostgreSQL 16 + PostGIS
    • Versioned releases
    • dbt models + tests
  5. 05

    Product

    • Fastify API · BullMQ
    • React · MapLibre
    • Grounded AI agent

Large archives and the application database are kept apart. The source is preserved with checksums and acquisition metadata, validated and normalized without losing native values, then published as an immutable version. When a user selects an area and dates, regional indexes narrow the archive reads, the exact saved geometry is applied, and only the requested history is published into a bounded PostGIS cache.

Airflow runs data workflows; the application's BullMQ workers run user analysis jobs. The two have separate responsibilities. The database, Airflow and pgAdmin stay private, and the web app connects with a restricted role that can't write raw detections.

03 · What I built

Three services, one source of truth.

Data platform

Repository
  • Resumable full-history acquisition of NASA FIRMS for Terra, Aqua, Suomi-NPP, NOAA-20, NOAA-21 and Landsat 8/9: 666.9M rows, 23.3 GiB, streamed from ZIP members without extracting global CSVs.
  • Offline audit of 4,202 download windows: checksums, schema and per-product field semantics. Invalid values and empty windows are recorded, never silently dropped.
  • Ten Airflow 3.3 DAGs: ingestion, archive import, full-history download, audit, index, benchmark, load, analytics and health.
  • dbt staging and analytical models (daily detections, weather, reports, area context, query coverage) with data tests.
  • Regional spatial indexes over 3,808 history windows and bounded, resumable PostGIS publication. Analysis time-to-ready fell from 25.5 s to 4.7 s.
  • Python 3.12
  • Airflow 3.3
  • dbt
  • Parquet
  • Arrow
  • DuckDB
  • PostgreSQL 16
  • PostGIS 3.5
  • Docker Compose

Web application

Repository
  • Draw or pick any area and period. The map, daily fire calendar, observations and satellite contributions all come from one saved, shareable analysis.
  • Sensor bridge: measured Terra/Aqua orbit drift, Aqua hidden and predicted from the other satellites, and a rehearsal of the day Aqua goes dark.
  • Fire drivers against NASA POWER heat and rain, and findings checked against published fire science cited by DOI.
  • Fastify 5 API and BullMQ workers on Redis, Prisma over a restricted PostgreSQL role, Zod-validated shared contracts.
  • React 19
  • TypeScript
  • Vite
  • MapLibre GL
  • ECharts
  • d3
  • Fastify
  • BullMQ
  • Redis
  • Prisma
  • Zod

AI agent

Repository
  • The model never invents a statistic. An evidence engine turns the analysis into numbered facts; the LLM only explains them and cites what it used.
  • A number guard checks every number in an answer against the evidence, allowing for rounding and French or Arabic number formats. On a mismatch, the same model gets one chance to repair.
  • A model router reads Groq rate-limit headers to switch before a 429, cools models down for exactly the time the API reports, and falls back to deterministic facts when every model is busy.
  • Bounded tool loop (month, day, compare periods, unusual months…), short-term memory with a rolling summary, and BM25 long-term memory per user.
  • Prompt-injection screen in 7 languages, before any model call. Runs as non-root on a read-only filesystem; 138 tests with no network.
FIREBRIDGE copilot: 5 numbers checked against the evidence
  • Python
  • FastAPI
  • Pydantic
  • httpx
  • Groq
  • SQLite
  • BM25
  • pytest
  • uv

04 · Results

Measured, not promised.

666.9M
detection records archived
5 satellites + Landsat, Nov 2000 → Nov 2026
23.3 GiB
audited Parquet archive
4,202 download windows checked
4.7 s
to a ready analysis
Morocco, full year 2020; 25.5 s before
3,808
regional index windows
archive reads narrowed before exact geometry

Times are live measurements for those selections, not a guarantee for every query. A new Portugal/full-year-2020 analysis took 3.2 s.

Fire calendar: when was burning unusual, and do the satellites agree?
Fire calendar: a month is flagged only when independent satellites, each judged against its own past, agree.
Map workspace with fire detections over northern Morocco
Map workspace: detections clustered by zoom over a drawn study area, on NASA GIBS imagery.

05 · Principles

What the product is allowed to say.

Missing data is never zero

A satellite that had not launched yet, or a superseded collection, is reported as unavailable, never as “no fire”.

Detections are not fires

100 detections are 100 satellite records. VIIRS counting 12× more than MODIS reflects 375 m pixels, not 12× more burning.

Failures never replace a good release

Publication is immutable and versioned. A failed update leaves the previous release serving; every view reads the same pinned release.

Every number is traceable

Map, calendar, exports and the AI explanation are checked for consistency against the same records, and every figure cites its source.

06 · Operations

Shipped like production software.

  • GitHub Actions: lint, types, unit and UI tests, PostGIS + Redis integration tests
  • Secret scanning, dependency audit and HIGH/CRITICAL image vulnerability scans
  • Images published as immutable GHCR digests; real-container health checks gate activation
  • Restricted SSH gateway: CI can transfer images and activate, never open a shell
  • Read-only containers, dropped capabilities, private database and admin services
  • Database backup before each activation, one-command rollback to any loaded revision

Everything runs as Docker Compose stacks on a 6 vCPU / 12 GB VPS, behind an Nginx proxy with automatically renewed TLS. This portfolio runs on the same server.

07 · Team

Astra Mind.

Built for the NASA Space Apps Challenge on 14–15 November 2026 by Mohamed El Korchi, Mohamed-Ali Ahl Sidi Hoummad, Anwar Ezzirani and Zakaria El Korchi. All three repositories are MIT licensed.

FIREBRIDGE submission slide for NASA Space Apps Challenge 2026: NASA FIRMS detections over Fez-Meknes, Morocco
Our submission slide. The map shows NASA FIRMS detections over Fez-Meknes, Morocco, 2020–2026.
Next case study Docker Inspector