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

@stephendolan/chartmogul-cli

v1.5.0

Published

A command-line interface for ChartMogul analytics

Readme

ChartMogul CLI

npm version License: MIT

A command-line interface for ChartMogul analytics, designed for developers and LLMs.

Features

  • LLM-first design - JSON output for easy parsing and automation
  • Analytics focused - MRR, ARR, churn rates, LTV, customer counts
  • Secure auth - Credentials stored in OS keychain
  • Read-only - Query your data safely without risk of modification

Installation

npm install -g @stephendolan/chartmogul-cli

Linux: Install libsecret for keychain support: sudo apt-get install libsecret-1-dev

Authentication

chartmogul auth login --api-key YOUR_API_KEY
chartmogul auth status
chartmogul auth logout

Or use the environment variable: export CHARTMOGUL_API_KEY=your_api_key

Get your API key from ChartMogul under Profile -> API Keys.

Commands

Metrics

All metric commands support --start-date, --end-date, and --interval (day, week, month, quarter).

chartmogul metrics all                    # All key metrics (last 30 days)
chartmogul metrics mrr                    # Monthly Recurring Revenue
chartmogul metrics arr                    # Annual Recurring Revenue
chartmogul metrics arpa                   # Average Revenue Per Account
chartmogul metrics asp                    # Average Sale Price
chartmogul metrics customer-count         # Customer count over time
chartmogul metrics customer-churn         # Customer churn rate
chartmogul metrics mrr-churn              # MRR churn rate
chartmogul metrics ltv                    # Customer Lifetime Value

# With date range
chartmogul metrics mrr --start-date 2024-01-01 --end-date 2024-12-31 --interval month

Customers

chartmogul customers list                      # List all customers
chartmogul customers list --status Active      # Filter by status
chartmogul customers list --data-source <uuid> # Filter by data source
chartmogul customers view <uuid>               # View customer details
chartmogul customers search --email [email protected]
chartmogul customers activities <uuid>         # Customer activities
chartmogul customers subscriptions <uuid>      # Customer subscriptions

Other Resources

# Account
chartmogul account view

# Plans
chartmogul plans list
chartmogul plans view <uuid>

# Invoices
chartmogul invoices list
chartmogul invoices list --customer <uuid>
chartmogul invoices view <uuid>

# Data Sources
chartmogul data-sources list
chartmogul data-sources view <uuid>
chartmogul data-sources set-default <uuid>
chartmogul data-sources get-default

# Activities
chartmogul activities list
chartmogul activities list --type new_biz --start-date 2024-01-01
# Activity types: new_biz, expansion, contraction, churn, reactivation

MCP Server

Run as an MCP server for AI agent integration:

chartmogul mcp

Output

All commands output JSON. Use --compact or -c for single-line output:

chartmogul metrics mrr                    # Pretty-printed JSON
chartmogul -c metrics mrr                 # Compact JSON (single line)

Monetary values are in dollars (not ChartMogul's internal cents). An MRR of 100 means $100.

Errors are also returned as JSON:

{"error": {"name": "unauthorized", "detail": "Invalid API key", "statusCode": 401}}

Environment Variables

| Variable | Description | |----------|-------------| | CHARTMOGUL_API_KEY | API key (alternative to keychain) | | CHARTMOGUL_DATA_SOURCE | Default data source UUID |

License

MIT