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

@korext/commit-carbon

v1.0.3

Published

Open standard for measuring AI assisted commit carbon emissions. CSRD, SEC, and CDP compatible disclosure reporting.

Readme

Commit Carbon

The open standard for measuring AI assisted commit carbon emissions. CSRD, SEC, and CDP compatible disclosure reporting.

License: Code License: Methodology License: Data npm

Regulations now require companies to disclose emissions from digital operations. The EU Corporate Sustainability Reporting Directive (CSRD), California SB 253, and SEC Climate Rules all apply. AI coding tools are part of those operations. But nobody measures AI coding emissions at the code level.

Commit Carbon does.

Quick Start

# Get your AI attestation first
npx @korext/ai-attestation init

# Calculate carbon emissions
npx @korext/commit-carbon scan

Example Output

Commit Carbon v1.0.0

Repository: acme/payments-service
Period: All time
Grid region: US (avg 369 gCO2e/kWh)

AI Usage:
  Total commits: 1,247
  AI assisted: 438 (35.1%)
  Tools: GitHub Copilot, Cursor, Claude Code

Emissions Estimate:

  Low:     7.30 kg CO2e
  Central: 14.59 kg CO2e
  High:    29.18 kg CO2e

  Per AI commit average:
    33.3 g CO2e (central)

  For context:
    Equivalent to driving ~36 miles in an average car
    Equivalent to ~1,775 smartphone charges

What Makes This Different

  • First code level methodology: others measure aggregate AI emissions. We measure per commit.
  • Public methodology: CC0 licensed. No vendor lock in. Any tool can implement.
  • Regulatory alignment: CSRD, SEC, CDP, GHG Protocol Scope 3 compatible outputs.
  • Auditable: every number is sourced. Every calculation is reproducible.
  • Conservative bias: higher emission estimates by default. No greenwashing.
  • Ranged estimates: low/central/high. Reflects genuine uncertainty.

Disclosure Formats

# CSRD disclosure
npx @korext/commit-carbon report --format csrd

# SEC Climate Rules
npx @korext/commit-carbon report --format sec

# CDP response
npx @korext/commit-carbon report --format cdp

# GHG Protocol Scope 3
npx @korext/commit-carbon report --format ghg

Methodology

Published at oss.korext.com/commit-carbon/methodology.

See METHODOLOGY.md for the complete document.

Regulatory Frameworks

| Framework | Geography | Compatibility | |-----------|-----------|---------------| | CSRD | EU | Direct disclosure format | | SEC Climate Rules | US | Direct disclosure format | | California SB 253 | US (CA) | Scope 3 compatible | | CDP | Global | Direct format | | GHG Protocol | Global | Scope 3 Category 1 | | SBTi | Global | Target setting compatible | | ISO 14064 | Global | Methodology aligned |

For Sustainability Teams

Free. Open. Auditable. See AUDIT_GUIDE.md for verification procedures.

Grid Data

| Source | Coverage | Granularity | API Key | |--------|----------|-------------|---------| | IEA | Global (country) | Annual | Not needed | | EPA eGRID | US (subnational) | Annual | Not needed | | Electricity Maps | Global (zone) | Real-time | Optional | | WattTime | Global | Real-time | Required |

CI/CD Integration

- uses: korext/commit-carbon/action@v1
  with:
    region: US
    period: last_month
    max-emissions-kg: 50

Other Commands

# One-off calculation
npx @korext/commit-carbon calculate --tool copilot --commits 100 --region US

# View grid intensity
npx @korext/commit-carbon grid US
npx @korext/commit-carbon grid --list

# View emissions factors
npx @korext/commit-carbon factors

Relationship to Other Projects

Commit Carbon extends ai-attestation with carbon data. Can be used alongside ai-license, supply-chain-attestation, ai-incident-registry, ai-regression-database, and ai-code-radar.

Licensing

  • Code: Apache 2.0
  • Methodology and schema: CC0 1.0 (public domain)
  • Data: CC BY 4.0 (attribution required)

Contributing

See CONTRIBUTING.md. Particularly welcome: methodology improvements, grid data adapters, regional factor refinements, citation updates.

Built by

Korext builds AI code governance tools.