Git Product home page Git Product logo

carbonneutralwebsite's Introduction

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.

carbonneutralwebsite's People

Contributors

btk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pablojimeno sjbat

carbonneutralwebsite's Issues

Match server location with visitor location

I'm in Germany and calculating sites from germany (with german servers), the tool says

XXX Germany, DE (x901.68 m more emission than US)

I guess this is meant to tell you should host you sites in the US, because the connection is faster/shorter (for an US based user) which reduces the emissions. If that is true you should match the server location with the users locations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.