garminconnect-js
garminconnect-js is an unofficial TypeScript client for accessing Garmin Connect's undocumented APIs in Node.js and Next.js server-side runtimes. It handles Garmin's SSO/OAuth login flow, automatically refreshes tokens, and provides 222 typed methods covering data such as health, activities, training metrics, workouts, gear, courses, devices, badges, body composition, women's health, golf, nutrition, and training plans. The library also includes a fluent workout builder that avoids common pitfalls of Garmin workout JSON, as well as a type-checked exercise catalog that prevents typos from causing data loss. The library has zero runtime dependencies, is server-side only, requires Node.js 18+, and is not suitable for browser or Edge runtimes. Because Garmin's APIs are undocumented, the library may break at any time, and there are known limitations such as EU upload consent.