Measure and report on the carbon impact of a website #35
Replies: 3 comments 4 replies
-
Thanks for the nice description. I am intending to work on this issue. One question: You write
I see there is the CO2.js model, but aren't there models missing to check for the page size and green hosting? Or did you have in mind to use the shell model for that? |
Beta Was this translation helpful? Give feedback.
-
One further question: I have been writing a lighthouse model to get some page analytics going. But unfortunately lighthouse is an ESM package and incompatible with IF's CommonJS approach (same for sitespeed.io I guess). Do you have some insight on whether CommonJS was an intentional design choice or is necessary for any reason? I tried to transform IF into an ESM package and it seems to go okayish... The main issue is that dynamic global imports do not seem to be possible with ESM node modules. So you need to handle plugin installs in a different way. |
Beta Was this translation helpful? Give feedback.
-
@jmcook1186 - I'm trying to get folks from my company, Mozilla, to participate in the Hackathon for Earth Week (month / century?). I think approaching them wth a specific challenge to solve might make it easier to recruit - so Ii'm thinking this might be one that would make sense to try and solve. We've done a lot of work around CO2e measurement within the Firefox Profiler in collaboration with the Green Web Foundation. Curious your thoughts here. Does this seem like a good lane for folks from Mozilla if I can get them to participate? Or is there something else more pressing / relevant that comes to mind. |
Beta Was this translation helpful? Give feedback.
-
Please use this template to suggest an idea that people can try to implement as part of Carbon Hack 24. Provide as much detail as possible. If someone else submitted an idea but you feel you can do a better job of explaining, please go ahead and submit again.
Prize category
Help the participant understand which of the prize categories this idea would best fit
User Story
As a web developer I want to know how much carbon is consumed when people visit my website.
Rationale
The carbon impact of a website is the result of the deployment and hosting infrastructure and the cost of serving the website content. These can be calculated using existing models in the IF repositories. However, calculating the impact of a real website requires carefully configuring the manifest file and choosing the right models as well as finding accurate input data. The manifest file and the resulting data could be used to form the basis of an accessible report/article on web sustainability that could include recommendations for good green practise.
Impact
If this idea is successful implemented then the IF will be producing actionable insights for a real world product.
Implementation guidelines
Difficulty
2/5
Scope Of Work
List some of the tasks that will be required to implement this idea
Examples and resources
Provide any links to prior discussions, similar code, examples, pseudocode, diagrams or anything else than can help the hacker understand the task
Manifest File
The following manifest file is a demo that shows a valid structure - you will need to update it for your website!
Beta Was this translation helpful? Give feedback.
All reactions