Update, October 2026: AFTERSHOCK has been rebuilt with a place picker (the US, any state, any country or region), comparisons at the magnitude each network really catches, ten years of baselines and real aftershock sequences. Some details below describe the original version. Read what changed →

I grew up in Groveland, California, a Gold Rush town tucked into the western Sierra Nevada foothills of Tuolumne County. The hills there are old and crumpled, and the rocks don't give up their stories easily. The Melones Fault Zone runs right through that country. As a kid I walked those fault scarps without knowing what they were. I just knew the land felt different there, broken somehow.

The 1989 Loma Prieta earthquake hit when I was young. Fifteen seconds, M6.9, 63 dead. I remember what it felt like when the ground, the one thing you never think to doubt, stopped holding still for a few seconds.

AFTERSHOCK is that memory grown up and given a dashboard.

What It Does

Every six hours, a GitHub Actions pipeline wakes up, calls the USGS Earthquake Hazards Program ComCat API, and pulls every measurable shake across the United States and beyond: M1.5 and up, worldwide. It writes a static JSON file, and a dark map on ESRI Dark Gray Canvas tiles loads it. The dots are sized and colored by magnitude. The microseismicity shows up as tiny green pinpoints, and the colors climb through yellow, orange and red into deep red and purple as the energy goes up. A magnitude 7 sits on the map like a bruise.

The Map
Click any dot for a popup with magnitude, location, depth, time elapsed and a link to the USGS event page. Every earthquake gets one.
State Deep-Dives
Click any US state, active or quiet: event count, largest magnitude, average depth, magnitude distribution chart, most recent events list.
National Leaderboard
Top states ranked by event count, color-coded by intensity. Alaska is always first. It's not even close.
Hiroshima Equivalent
Total seismic energy expressed as a multiple of the Hiroshima bomb yield. Because 1.8Γ—10¹⁷ joules means nothing until you say it a different way.

The Filters

Two controls drive everything at once: the map, the state panel, the leaderboard and the recent events list. The time window buttons go 1D, 3D, 7D, 14D, 30D. The magnitude slider drags from M1.5 up to M6.0, and as you slide it the noise drops away and the significant events stay. It all responds instantly because the data is already in the browser, one JSON file loaded once.

The Architecture

It's the same pattern as everything else in this collection: one Python script and one JSON file, with no database and no server.

# The entire pipeline USGS ComCat API β†’ fetch/fetch_quakes.py (Python, every 6 hours via GitHub Actions) β†’ data/earthquakes.json β†’ index.html (Leaflet + Chart.js, no build step) β†’ brooksgroves.com/aftershock

You could read through the whole thing in an afternoon. The automatic update commits read Seismic update: YYYY-MM-DD HH:MM UTC, and as long as those keep showing up in the commit history, the pipeline is healthy.

The Quiet States

One of my favorite things about the state deep-dives is how they handle quiet states. Click a state with no recent seismic activity and instead of an error you get a message: "Quiet is not nothing β€” it may mean the fault is locked." A locked fault builds up strain. Sometimes a quiet fault is the one to worry about.

"The fault does not forgive. The data never lies."

The Cascadia Subduction Zone, offshore of Washington, Oregon and northern California, hasn't produced a full-margin rupture since January 26, 1700. That's 326 years of locked strain. AFTERSHOCK keeps an eye on the small quakes along that margin, and the data updates every six hours.


Live at brooksgroves.com/aftershock. Open source at github.com/bdgroves/aftershock. Built by someone who grew up walking fault scarps without knowing it.


Go deeper

🎧 Listen & watch

Stories from the Epicenter, Episode 1: Pacific Garden Mall — Stories from the Epicenter (UC Santa Cruz Library), series launched 17 October 2020, about 36 min. Oral histories of the day Loma Prieta leveled downtown Santa Cruz.

Ep. 002: Loma Prieta and the Seismic World Series — The American Attic, 20 April 2022, about 59 min. First-hand stories from the ballpark and an off-duty firefighter.

S1 E9: The Big One with Harold Tobin and Audrey Dunham — FieldSound (UW College of the Environment), 6 July 2023, about 16 min. Washington’s state seismologist on Cascadia, ShakeAlert and “prepare, not despair.”

📄 Read

Atwater, B.F. (1987). Evidence for great Holocene earthquakes along the outer coast of Washington State. Science 236, 942–944.

Satake, K., Shimazaki, K., Tsuji, Y. & Ueda, K. (1996). Time and size of a giant earthquake in Cascadia inferred from Japanese tsunami records of January 1700. Nature 379, 246–249.

Kanamori, H. (1977). The energy release in great earthquakes. Journal of Geophysical Research 82(20), 2981–2987.

The Orphan Tsunami of 1700: Japanese clues to a parent earthquake in North America — Atwater and others, USGS Professional Paper 1707 (2nd ed., 2015); a beautiful detective story, free to download.

Lessons learned from the Loma Prieta, California, earthquake of October 17, 1989 — USGS Circular 1045, 1989; the first look back, written within weeks.

How scientists know when the last big Cascadia earthquake happened — OPB, Tullan Spitz, 26 January 2015; ghost forests, tree rings and the 9 p.m. timestamp.

📊 Data & agencies

USGS ComCat — the catalog behind every dot. · USGS real-time GeoJSON feeds — the same data, updated every minute.

Pacific Northwest Seismic Network — watching Cascadia’s small quakes. · ShakeAlert — the West Coast’s earthquake early warning.

AFTERSHOCK live dashboard — the page itself. · AFTERSHOCK on GitHub — this project’s code.