HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
thegreenwebfoundation
co2.js
JavaScript2022–2025
thegreenwebfoundation / co2.js

co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services

3Distinct people
3Mentions
1Explicit recommenders
498GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

I recommend you take a look at co2.js. This was just mentioned in the latest issue of branch magazine (https://branch.climateaction.tech/issues/issue-4/co2js/) and I haven't…

bugmen0t used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year3 dated mentions

Observed mentions: 2022-09-07 13:43:31 UTC to 2025-10-31 13:12:21 UTC.

0122022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20232024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC211
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101

What Hacker News says

3 sources
Additional useful metrics: TOPS/Whr: Tensor ops per watt-hour Tokens/Whr: LLM ingress|egress tokens per watt-hour % green energy. If 100% offset by PPAs is 100% green, is 100% directly-sourced clean energy 100% or "200% green"? CO2 cost /carbon.txt: https://www.thegreenwebfoundation.org/tools/carbon-txt/ : > carbon.txt is a single, discoverable location on any domain – /carbon.txt – for public, machine‑readable sustainability data. thegreenwebfoundation/co2.js: https://github.com/thegreenwebfoundation/co2.js .. https://www.thegreenwebfoundation.org/co2-js/ Firefox Devtools Profiler uses CO2.js to estimate carbon cost: https://www.thegreenwebfoundation.org/news/carbon-emissions-... TCS: Tech Carbon Standard > impact categories > upstream > Foundation Models,: https://www.techcarbonstandard.org/impact-categories/upstrea... : > In additio
Read the rest
n to the carbon footprint of AI data centres, it is essential to mention their extensive water footprint, therefore a careful examination of data centre WUE_source is indispensable. TCS Glossary: https://www.techcarbonstandard.org/resources/glossary#water-... : > WUE_source: Water Usage Effectiveness Source: > A metric used to measure how efficiently data centres use water for cooling and operations. WUE is quantified in cubic meters per megawatt hour of energy (m3/MWh), representing the amount of water consumed per unit of IT equipment output or computing work. To better understand the true water cost of data centres, source (offsite) and site-based (onsite) WUE metrics must be accounted for. The Green Grid distinguishes them as WUE and (WUE_source). "WATER USAGE EFFECTIVENESS (WUE): A GREEN GRID DATA CENTER SUSTAINABILITY METRIC" The-Green-Grid-White-Paper-35-WUE-Usage-Guidelines.pdf https://airatwork.com/wp-content/uploads/The-Green-Grid-Whit... : > WUE_source = ( Annual Source Energy Water Usage + Annual Site Water Usage ) / IT Equipment Energy * > WUE = ( Annual Site Water Usage ) / IT Equipment Energy [...] Electricitymap has average carbon costs by region, but not yet water costs IIRC "Ask HN: Are you paying electricity bills for your service?" (2024) https://news.ycombinator.com/item?id=42454547 re: Zero Water datacenters From https://news.ycombinator.com/item?id=45363593 (2025) : microfluidics, Graphene based CPU coolers, graphene thermal pads, What about model routing and could split testing or multi-armed bandit identify where cost can be reduced for acceptable loss in accuracy? Do you already log inputs and outputs? From https://news.ycombinator.com/item?id=45267271 : > API facades like OpenLLM and model routers like OpenRouter have standard interfaces for many or most LLM inputs and outputs. Tools like Promptfoo, ChainForge, and LocalAI also all have abstractions over many models. > What are the open standards for representing LLM inputs, and outputs? > W3C PROV has prov:Entity, prov:Activity, and prov:Agent for modeling AI provenance: who or what did what when.
In Show HN: LangSpend – Track LLM costs by feature and customer (OpenAI/Anthropic)

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.