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

ATS River Pulse

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

What it is

ATS River Pulse brings the USGS National Water Information System into the browser, live. Pick any of the 50 states and every active stream gauge appears on a topographic basemap with its latest instantaneous discharge (cfs) and gage height (ft), parsed from a single NWIS instantaneous-values request — roughly 350 to 1,500 gauges per state (Colorado, the smoke-test state, loads 368). 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 state total 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 services API is public and CORS-enabled, and there is no server anywhere — the browser talks to the federal API directly.

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 NWIS Instantaneous Values API (waterservices.usgs.gov/nwis/iv — live)Latest discharge (parameter 00060) and gage height (00065) for every active gauge in a state; 7-day series for the hydrographLive 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