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

composable measures observability transformations reporting animations archive profile serialize annotation

Last synced: about 12 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: 8 days ago

Total Commits: 507
Total Committers: 7
Avg Commits per committer: 72.429
Development Distribution Score (DDS): 0.584

Commits in past year: 152
Committers in past year: 3
Avg Commits per committer in past year: 50.667
Development Distribution Score (DDS) in past year: 0.52

Name Email Commits
dependabot[bot] 4****] 211
Danilo Velasquez d****z@g****m 153
renovate[bot] 2****] 73
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: 1 day ago

Total issues: 1
Total pull requests: 348
Average time to close issues: N/A
Average time to close pull requests: 20 days
Total issue authors: 1
Total pull request authors: 3
Average comments per issue: 0.0
Average comments per pull request: 0.59
Merged pull request: 181
Bot issues: 1
Bot pull requests: 347

Past year issues: 1
Past year pull requests: 124
Past year average time to close issues: N/A
Past year average time to close pull requests: 7 days
Past year issue authors: 1
Past year pull request authors: 3
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.27
Past year merged pull request: 94
Past year bot issues: 1
Past year bot pull requests: 123

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

Top Issue Authors

  • renovate[bot] (1)

Top Pull Request Authors

  • dependabot[bot] (257)
  • renovate[bot] (90)
  • dvelasquez (1)

Top Issue Labels

Top Pull Request Labels

  • dependencies (257)

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.110 (published 3 days ago)
  • Last Synced: 2025-04-29T15:04:29.947Z (1 day ago)
  • Versions: 114
  • Dependent Packages: 2
  • Dependent Repositories: 2
  • Downloads: 1,198 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: 11.871697209086207