npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cycling-coach

v2026.5.9

Published

AI cycling coaching agent — BYOK + intervals.icu + Telegram

Readme

Cycling Coach

AI cycling coaching agent. Bring your own LLM API key or sign in with a ChatGPT Plus subscription, connect intervals.icu for real athlete data, chat via Telegram or CLI.

Install

Requires Node.js 20+.

npm install -g cycling-coach
cycling-coach setup
cycling-coach

The setup wizard asks for your LLM provider — an API key for Anthropic / OpenAI / Google, or OAuth sign-in with your ChatGPT subscription (no API key needed). Then optionally connects intervals.icu and Telegram. After setup, cycling-coach starts in CLI mode — or Telegram mode if you provided a bot token.

Cycling Coach (CLI mode). Type your message:
> Create a 2-hour Z2 ride with sprints
> Create 3x15 min sweet spot intervals
> Create VO2max intervals
> Review my last ride
> Build me a 12-week plan for a gran fondo
> What should I do today?

What it does

  • Analyzes fitness, fatigue, and form from your real rides
  • Builds periodized plans toward your goal event
  • Pushes structured workouts to your intervals.icu calendar (auto-syncs to Garmin, Wahoo, Hammerhead, COROS, Suunto, Zwift)

LLM provider options

  • Anthropic (Claude) — API key from Anthropic Console. Recommended default.
  • OpenAI (GPT) — API key from OpenAI Platform.
  • Google (Gemini) — API key from Google AI Studio.
  • ChatGPT subscription (experimental) — browser OAuth sign-in with your ChatGPT Plus / Pro / Business / Edu / Enterprise account. No API key; uses your subscription quota. Models: gpt-5.4 (recommended) and gpt-5.4-mini (faster, smaller context). Cost is covered by the subscription regardless of which model you pick.

Anthropic's Claude Pro/Max subscription does not support OAuth for third-party tools — the only supported Anthropic path is the console API key.

Optional integrations

Telegram commands

| Command | What it does | |---------|-------------| | /start | Welcome message + available commands | | /plan | Builds a periodized plan, asks to push to calendar | | /workout | Suggests today's workout from current fitness, fatigue, and form | | /status | Shows fitness, fatigue, form, and coaching notes | | /sync | Pushes next 1-2 weeks of planned workouts to intervals.icu |

Free-form chat works too — ask anything about training, report an injury, request plan adjustments.

Where state lives

~/.cycling-coach/ (override with CYCLING_COACH_HOME):

  • config.yaml — provider/model selection (env vars take precedence)
  • auth-profiles.json — OAuth tokens (mode 0600, rotated automatically)
  • memory/MEMORY.md — long-term: goals, injury history, preferences
  • memory/YYYY-MM-DD.md — daily conversation notes
  • plans/current-plan.json — active training plan
  • sessions/<chatId>.jsonl — per-chat history

The agent reads memory at the start of each conversation and writes to it when significant decisions are made (new goal, plan change, injury).

Troubleshooting

cycling-coach: command not found — if you installed without the -g flag, the binary isn't on your $PATH. Either re-install globally (npm install -g cycling-coach), or run it via npx:

npx cycling-coach setup
npx cycling-coach

npx ships with Node.js, so no extra install step is needed.

More