Open Sustainable Technology

A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Browse accepted projects | Review proposed projects | Propose new project | Open Issues

Carbon Tools

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

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

        

# Carbon Tools
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

This is a [mono-repository/multi-package](https://dev.to/tallyb/six-blind-people-and-a-monorepo-1n49) built with Lerna & TypeScript.

## Contents

1. [bytes-to-co2:](./packages/bytes-to-co2) A library that estimates the CO2 released to the atmosphere based on the transferred byte size.
2. [co2-extension](./packages/co2-extension): A Chrome (for now) that shows the amount of CO2 released by visiting the current page.
3. [lighthouse-plugin-co2](./packages/lighthouse-plugin-co2): A Lighthouse Plugin that calculates the CO2 of all the data transferred by a page.
4. [co2-data](./packages/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](https://www.npmjs.com/package/co2-data) and
[bytes-to-co2](https://www.npmjs.com/package/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 >= v12.x

1. Clone the project `git clone https://github.com/dvelasquez/carbon-tools.git`
2. Run `yarn` 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: 23 days ago

Total Commits: 338
Total Committers: 6
Avg Commits per committer: 56.333
Development Distribution Score (DDS): 0.438

Commits in past year: 65
Committers in past year: 3
Avg Commits per committer in past year: 21.667
Development Distribution Score (DDS) in past year: 0.354

Name Email Commits
dependabot[bot] 4****] 190
Danilo Velasquez d****z@g****m 78
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: 0
Total pull requests: 213
Average time to close issues: N/A
Average time to close pull requests: 28 days
Total issue authors: 0
Total pull request authors: 1
Average comments per issue: 0
Average comments per pull request: 0.74
Merged pull request: 84
Bot issues: 0
Bot pull requests: 213

Past year issues: 0
Past year pull requests: 122
Past year average time to close issues: N/A
Past year average time to close pull requests: 18 days
Past year issue authors: 0
Past year pull request authors: 1
Past year average comments per issue: 0
Past year average comments per pull request: 0.75
Past year merged pull request: 47
Past year bot issues: 0
Past year bot pull requests: 122

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

Top Issue Authors

Top Pull Request Authors

  • dependabot[bot] (213)

Top Issue Labels

Top Pull Request Labels

  • dependencies (213)

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: https://github.com/dvelasquez/carbon-tools
  • Licenses: MIT
  • Latest release: 0.3.51 (published 3 days ago)
  • Last Synced: 2024-02-27T18:03:00.656Z (1 day ago)
  • Versions: 55
  • Dependent Packages: 2
  • Dependent Repositories: 2
  • Downloads: 179 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: 9.897066984733206