Encourage low-carbon coding habits with real-time electricity grid data! VSCarbon shows you when the electricity grid has lower carbon intensity, helping you time energy-intensive tasks.
Make your coding greener, one commit at a time! 🌱
✅ Real-time Carbon Intensity: Status bar displays current carbon intensity from the UK electricity grid
✅ Location-based Data: Enter your UK outward postcode or country code for users outside UK for local carbon intensity data
✅ Visual Indicators: Emoji changes based on carbon levels (😸 for low, 😿 for high)
✅ Commit Tracker: Track sustainable git commits locally
✅ Dashboard: Click status bar to see detailed grid mix and commit stats
🔄 Auto-refresh: Updates every 30 minutes to keep data current
- Download the latest version from Releases
- In VS Code: Go to Extension -> More actions -> Install from VSIX, or
Ctrl+Shift+P→ "Extensions: Install from VSIX..." - Select the downloaded .vsix file
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run
VSCarbon: Set Postcode/Country Codeand enter your UK OUTWARD postcode (e.g., SW1A, M1, AL10) - Run
VSCarbon: Show Carbonto start monitoring - Check the status bar for current carbon intensity, click on it for dashboard showing electricity mix and sustainable commit stats
- Register your Electricity Maps API key. Free tier allows only 1 country so please choose carefully
- Run
VSCarbon: Configure API Keycommand to input your key - Run
VSCarbon: Set Postcode/Country Codeand enter country code (e.g., AT, DE, ES) - Run
VSCarbon: Show Carbonto start monitoring - Check the status bar for current carbon intensity, click on it for dashboard showing electricity mix and sustainable commit stats
VSCarbon: Configure API Key- Input Electricity Maps API key for users outside UKVSCarbon: Set Postcode/Country Code- Configure your locationVSCarbon: Show Carbon- Start monitoring carbon intensityVSCarbon: Reset Commit Stats- Clear commit stats
- Currently supports UK regional data and country-level data for the other countries
- Requires internet connection for updating data
- UK data is provided by Carbon Intensity API - National Grid ESO
- Electricity Maps for the other countries
- Expanded country coverage beyond the UK (country list here) thanks to Electricity Maps API
- 🐛 Fixed commit tracking accuracy: Commit tracker now only counts actual
git commitcommands, not file changes or staging - 🔧 Improved detection method: Switched from VS Code Git API monitoring to Git log file watching for more reliable commit detection
- ✨ Enhanced test function: Better error messages and validation in commit tracking test
- ✨ Added commit tracking functionality
- 📊 Commit statistics dashboard
- 🌱 Sustainable commit notifications
- Expanded country coverage beyond the UK (country list here) thanks to Electricity Maps API
This project was created as part of Branch magazine's exploration of everyday green coding practices.
We welcome contributions! Please see our Contributing Guide for details on how to get started, development setup, and contribution guidelines.
Feedback is welcome via Google Forms