Public Work / Live

Earthquake Watch

A California earthquake publication that filters, scores, and explains notable events with geographic, fault, and population context.

Direct answer

What did Devzilla build?

Devzilla built a publication pipeline over the United States Geological Survey event service, including a California polygon filter that rejects out-of-state events returned by the source bounding box.

StatusLive
TypeDevzilla-owned public work
StackPython 3.12 / SQLite / Jinja2 / USGS FDSN API / Cloudflare Workers

Constraint

The challenge

The United States Geological Survey event API accepts rectangular geographic bounds. Any useful rectangle around California also includes parts of Nevada, Oregon, and Baja California, so a bounding-box query alone makes the publication scope false.

Architecture

What was built

The source adapter first queries the official event service, then checks every result against a California polygon before scoring it. The editorial pipeline stores records in SQLite, builds static pages with Jinja2, and keeps one earthquake per post with magnitude, depth, nearby population, and fault context.

Engineering decisions

The choices that shaped the system

  • Reject every event outside the California polygon before it can become an editorial candidate.
  • Use magnitude 3.0 as the primary scoring threshold, with additional weight for shallow events and events at magnitude 5.0 or above.
  • Spike retracted events instead of leaving stale reports live.
  • Keep the public site static even though collection, scoring, and drafting use a Python pipeline.

Current result

What exists now

The deployed publication has a truthful California-only scope and a reproducible path from official source event to contextual article. The data source requires no private key and remains independently verifiable.

Bring Devzilla the difficult source.

We will start with what must be true, what can fail, and who needs to own the result.

Start a project