I grew up in Groveland, California β a Gold Rush town wedged into the western Sierra Nevada foothills of Tuolumne County, where the hills are crumpled and old and full of stories the rocks don't easily give up. 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 in some deep, geological way, like the earth was remembering something.
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 thing you spend your entire life trusting completely β decided for a few seconds that it was done being trusted.
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. A dark, cinematic map on ESRI Dark Gray Canvas tiles loads it. Earthquake dots sized and colored by magnitude β tiny green pinpoints for the microseismicity, climbing through yellow, orange, red, and into deep red and purple as the energy scales up. A magnitude 7 sits on the map like a bruise.
The Filters
Two controls that wire through everything simultaneously β the map, the state panel, the leaderboard, the recent events list. Time window buttons: 1D, 3D, 7D, 14D, 30D. Magnitude slider: drag from M1.5 up to M6.0. Watch the noise disappear. Watch the significant events remain. The interface responds instantly because all the data is already in the browser β one JSON file, loaded once.
The Architecture
Same pattern as everything else in this collection. One Python script. One JSON file. Zero databases. Zero servers.
The whole thing is auditable in an afternoon. The automatic update commits read: Seismic update: YYYY-MM-DD HH:MM UTC. When those appear in the commit history, the pipeline is healthy.
The Quiet States
One of the things I like most about the state deep-dives is how they handle quiet states. Click a state with no recent seismic activity and you don't get an error β you get a message: "Quiet is not nothing β it may mean the fault is locked." A locked fault accumulates strain. The quieter the fault, sometimes, the more concerning the silence.
"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 watches the microseismicity along that margin constantly. The data updates every six hours. The fault moves on its own schedule.
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
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.”
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.
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.
