btk / carbonneutralwebsite

Carbon Neutral Website is a carbon emission calculator for web pages.

Home Page:https://carbonneutralwebsite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Carbon Neutral Website

Carbon Neutral Website is a carbon emission calculator that will take into account the power consumption of the devices used to access web pages and web servers, as well as the carbon footprint of the internet infrastructure. It also tells you the amount of trees you should plant to offset the web page's carbon footprint.

See the Paper as PDF public/paper.pdf

Function Instances

You need to deploy /lighthouse on AWS Lambda, and then change the LIGHTHOUSE_LAMBDA_URI environment variable to the public function instance URI.

See how in AWS docs

This is a Next.js project bootstrapped with create-next-app.

Development

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Data References

Variable metrics;

CARBON_PER_KB // g
TREE_EMISSON_PER_YEAR // g
CARBON_PER_PAGE_LOAD_ON_DEVICE // g
AVG_LCP_TIME // s
OVERALL_LIGHTHOUSE_SCORE_EFFECT // out of 100
US_AVG_CARBON_INTENSITY // gCO2/kWh

Feedback

This project is still in beta stage. You can give feedback and detail your problems by creating a new issue in this Github repository.

About

Carbon Neutral Website is a carbon emission calculator for web pages.

https://carbonneutralwebsite.org

License:MIT License


Languages

Language:JavaScript 86.8%Language:CSS 13.2%