Personalized UX
- Dark/Light theme support (Dark default)
- Toggle to disable or enable popup auto-open on product pages
Project Showcase
Verdi is a browser extension that helps people make greener purchase decisions while they shop online. It keeps users in their shopping flow, analyzes product pages in place, and surfaces clear environmental signals at decision time.
Shoppers can compare price, delivery, and reviews in seconds, but environmental impact is usually hidden or difficult to interpret. Verdi closes that gap by translating climate impact into practical guidance directly inside the popup.
Please go on a product page for the extension to work
The content script gathers structured context from title, description, brand hints, price text, bullets, headings, and URL.
Verdi only runs when buyable-product signals exist:
Background worker sends extracted context to Gemini for structured inference:
When key fields are uncertain, Verdi can run a search-enriched pass and merge results.
Popup displays:
Verdi uses deterministic math in the popup to convert extracted material data into readable impact estimates.
materialImpactKgCO2e = (totalWeightKg * (materialPercent / 100)) * materialFactorKgCO2ePerKg
totalImpactKgCO2e = sum(materialImpactKgCO2e)
equivalentMiles = totalImpactKgCO2e / 0.404
where 0.404 kg CO2e/mile comes from U.S. EPA equivalency estimates for an average gasoline passenger vehicle.
npm install
Create or edit gemini-key.ts:
export const GEMINI_API_KEY = "YOUR_KEY_HERE"
npm run dev
npm run build