Carbon Tools

A set of CO2 footprint tools to measure the impact of the code we ship.
https://github.com/dvelasquez/carbon-tools

Category: Consumption
Sub Category: Computation and Communication

Keywords from Contributors

measures composable transformations reporting archives observability animations profile projection shared

Last synced: about 23 hours ago
JSON representation

Repository metadata

A set of CO2 footprint tools to measure the impact of the code we ship

README.md

Carbon Tools

lerna

This is a mono-repository/multi-package built with Lerna & TypeScript.

Contents

  1. bytes-to-co2: A library that estimates the CO2 released to the atmosphere based on the transferred byte size.
  2. co2-extension: A Chrome (for now) that shows the amount of CO2 released by visiting the current page.
  3. lighthouse-plugin-co2: A Lighthouse Plugin that calculates the CO2 of all the data transferred by a page.
  4. co2-data: A small library with information of carbon intensities by country.

Using as a dependency

For now, we are only exposing as libraries co2-data and
bytes-to-co2, which you can install in your project using:

  • yarn add bytes-to-co2 or npm i bytes-to-co2
  • yarn add co2-data or npm i co2-data

Development - Getting started

Project supports NodeJS >= v20.x

  1. Clone the project git clone https://github.com/dvelasquez/carbon-tools.git
  2. Run pnpm i to install the dev dependencies
  3. Use pnpm lerna:build to build all the libraries
  4. Use pnpm lint to lint files and catch issues with the code styling, or possible code errors
  5. Use pnpm test to run Node TAP tests

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 678
Total Committers: 7
Avg Commits per committer: 96.857
Development Distribution Score (DDS): 0.65

Commits in past year: 301
Committers in past year: 2
Avg Commits per committer in past year: 150.5
Development Distribution Score (DDS) in past year: 0.468

Name Email Commits
Danilo Velasquez d****z@g****m 237
dependabot[bot] 4****] 211
renovate[bot] 2****] 160
Danilo Velasquez d****z@a****m 25
dependabot-preview[bot] 2****] 24
Danilo Velasquez n****l 20
Danilo Velasquez d****z@p****n 1

Committer domains:


Issue and Pull Request metadata

Last synced: 6 days ago

Total issues: 2
Total pull requests: 599
Average time to close issues: about 1 month
Average time to close pull requests: 16 days
Total issue authors: 2
Total pull request authors: 3
Average comments per issue: 0.0
Average comments per pull request: 0.45
Merged pull request: 356
Bot issues: 2
Bot pull requests: 598

Past year issues: 1
Past year pull requests: 281
Past year average time to close issues: N/A
Past year average time to close pull requests: 3 days
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.01
Past year merged pull request: 237
Past year bot issues: 1
Past year bot pull requests: 281

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/dvelasquez/carbon-tools

Top Issue Authors

  • dependabot[bot] (1)
  • renovate[bot] (1)

Top Pull Request Authors

  • dependabot[bot] (317)
  • renovate[bot] (281)
  • dvelasquez (1)

Top Issue Labels

  • dependencies (1)

Top Pull Request Labels

  • dependencies (317)

Package metadata

npmjs.org: bytes-to-co2

Javascript module that calculates the co2 generated in transfer x amount of bytes over the network and the country.

  • Homepage:
  • Licenses: MIT
  • Latest release: 0.3.190 (published 8 days ago)
  • Last Synced: 2025-10-29T16:34:43.903Z (5 days ago)
  • Versions: 194
  • Dependent Packages: 2
  • Dependent Repositories: 2
  • Downloads: 3,130 Last month
  • Rankings:
    • Dependent repos count: 7.611%
    • Stargazers count: 8.59%
    • Dependent packages count: 8.834%
    • Average: 11.093%
    • Forks count: 11.575%
    • Downloads: 18.857%
  • Maintainers (1)

Dependencies

package.json npm
  • @rollup/plugin-commonjs ^22.0.0 development
  • @types/eslint ^8.2.1 development
  • @types/prettier ^2.1.1 development
  • @types/tap ^15.0.1 development
  • @typescript-eslint/eslint-plugin ^4.5.0 development
  • @typescript-eslint/parser ^4.5.0 development
  • cpy-cli ^4.1.0 development
  • cross-env ^7.0.2 development
  • eslint ^7.12.0 development
  • eslint-config-prettier ^8.3.0 development
  • eslint-plugin-prettier ^4.0.0 development
  • lerna ^4.0.0 development
  • prettier ^2.1.2 development
  • rimraf ^3.0.2 development
  • rollup ^2.32.1 development
  • rollup-plugin-typescript2 ^0.32.0 development
  • tap ^16.0.1 development
  • ts-node ^9.0.0 development
  • typescript ^4.0.3 development
packages/bytes-to-co2/package.json npm
  • co2-data ^0.0.27
packages/lighthouse-plugin-co2/package.json npm
  • lighthouse ^9.2.0 development
  • bytes-to-co2 ^0.3.29
yarn.lock npm
  • 969 dependencies
.github/workflows/lerna_push_pr.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v2-beta composite
.github/workflows/release-canary.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v2-beta composite
.github/workflows/release.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v2-beta composite

Score: 12.940733581288775