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
- Host: GitHub
- URL: https://github.com/dvelasquez/carbon-tools
- Owner: dvelasquez
- License: mit
- Created: 2020-10-11T08:39:34.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-10-27T01:37:14.000Z (8 days ago)
- Last Synced: 2025-10-27T15:41:29.496Z (7 days ago)
- Language: TypeScript
- Size: 5.77 MB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 2
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
Carbon Tools
This is a mono-repository/multi-package built with Lerna & TypeScript.
Contents
- bytes-to-co2: A library that estimates the CO2 released to the atmosphere based on the transferred byte size.
- co2-extension: A Chrome (for now) that shows the amount of CO2 released by visiting the current page.
- lighthouse-plugin-co2: A Lighthouse Plugin that calculates the CO2 of all the data transferred by a page.
- 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-co2ornpm i bytes-to-co2yarn add co2-dataornpm i co2-data
Development - Getting started
Project supports NodeJS >= v20.x
- Clone the project
git clone https://github.com/dvelasquez/carbon-tools.git - Run
pnpm ito install the dev dependencies - Use
pnpm lerna:buildto build all the libraries - Use
pnpm lintto lint files and catch issues with the code styling, or possible code errors - Use
pnpm testto run Node TAP tests
Owner metadata
- Name: Danilo Velasquez Urrutia
- Login: dvelasquez
- Email:
- Kind: user
- Description: Hello there!
- Website: https://d13z.dev
- Location: Spain
- Twitter: d13z_
- Company: Adevinta
- Icon url: https://avatars.githubusercontent.com/u/4724505?u=2f73e2a0b3e2fa7866157f2e52959a39b4ddb3b0&v=4
- Repositories: 73
- Last ynced at: 2024-04-14T07:06:57.242Z
- Profile URL: https://github.com/dvelasquez
GitHub Events
Total
- Issues event: 1
- Watch event: 2
- Delete event: 144
- Issue comment event: 13
- Push event: 631
- Pull request event: 273
- Create event: 135
Last Year
- Issues event: 1
- Watch event: 1
- Delete event: 142
- Issue comment event: 11
- Push event: 631
- Pull request event: 269
- Create event: 133
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 | 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
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
- Total packages: 1
-
Total downloads:
- npm: 3,130 last-month
- Total dependent packages: 2
- Total dependent repositories: 2
- Total versions: 194
- Total maintainers: 1
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
- @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
- co2-data ^0.0.27
- lighthouse ^9.2.0 development
- bytes-to-co2 ^0.3.29
- 969 dependencies
- actions/checkout v2 composite
- actions/setup-node v2-beta composite
- actions/checkout v2 composite
- actions/setup-node v2-beta composite
- actions/checkout v2 composite
- actions/setup-node v2-beta composite
Score: 12.940733581288775