EcoTrace spots carbon-heavy patterns in your code the moment you write them. CO₂ estimates, inline squiggles, one-click fixes, and a grade from A to F - right in your editor and your CI pipeline.
Free & open source
Every file gets a grade based on its total estimated CO₂ per page load.
Squiggles on carbon-heavy patterns as you type - images, videos, scripts, iframes, and JS patterns.
Real estimates using actual local file sizes and the Sustainable Web Design model (0.25g CO₂/MB).
Hit ⌘. and fix issues instantly - add lazy loading, swap image formats, defer scripts.
Per-file breakdown with grade, session diff, and projected daily CO₂ impact at different traffic levels.
All files in your project ranked by carbon cost - spot the worst offenders at a glance.
See your grade change since you opened the file. Improve as you code, not after you ship.
The same analysis engine works as a standalone CLI - no VS Code needed. Drop it into pre-commit hooks, GitHub Actions, or any pipeline.
$ npx ecotrace-cli src/**/*.html --threshold C
A src/about.html 0.0g CO₂/load
B src/index.html 0.3g CO₂/load
C src/blog.html 0.9g CO₂/load
F src/landing.html 3.1g CO₂/load ✕ below threshold
✕ 1 file below grade C — exiting with code 1
Free, open source, and takes 30 seconds to install.