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
- Host: GitHub
- URL: https://github.com/dvelasquez/carbon-tools
- Owner: dvelasquez
- License: mit
- Created: 2020-10-11T08:39:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-24T08:06:43.000Z (7 days ago)
- Last Synced: 2025-04-26T13:42:43.506Z (5 days ago)
- Language: TypeScript
- Size: 4.72 MB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 1
- 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-co2
ornpm i bytes-to-co2
yarn add co2-data
ornpm 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 i
to install the dev dependencies - Use
pnpm lerna:build
to build all the libraries - Use
pnpm lint
to lint files and catch issues with the code styling, or possible code errors - Use
pnpm test
to 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: 88
- Issue comment event: 13
- Push event: 292
- Pull request event: 166
- Create event: 77
Last Year
- Issues event: 1
- Watch event: 2
- Delete event: 88
- Issue comment event: 13
- Push event: 292
- Pull request event: 166
- Create event: 77
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 | 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
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
- Total packages: 1
-
Total downloads:
- npm: 1,198 last-month
- Total dependent packages: 2
- Total dependent repositories: 2
- Total versions: 114
- 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.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
- @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: 11.871697209086207