Peloton Rides
Read your Peloton workout history, per-ride metrics, and the on-demand class library via Peloton's unofficial api.onepeloton.com API. Auth0 Bearer-token auth from a vault-stored refresh token (self-renewing, access-token cached; short-lived accessToken fallback). Decomposed data model: each workout is its own addressable ride resource and each library class its own class resource, keyed by id — query with swamp data query/CEL, no list blob. Methods: getRecentRides (factory; one ride resource per workout), getRideDetail (enriches a ride in place with total/avg/max output, cadence, resistance, speed, heart rate, distance, calories, downsampled series), getStats (derived aggregate rollup), browseClasses (factory; browse the class library filtered by discipline/instructor/type/duration/difficulty, one class resource per match). No official Peloton API exists; this mirrors the web app's endpoints and may break if Peloton changes them.
Resources
Modified 1 models
Auth0 Bearer-token auth (self-renewing refresh token, cached access token; accessToken fallback) after Peloton retired password login. Decomposed data model: one addressable ride resource per workout, progressively enriched by getRideDetail. Verified live.
Modified 1 models
Initial release: read-only Peloton workout access (getRecentRides, getRideDetail, getStats) via the unofficial api.onepeloton.com API.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned