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

@carbonstopper/cli

v3.0.16

Published

Carbonstop Gateway API CLI — 碳阻迹网关命令行工具

Readme

carbonstop-cli

Carbonstop Gateway API CLI — 碳阻迹网关命令行工具。

Query products, accounts, emissions, and run AI-powered carbon footprint modeling from the terminal.

Install

npx (zero-install)

npx @carbonstopper/cli +ping
npx @carbonstopper/cli --api-key csk_xxx.yyy +ping

npm (recommended)

npm install -g @carbonstopper/cli

The carbonstop command is available globally. No Go toolchain required.

Download binary

Download the latest binary from Releases:

| Platform | File | |----------|------| | macOS Apple Silicon | carbonstop-cli_*_darwin_arm64.tar.gz | | macOS Intel | carbonstop-cli_*_darwin_x86_64.tar.gz | | Linux x86_64 | carbonstop-cli_*_linux_x86_64.tar.gz | | Linux arm64 | carbonstop-cli_*_linux_arm64.tar.gz | | Windows x86_64 | carbonstop-cli_*_windows_x86_64.zip | | Windows arm64 | carbonstop-cli_*_windows_arm64.zip |

tar xzf carbonstop-cli_*.tar.gz -C /usr/local/bin/
carbonstop ping

Build from source

Requires Go 1.23+.

git clone https://github.com/carbonstop-hub/carbonstop-cli.git
cd carbonstop-cli
make build

Quick Start

  1. 登录 碳云平台 注册账号,创建 API Key(PAT)
  2. 使用 CLI 登录(官方二进制已内置网关地址):
carbonstop auth login --api-key csk_xxx.yyy
  1. 开始使用:
carbonstop +ping      # 探活
carbonstop +whoami    # 查看身份
carbonstop +model --file model.json  # 一键建模

Quick Start for AI Agents

npm install -g @carbonstopper/cli
npx skills add carbonstop-hub/carbonstop-cli -y -g

Then configure the API key via env var, and the agent can invoke carbonstop commands directly.

Commands

Shortcuts (human-readable output)

| Command | Description | |---------|-------------| | carbonstop +ping | Health check | | carbonstop +whoami | Identity info | | carbonstop +model | One-click modeling with stage summary |

API Commands (JSON output)

| Command | Description | |---------|-------------| | carbonstop ping | Health check | | carbonstop whoami | Identity query | | carbonstop echo | JSON echo test | | carbonstop products | List products | | carbonstop product-info | Product detail | | carbonstop accounts | List accounts | | carbonstop account-view | Account detail | | carbonstop ai-model | AI one-click modeling |

Generic Call

carbonstop call GET /api/some/endpoint -q id=123
carbonstop call POST /api/some/endpoint -d '{"key":"value"}'
carbonstop call POST /api/some/endpoint -f payload.json

Auth

carbonstop auth login --api-key csk_xxx.yyy
carbonstop auth status

Configuration

Priority (high to low): CLI flags > env vars > config file > build-time defaults

| Flag | Env Var | Description | |------|---------|-------------| | --api-key | CARBONSTOP_API_KEY | API Key (PAT) | | --base-url | CARBONSTOP_BASE_URL | Gateway base URL (built-in, override only if self-built) | | --timeout | CARBONSTOP_TIMEOUT | Request timeout (default: 60s) | | --profile / -p | CARBONSTOP_PROFILE | Config profile name | | --raw | — | Output raw JSON |

Config file: ~/.config/carbonstop-cli/config.json

Architecture

Three-layer design following the Lark CLI pattern:

+model  +ping  +whoami     ← Shortcuts (human-readable)
   |       |       |
ai-model  ping  whoami     ← API Commands (JSON output)
   |       |       |
        call <method> <path>  ← Generic Call (arbitrary API)

Security

  • 网关地址不在源码中,通过 CI/CD 构建时注入到二进制
  • auth status 不显示实际网关地址,配置文件不保存网关地址
  • 自编译需通过 CARBONSTOP_BASE_URL--base-url 指定网关

Skills

AI agents can use the skill definitions in skills/skills.json to understand available commands, parameters, and input schemas. See AGENTS.md for integration guide.

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success | | 2 | Invalid arguments | | 3 | HTTP error (non-2xx) | | 4 | Transport error |

License

MIT