At the Green Web Foundation, we seek to increase the Internet’s energy efficiency and speed the Internet’s transition away from fossil fuels by 2030. As part of this vision, we conducted the project ‘A Carbon-Aware Internet’ with support from the RIPE NCC Community Projects Fund in 2022.
Using real-time data about electricity around the world, we annotated network connections with carbon intensity. With this information, any digital infrastructure provider can move their compute workloads to greener regions.
Why does this matter? Several big cloud providers currently offer this service — but only for their products. We believe the tools to simplify and incentivize a green Internet should be available to everyone. Our work is open source, and we are dedicated to open practices and an open, green Internet for all.
- In 2023, Mozilla introduced carbon emissions estimates into its developer tooling. This case study explores how the Mozilla team and Green Web Foundation members made this possible using CO2.js.
- Step CI is a testing and monitoring tool for APIs. In this case study, we look at how they introduced carbon emissions estimates using CO2.js.
- Ecograder is one of the pioneering tools when it comes to estimating website carbon emissions. In this case study we look at the Ecograder story, and how CO2.js helped with its most recent update.
Action and results
Here’s what we learned and did thanks to the RIPE NCC Community Projects Fund:
Creation and publication of open data about carbon intensity
We partnered with two organizations to create an open dataset of carbon intensity. This data is needed so Internet networking nodes can be annotated with carbon footprint figures per megabit transferred.
- We partnered with Ember Climate to use their free carbon intensity data. There are two main approaches for measuring the carbon intensity of electricity — marginal and average.
- We lobbied the United Nations Framework Convention on Climate Change (UNFCCC) to release their carbon intensity data, under a similarly permissive licence. Both sets of data are yearly figures, but they can be useful when making carbon estimates based on energy usage in different scenarios and are used by different emerging standards.
Reference implementations that use this data and annotations to expose useful API and patterns in carbon-aware web development and design
The carbon intensity data from above enabled us to build examples of tools for carbon-aware routing and scheduling. We incorporated these annotations into user documentation and exemplary use cases in web development and design, building on our experience in making carbon-responsive websites.
We released the code openly on GitHub and further demonstrated carbon intensity in web development and design on Branch, an Ars Electronica award-winning magazine as well as with leading WordPress developers. With the funding from the RIPE NCC Community Projects Fund, we created the following reference implementations:
- Creation of the Grid Intensity CLI tool. This tool aims to make global carbon intensity data more accessible to developers. By doing so, developers can be better informed to make decisions about where and/or when to run their code. We published information about this project on our website, and we also wrote an introduction blog post about the tool.
- Introduction of grid intensity data into CO2.js package API. The CO2.js API, which is a second use case for the CO2.js packages API, aims to empower developers to easily access economy-level data on carbon intensity for integration into their own calculations. Developers can choose between economy-level average or marginal grid intensity data. We published a quick start guide, in which we explain the new use case in the section ‘Using Grid Intensity Data’.
- IP to CO2 Intensity API. The IP to CO2 Intensity API allows you to query an IP address, and return the average annual grid intensity based on its real-world location. The Greencheck API provides endpoints that allow developers to query The Green Web Foundation’s dataset of green domains.
Integration into existing projects with partners
We convened and supported a community of digital infrastructure partners, including the RIPE community and members of the Green Web Foundation, to understand the potential of these annotations and implement them in their services.
- We partnered with KDE to explore how to build carbon awareness into the Linux operating system in a hackday. After prototyping with the library we identified where we would make the change, and we are now working together with the goal of merging this work back upstream into Debian once it’s in KDE, as a proof of concept. Because Debian is the underlying distribution for a significant majority of Linux distributions, making a change here means we would be able to make the new features available to every downstream provider.
- And we also worked within the Kubernetes ecosystem, to identify where to build carbon awareness here, and identified the autoscalers as a key area. We have been working with the team on Keda core, one of the most popular software libraries for scheduling computing jobs, and a RabbitMQ autoscaling extension is now being developed using our library. We incorporated feedback and iterated on the offering to improve its usefulness and impact. Finally, we wanted to ensure that the developer documentation is open and accessible to everyone, which is why we published the entire documentation (on the grid intensity tool and the CO2.js package) on GitHub and on our own Developer website. The CO2.js package documentation was bookmarked by 140 users within the first twenty days after the release.
- Additionally, we are members of the larger Green Software Foundation, and were launch partners and judges in Carbon Hack 2022, a hackathon focused entirely around the concept of carbon-aware digital services we have been promoting. Partnering with them helped increase the reach of the work we did — a combined prize pot of USD 100,000 in prize money, and more than 400 developers entered. These ideas have now made it into the work of the Green Software Pattern Library and training materials, and we are in conversations with the Green Software Foundation about using the data we produced as the default dataset in the C# software libraries they publish.
- Later in the year, the dataset we created formed the basis for a submission we made to the University of Rome for a new academic paper detailing how to extend the IPv6 protocol for carbon awareness. Together, we have submitted a position paper based on the dataset as a joint application for an upcoming workshop on the environmental impact of Internet applications and systems by the Internet Architecture Board (IAB). This would not have happened without us presenting on the project’s work in progress at RIPE 84 as of the keynotes.
Thanks to the RIPE NCC Community Projects Fund, carbon intensity data is now published in an open and accessible format to all digital infrastructure providers — a huge win!
If you’d like to learn more about this work, get in touch with us at the Green Web Foundation!
Michell Thorne is the Director of Strategy and Partnerships, interested in building bridges between the digital rights and climate justice movements.
This post was originally published at RIPE Labs.
The views expressed by the authors of this blog are their own and do not necessarily reflect the views of APNIC. Please note a Code of Conduct applies to this blog.