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.
Screen.Recording.2024-12-12.at.21.25.20.mov
See the Paper as PDF public/carbon-neutral-website-research-paper.pdf
You need to deploy /lighthouse
on AWS Lambda, and then change the LIGHTHOUSE_LAMBDA_URI
environment variable to the public function instance URI.
This is a Next.js project bootstrapped with create-next-app
.
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.
- parsers/data/carbon-intensity.csv is supplied from ourworldindata.org, which is based on bp statistical review of world energy 2022, 71st edition
- data/variables.json contains static calculation variables used in the calculator tool
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
This project is still in beta stage. You can give feedback and detail your problems by creating a new issue in this Github repository.