Powered by thegreenwebfoundation.org 🌍✨
This project leverages their invaluable resources to help make the web greener, one website at a time! 💚
🚀 What is Green Hosting Inspector?
The Green Hosting Inspector is a Visual Studio Code extension that checks if URLs in your code are hosted on environmentally friendly hosting providers. It uses the Green Web Foundation's API to perform these checks.
🛠️ Features
🌐 Smart URL Detection: Automatically detects URLs in your code, including:
Full URLs: https://example.com/path
Bare domains: example.com
URLs in comments and strings
🔵 Subtle Visual Indicators: A small colored dot appears before each URL:
🟢 Green dot: Verified green hosting (runs on renewable energy)
🟡 Yellow dot: No evidence of green hosting in the Green Web Foundation database
💬 Informative Hover: Hover over any URL to see:
Green hosting status
Hosting provider name (if known)
Links to learn more or find green hosting providers
📊 Repository Metrics Dashboard: Get an overview of your entire repository:
Total URLs and unique domains count
Green-hosted vs not-verified statistics
Visual percentage bar showing green hosting ratio
Detailed table with each domain's status, hosting provider, and file locations
One-click refresh to rescan your workspace
⚡ High Performance:
Results cached for 1 week (persists across VS Code restarts)
Batch API calls for multiple URLs
Smart change detection to avoid redundant scans
Lightweight scanning (skips large files and build artifacts)
📦 Installation
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing Ctrl+Shift+X (Cmd+Shift+X on Mac).
Search for "Green Hosting Inspector" in the Extensions Marketplace.
Click "Install" to add the extension to your VS Code.