A real-time earthquake monitoring dashboard that visualizes seismic activity worldwide using live USGS data.
Stack: Go backend (REST API + background poller) · Svelte frontend (interactive map) · SQLite · No API keys required
USGS API ──► Go Poller ──► SQLite ──► Go REST API ──► Svelte SPA
The Go backend runs as a single binary. It polls USGS feeds in the background, caches results in a local SQLite database, and serves a JSON REST API. The Svelte frontend is a static SPA — in production, Go serves it directly.
cd backend
go run ./cmd/server
The server starts on http://localhost:8080.
GET /api/health
GET /api/earthquakes?timeWindow=day&minMagnitude=2.5
GET /api/stats?timeWindow=week
POST /api/refresh
| Env Var | Default | Description |
|---|---|---|
QUAKEWATCH_ADDR |
:8080 |
HTTP listen address |
QUAKEWATCH_DB |
quakewatch.db |
SQLite database path |
USGS Earthquake Hazards Program — free, public, no API key required.
MIT