SentryAtlas — Real-Time Disaster Monitoring

The SentryAtlas map: a dark globe turned to the Pacific, with clusters of earthquakes along Alaska, the west coast of North America, Japan, the Philippines, Indonesia and the islands toward New Zealand, beside a sheet with the time window and a list of events
Thirty days of earthquakes. The Ring of Fire draws itself.

SentryAtlas puts every natural disaster it can find onto one map. Earthquakes, wildfires, floods, storms, cyclones — fifteen event types pulled live from four public agencies, normalized into a single shape, and plotted together. No account, no API key, no ads, no tracking cookies. It is open source under the AGPL and lives under my company's GitHub organization.

The Problem

The data already exists and is already free. USGS publishes earthquakes, NASA EONET tracks wildfires and volcanoes, NOAA issues weather alerts for the US, and GDACS covers global disasters. The catch is that each one models the world differently — different schemas, different category names, different date formats, different ideas of what a location even is. Watching all four means opening four sites and reconciling them in your head. SentryAtlas does that reconciliation once, in one place.

How It Works

The Go backend asks each of the four sources for news on its own schedule, every two to ten minutes, and keeps the latest answer in memory, so no visitor's request ever waits on a government API. A slow or failing source never holds up the others: the map keeps showing its last good copy and says how long the source has been silent. Each adapter translates its source into one shared event model — an ID, a type drawn from a fixed registry, coordinates, a time, and a severity — which is what makes fifteen different phenomena from four different agencies filterable through the same controls.

The map reads one snapshot of every current event, cached at Cloudflare's edge, and the state of each source travels in it — which matters more than it sounds, because it lets the map say NWS has not answered for 20 minutes; showing its last update instead of quietly showing you a calmer world than the real one.

The Details That Took the Longest

Aggregation problems are mostly edge cases, and the edge cases here are geographic. Most NWS alerts name forecast zones and counties rather than drawing a shape, so they arrive with no coordinates at all. SentryAtlas carries a table of every NWS zone and county, built from the Weather Service's own shapefiles, and places such an alert at the centre of the areas it names. An alert it still cannot place comes back as geometry: null, which is what GeoJSON actually says to do — never dropped at 0,0 in the Gulf of Guinea, and never inside a bounding box it does not belong to.

The other recurring theme is that public feeds are untrusted input. GDACS ships HTML inside its descriptions, so nothing from a feed is ever inserted as markup — the event panel renders every feed's text as text, which makes the whole class of injection impossible rather than merely unlikely. Unknown event types are rejected at the edge, and since the backend asks each source on its own schedule, no request a visitor sends, junk or not, ever turns into an upstream fetch.

The SentryAtlas home page: the headline 'What the world's hazard services are reporting, on one map', live counts of events, US weather alerts and earthquakes, an Open the map button, and the top of a live map
sentryatlas.com

How It's Made

Two pieces in one repository. A Go API using chi that polls each source in the background into an in-memory store, with per-IP rate limiting and gzip on the way out; its second version serves a snapshot of every current event that Cloudflare's edge hands out for 30 seconds at a time. It ships as a non-root Docker container on DigitalOcean App Platform, deployed from a committed spec rather than console clicks. And one Next.js site, exported as static files and served from Cloudflare Workers, with a MapLibre GL globe that filters by type, time window, and viewport, finds a city by name from GeoNames' list shipped with the site, and frames what is near you without your position leaving the browser.

The event marks are the part I did not expect to spend time on. Fifteen categories is more than colour can carry honestly, and some readers cannot tell several of the colours apart at all. So every type has a shape as well as a colour, and no two types whose colours could be confused under the common forms of colour blindness share a shape — a rule the checks enforce on every change. Severity is the fill: hollow for minor, half for moderate, full for severe, a halo for extreme. The type is still named in the legend, the list, and the event panel. Colour and shape narrow it down; the label settles it.

Take a Deeper Dive

The API is documented and usable on its own — GeoJSON, JSON or an event stream from the original endpoint, or a snapshot of every current event from the second version, no key required. The GitHub repo has the full tour, including how to run the whole stack locally.

TL;DR

I built a live map of natural disasters worldwide, aggregating four public agency feeds into one open API and one map. See it at sentryatlas.com/map.

go homego buildsgo careergo contactopen résuméopen githubopen linkedinmail kyro