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

carbonstop-ccdb

v1.0.1

Published

🌍 CCDB Carbon Emission Factor Search CLI β€” Query carbon emission factors from the Carbonstop CCDB database

Readme

🌍 ccdb β€” Carbon Emission Factor CLI

A standalone command-line tool to query carbon emission factors from the Carbonstop CCDB database.

Installation

Via npm (requires Node.js β‰₯ 18)

# Global install
npm install -g carbonstop-ccdb

# Or use without installing
npx carbonstop-ccdb search "η”΅εŠ›"

Download Binary (no Node.js required)

Download the standalone binary from GitHub Releases:

# macOS (Apple Silicon)
curl -L -o ccdb https://github.com/carbonstop/skills/releases/latest/download/ccdb-darwin-arm64
chmod +x ccdb
sudo mv ccdb /usr/local/bin/

# macOS (Intel)
curl -L -o ccdb https://github.com/carbonstop/skills/releases/latest/download/ccdb-darwin-x64
chmod +x ccdb
sudo mv ccdb /usr/local/bin/

# Linux (x64)
curl -L -o ccdb https://github.com/carbonstop/skills/releases/latest/download/ccdb-linux-x64
chmod +x ccdb
sudo mv ccdb /usr/local/bin/

Usage

# Search carbon emission factors
ccdb search "η”΅εŠ›"
ccdb search "cement" --lang en

# JSON output (for scripting)
ccdb search "electricity" --lang en --json

# Compare multiple factors
ccdb compare electricity "natural gas" diesel --lang en

# Pipe to jq
ccdb search "steel" --json | jq '.rows[0].factor'

Commands

| Command | Description | |---------|-------------| | search <keyword> | Search emission factors by keyword | | compare <kw1> <kw2> ... | Compare up to 5 keywords side-by-side |

Options

| Option | Description | |--------|-------------| | --lang <code> | Language: zh (default) or en | | --json | Output raw JSON for scripting | | -h, --help | Show help | | -v, --version | Show version |

Shortcuts

| Short | Full | |-------|------| | s | search | | c, cmp | compare |

Legacy Mode

For backward compatibility, you can omit the search subcommand:

ccdb "η”΅εŠ›"          # Same as: ccdb search "η”΅εŠ›"
ccdb "cement" --lang en --json

Build from Source

cd cli

# Bundle only (ESM, requires Node.js to run)
npm run build

# Bundle + standalone binary (no Node.js required)
npm run build:binary

Build outputs:

| File | Description | Size | |------|-------------|------| | dist/ccdb.js | ESM bundle (npm) | ~12 KB | | dist/ccdb | Standalone binary | ~103 MB |

How It Works

The CLI queries the public CCDB HTTP API using built-in fetch and crypto modules. No API key required.

User β†’ ccdb CLI β†’ CCDB Public API β†’ Carbonstop CCDB Database

License

MIT