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

coros-cli

v0.1.4

Published

CLI and MCP server for Coros Training Hub — access your activity data and health metrics

Readme

coros-cli

CLI and MCP server for Coros Training Hub — extract your activity data and health metrics from the command line. Designed for both humans and AI agents (Claude Desktop, Claude Code, scripts).

All commands produce rich terminal output for humans and structured JSON (--json) for agents and automation.

Install

npm install -g coros-cli

Or run directly with npx:

npx -y coros-cli activities

Setup

Authenticate with your Coros account:

coros login

This stores your credentials in ~/.config/coros-cli/config.json. Sessions are refreshed automatically — you only need to login once. EU accounts are auto-detected.

Usage

List activities

$ coros activities
                             Activities (191 total)
┌────────────┬────────────────┬───────────┬──────────┬──────────┬────────┬───────────┐
│ Date       │ Name           │ Type      │ Distance │ Duration │ Avg HR │ Elevation │
├────────────┼────────────────┼───────────┼──────────┼──────────┼────────┼───────────┤
│ 2026-03-04 │ Morning Run    │ Run       │ 6.58 km  │    41:29 │    174 │     +83m  │
│ 2026-03-03 │ Easy Run       │ Run       │ 3.80 km  │    29:12 │    151 │     +47m  │
└────────────┴────────────────┴───────────┴──────────┴──────────┴────────┴───────────┘

Options: --page, --size, --json

Activity detail

$ coros activity 475835095599579138
╭──────────────────────────── Morning Run ─────────────────────────────╮
│ Sport:          Run                                                   │
│ Distance:       6.58 km                                               │
│ Avg Pace:       6:17/km                                               │
│ Best Lap Pace:  4:44/km                                               │
│ Duration:       41:29                                                 │
│ Avg HR:         174 bpm                                               │
│ Aerobic Effect: 3.0                                                   │
│ Training Goal:  VO2 Max                                               │
╰───────────────────────────────────────────────────────────────────────╯

Includes laps, HR zones, and pace zones. The label ID comes from coros activities.

Health dashboard

$ coros health
 Running Level: 75.0
┌───────────┬───────┐
│ Category  │ Score │
├───────────┼───────┤
│ Endurance │  77.3 │
│ Threshold │  70.8 │
│ Speed     │  71.1 │
│ Sprint    │  70.7 │
└───────────┴───────┘
╭────────────────── Training Level ──────────────────╮
│ Status:        Optimal                              │
│ Load (ATI):    69                                   │
│ Fitness (CTI): 63                                   │
│ Trend:         109%                                 │
╰─────────────────────────────────────────────────────╯
            Race Predictor
┌───────────────┬─────────┬──────────┐
│ Distance      │    Time │ Avg Pace │
├───────────────┼─────────┼──────────┤
│ 5K            │   23:59 │  4:48/km │
│ 10K           │   50:00 │  5:00/km │
│ Semi Marathon │ 1:52:54 │  5:21/km │
│ Marathon      │ 4:00:17 │  5:42/km │
└───────────────┴─────────┴──────────┘

Also shows: resting HR, threshold HR/pace, recovery %, night HRV, weekly distance progress.

JSON output

All commands support --json for raw API data — useful for scripting or AI agents:

coros activities --json | jq '.data.dataList[0].name'
coros health --json | jq '.dashboard.data.summaryInfo.staminaLevel'

MCP Server (Claude Desktop)

coros-cli includes a built-in MCP server, so Claude Desktop (or any MCP client) can access your Coros data directly.

Setup

  1. Run coros login in your terminal first
  2. Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
  "mcpServers": {
    "coros": {
      "command": "npx",
      "args": ["-y", "coros-cli", "mcp"]
    }
  }
}
  1. Restart Claude Desktop — the Coros tools will appear automatically

Available tools

| Tool | Description | |------|-------------| | list_activities | List recent activities (paginated) | | get_activity | Activity detail — full by default (laps, HR timeline, zones), or detailed=false for lightweight summary (multi-run analysis) | | get_health | Health dashboard (running level, training status, race predictor, HRV) |

How authentication works

When you run coros login:

  1. Your password is hashed (MD5) locally before leaving your machine
  2. The hash is sent to Coros's login endpoint to obtain a session token
  3. The token and password hash are saved in ~/.config/coros-cli/config.json

Your plain-text password is never stored. When the session token expires, coros-cli automatically re-authenticates using the stored hash — no manual re-login needed. You can inspect or delete the config file at any time.

Disclaimer

This is an unofficial tool, not affiliated with or endorsed by COROS. It accesses your own data using your own credentials. APIs may change at any time, which could break this tool. Use at your own risk.