zachleat / performance-leaderboard

A plugin to run Lighthouse against a set of urls to see which site is the fastest.
97 stars 12 forks source link

Reintroduce carbon estimate #18

Open fershad opened 2 years ago

fershad commented 2 years ago

Would there be an appetite to add web page carbon estimates back to the results (removed in #16) without depending on an external API?

The calculations outlined in this post https://sustainablewebdesign.org/calculating-digital-emissions/ could be used. They are the same as is used by the Website Carbon API which was previously used.

I'd be happy to contribute a PR (with some guidance).

fershad commented 2 years ago

Continuing on from Twitter thread https://twitter.com/dgrammatiko/status/1546984584092467200

Implementation would be a modified version of #7 using the latest version of https://github.com/thegreenwebfoundation/co2.js.

@zachleat is it okay with you if I raise a PR to reintroduce a carbon estimate to the leaderboard?