A Chrome/Edge browser extension that evaluates websites for green software development practices and displays colored badges indicating their environmental sustainability.
- Real-time Analysis: Automatically analyzes websites when you visit them
- Visual Indicators: Color-coded badges (green = excellent, yellow = good, red = needs improvement)
- Detailed Breakdown: Shows specific green software practices being followed
- Performance Monitoring: Tracks website efficiency metrics
- Image Optimization - Uses modern image formats (WebP, AVIF) and lazy loading
- Minified Resources - JavaScript and CSS files are compressed
- Compression - Server-side compression enabled
- Reduced HTTP Requests - Efficient resource bundling
- Energy Efficient Design - Dark mode support, async loading
What we check:
- Modern Formats: Images using WebP or AVIF formats (more efficient compression)
- Lazy Loading: Images with
loading="lazy"
attribute to reduce initial page load - Threshold: At least 50% of images must use optimization techniques
Why it matters: Optimized images can reduce data transfer by 25-35%, leading to lower energy consumption and faster load times.
What we check:
- JavaScript Files: Scripts with
.min.js
extension or containing "minified" in the filename - CSS Files: Stylesheets with
.min.css
extension or containing "minified" in the filename - Threshold: At least 30% of external resources must be minified
Why it matters: Minified files reduce bandwidth usage by 10-40%, decreasing server load and energy consumption.
What we check:
- HTTP Headers: Meta tags indicating content encoding or compression
- Server Configuration: Evidence of gzip, brotli, or similar compression
- Response Headers: Content-Encoding headers (detected through meta tags)
Why it matters: Compression can reduce data transfer by 60-80%, significantly lowering network energy usage.
What we check:
- Total Resource Count: Combined external scripts, stylesheets, and images
- Threshold: Fewer than 20 external resources (indicates good bundling practices)
- Resource Efficiency: Evidence of sprite sheets, bundled assets, or CDN usage
Why it matters: Each HTTP request requires energy for DNS lookups, connection establishment, and data transfer. Fewer requests = less energy.
What we check:
- Dark Mode Support:
color-scheme
meta tagdata-theme
attributes- CSS classes indicating dark mode
- Black background colors
- Async Loading: Scripts with
async
ordefer
attributes (at least 50% of scripts) - Progressive Enhancement: Non-blocking resource loading patterns
Why it matters: Dark themes can reduce screen energy consumption by 15-60% on OLED displays. Async loading prevents render-blocking and improves efficiency.
- Excellent (70-100%): Green badge β - 4-5 criteria met
- Good (40-69%): Yellow badge ~ - 2-3 criteria met
- Needs Improvement (0-39%): Red badge β - 0-1 criteria met
- Unable to Analyze: Gray badge ? - Technical issues or restricted content
Each criterion contributes equally (20%) to the final score. The extension provides real-time feedback and detailed breakdowns to help developers understand which practices to implement.
- Open Chrome/Edge and navigate to
chrome://extensions/
oredge://extensions/
- Enable "Developer mode" in the top-right corner
- Click "Load unpacked" and select this project folder
- The extension icon should appear in your browser toolbar
The extension will be available on the Chrome Web Store and Microsoft Edge Add-ons store.
- Automatic Analysis: The extension automatically analyzes websites as you browse
- View Results: Click the extension icon to see detailed analysis
- Badge Indicators:
- β Green badge = Excellent green practices (70%+ score)
- ~ Yellow badge = Good practices (40-69% score)
- β Red badge = Needs improvement (<40% score)
- ? Gray badge = Unable to analyze
- Manifest V3: Uses latest Chrome extension architecture
- Service Worker: Background analysis and badge management
- Content Scripts: Page analysis and monitoring
- Storage: Local storage for analysis results
greenindicator/
βββ manifest.json # Extension configuration
βββ background.js # Service worker for analysis
βββ content.js # Content script for page monitoring
βββ popup.html # Extension popup interface
βββ popup.css # Popup styling
βββ popup.js # Popup functionality
βββ icons/ # Extension icons (16, 32, 48, 128px)
βββ README.md # This file
- Chrome/Edge browser with developer mode enabled
- Basic knowledge of JavaScript, HTML, CSS
- Load the extension in developer mode
- Visit various websites to test analysis
- Check console logs for debugging information
- Use Chrome DevTools to inspect extension behavior
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This extension is inspired by the principles of the Green Software Foundation, which promotes sustainable software development practices.
MIT License - see LICENSE file for details
This extension:
- Does not collect personal data
- Does not track browsing history
- Analyzes only the current page's technical characteristics
- Stores analysis results locally in your browser
For issues, feature requests, or contributions, please visit our GitHub repository.