A live world map of extreme weather events — storms, floods, wildfires, extreme heat — built to observe patterns, transitions and intensity of extreme weather across the globe.
Everything runs on free tiers, no credit card.
Next.js + MapLibre + deck.gl → Vercel (Hobby) frontend / map
│ fetches GeoJSON
FastAPI (Python) → Vercel (Python funcs) read-only API
│ reads
Postgres + PostGIS → Neon (free tier) normalized event store
▲ upserts every 12h
Python ETL → GitHub Actions (cron) ingestion
| Hazard | Source | Notes |
|---|---|---|
| Storms (cyclones) | GDACS TC |
severity from alert level + alertscore |
| Floods | GDACS FL |
|
| Wildfires | GDACS WF + NASA FIRMS |
FIRMS pixels aggregated to one event per country per day, at the fire-weighted centre |
| Drought | GDACS DR |
bonus hazard |
| Extreme heat | Derived from Open-Meteo | absolute-threshold heuristic over a global city grid (see caveat) |
Heat caveat: no provider ships a ready-made "heatwave event" feed, so we derive it. v1 flags days crossing an absolute temperature threshold. The clean upgrade (TODO in
ingestion/sources/temperature.py) is percentile-vs-climatology anomaly detection.
All events are normalized into one events table (db/schema.sql) with a
unified intensity_norm (0–1) so the map colors/sizes every hazard consistently.
- Create a free project at neon.com → copy the connection
string (it looks like
postgresql://…neon.tech/neondb?sslmode=require). - Apply the schema (PostGIS is preinstalled on Neon):
psql "$DATABASE_URL" -f db/schema.sql
cd ingestion
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp ../.env.example ../.env # fill in DATABASE_URL + FIRMS_MAP_KEY
python run.py # all sources
python run.py --source gdacs # one sourceGet a free FIRMS key at https://firms.modaps.eosdis.nasa.gov/api/map_key/.
Schedule it free: push to GitHub, then add repo secrets
DATABASE_URL and FIRMS_MAP_KEY (Settings → Secrets → Actions). The workflow
in .github/workflows/ingest.yml runs every 12h (and on-demand via "Run
workflow").
cd api
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
DATABASE_URL="postgresql://…" uvicorn index:app --reload # http://localhost:8000Endpoints:
GET /events?hazard=storm,flood&from=ISO&to=ISO&bbox=w,s,e,n&min_intensity=0.5→ GeoJSONGET /stats→ counts + mean intensity per hazardGET /→ health
cd web
npm install
echo "NEXT_PUBLIC_API_URL=http://localhost:8000" > .env.local
npm run dev # http://localhost:3000API — new Vercel project, Root Directory = api, add env var
DATABASE_URL. api/vercel.json configures the Python build. You'll get a URL
like https://your-api.vercel.app.
Frontend — new Vercel project, Root Directory = web, add env var
NEXT_PUBLIC_API_URL = your API URL. Deploy.
Ingestion — already runs on GitHub Actions once secrets are set.
⚠️ Vercel Hobby is non-commercial only. Fine for a personal project.
api/ FastAPI read API (Vercel Python functions)
db/ PostGIS schema
ingestion/ Python ETL — sources/{gdacs,firms,temperature}.py + run.py
web/ Next.js + TS + MapLibre + deck.gl
.github/ ingest.yml cron
- Cyclone tracks (IBTrACS history + NHC live) drawn as moving trails — best showcase of "transitions across the world".
- Percentile-based heat anomalies (see temperature.py TODO).
- A time-lapse "play" button animating the slider.
- GloFAS flood footprints as polygons.