All Things Spatial
ATS Labs · Esri SDK Showcase · Calcite · experimental

ATS River Pulse

Live USGS streamflow — every reporting gauge in a state, with a hydrograph one click away.

What it is

ATS River Pulse brings USGS streamflow into the browser, live, through the modern USGS Water Data API (an OGC API · Features service at api.waterdata.usgs.gov). Pick any of the 50 states and every reporting stream gauge appears on a topographic basemap with its latest continuous discharge (cfs) and gage height (ft), parsed from a single latest-continuous request — a few hundred to roughly 900 gauges per state (Colorado, the smoke-test state, returns 628 gauges, of which 331 have reported within the last seven days). Gauges are classified by flow within the state using quantile buckets over the log-flow range: dry gray through low cyan to high blue, with the top decile in bold ATS blue.

Selecting any gauge opens a glass detail card with its live readings, a seven-day hydrograph drawn on a canvas (minimum/maximum labels and a gold "now" marker), and a deep link to the official USGS station page. A stats row tracks the gauge count, the state's highest-flow site and the median flow in cfs — and everything silently refreshes every five minutes without disturbing the selection.

The application is zero-credential end to end: the basemap is anonymous, the USGS Water Data API is public and CORS-enabled, and there is no server anywhere — the browser talks to the federal API directly. An api.data.gov key would raise the hourly request quota, but a key shipped in a browser bundle is shared by every visitor, so the app sends none and handles a rate-limit response gracefully instead.

The experience

Choose a state and within seconds its river network lights up — hundreds of classed dots over a topographic base, the biggest rivers unmistakable in bold blue. The interface is a working hydrologist's view with a consumer finish:

The data — where it comes from

One live federal API and one anonymous basemap — no key, no server, no cost.

SourceWhat it providesRefreshCostAttribution
USGS Water Data API — OGC API · Features (api.waterdata.usgs.gov/ogcapi/v0 — live)Latest discharge (parameter 00060) and gage height (00065) for every reporting gauge in a state, from the latest-continuous collection; the continuous collection supplies the 7-day hydrograph and monitoring-locations supplies site namesLive at load and every 5 minutes; hydrograph on demand; upstream readings at 15-minute cadenceFreeU.S. Geological Survey — provisional data subject to revision
Esri topo-vector basemap (anonymous)Light topographic basemap under the gauge layerVendor-managedFree (no API key)Esri attribution renders in-map automatically

How it was assembled

The application is a fully static single-page app — no backend, no database, no server-side rendering. The stack: TypeScript, ArcGIS Maps SDK for JavaScript 5.0.x, Calcite Design System 5.0.x, and Vite 8.

Module map — the codebase is small and deliberate; each file owns one concern:

Key engineering decisions