gitmyhub

EcoScore-Browser-Extension

JavaScript ★ 16 updated 17d ago

A Chrome extension that shows an AI-generated sustainability rating and CO2 estimate on Amazon and Flipkart product pages, with greener alternatives and a personal progress tracker.

JavaScriptNode.jsChrome Extensions APIGoogle Gemini AIsetup: hardcomplexity 3/5

EcoScore AI is a Chrome browser extension that adds a sustainability rating to product pages on shopping websites like Amazon and Flipkart. When you visit a product page, the extension reads the product title and keywords, sends them to Google's Gemini AI, and gets back an estimated carbon footprint measured in kg CO2, along with a letter grade from A+ to D.

The extension shows this information in a floating widget on the page. The widget displays the grade, a short explanation of why the product received it, and three suggested alternatives with a smaller environmental impact. The widget can be dragged around the page if it gets in the way.

If you sign in with a Google account, the extension tracks your activity over time. It records how much CO2 you have theoretically avoided by choosing greener products, and assigns you a rank based on that total. Ranks go from Susty Novice at the low end to Climate Champion once you have saved 30 kg or more. A dashboard panel shows your stats and progress.

The backend is a Node.js server you run locally on your own computer. It handles authentication through Google, stores user stats in a local JSON file, and communicates with the extension as you browse. Setup involves loading the extension manually in Chrome's developer mode, then starting the server from the backend folder.

The extension is not yet ready to install from the Chrome Web Store. To use it, you need to supply your own Gemini API key and Google OAuth credentials, which means it is a developer-level setup rather than a plug-in-and-go product.

Where it fits