EcoLens 🌍 — Scan Any Object, Discover Its Carbon Impact (Built for Haiti & Resource-Limited Environments)
What I Built EcoLens is a web app that lets you photograph any object — a meal, a product, a vehicle, an electronic device — and instantly discover its carbon footprint, with eco-friendly alternatives and advice adapted to your real local context. What makes EcoLens unique: it's built specifically for resource-limited environments like Haiti, where most "green" apps suggest solutions that simply don't exist locally (electric cars, composting services, organic supermarkets...). EcoLens gives realistic, actionable advice for where you actually live. Most carbon footprint tools are built for Western contexts. They suggest: "Buy an electric vehicle" ❌ not available in Haiti "Use your composting service" ❌ doesn't exist "Shop at the organic supermarket" ❌ not accessible EcoLens gives advice that actually works where you live. 📸 User uploads a photo of any object ⚙️ React frontend sends it to the ASP.NET Core backend 🤖 Backend calls Google AI models via OpenRouter API 📊 AI identifies the object and calculates its environmental impact ✅ Results displayed with carbon score, CO2 estimate, eco alternatives, and local context tips EcoLens recognizes Haitian dishes by name and gives culturally relevant advice: 🍚 Diri djon djon (black mushroom rice) 🥩 Griot (Haitian fried pork) 🎃 Soup joumou (pumpkin soup) 🍌 Bannann peze (twice-fried plantain) 🌽 Maïs moulu ak legim (ground corn with vegetables) Layer Technology Frontend React 19 + Vite + Axios Backend ASP.NET Core 9 (C#) AI Google Gemma via OpenRouter API Dev Assistant GitHub Copilot The Google Gemini API has geographic restrictions that block free tier access from Haiti and many Global South countries. I solved this by routing through OpenRouter, which provides access to Google's Gemma models without geographic restrictions — keeping Google AI at the core while making it accessible from anywhere in the world. The system uses automatic fallback across 5 models for maximum reliability: google/gemma-3-27b-it:free google/gemma-3-12b-it:free google/gemma-4-31b-it:free nvidia/nemotron-nano-12b-v2-vl:free google/gemma-3-4b-it:free GitHub Copilot was used throughout the development of EcoLens to: Generate ASP.NET Core boilerplate and controller structure Debug the OpenRouter API integrations Suggest improvements to the JSON parsing logic Speed up React component development 1. Google Gemini API geographic restrictions 2. Free models deprecated without warning 3. Getting consistent JSON from AI { and last } in the response. How to integrate multimodal AI APIs (image + text) in ASP.NET Core The reality of geographic API restrictions affecting developers in the Global South How to build a reliable fallback system across multiple free AI models The importance of building for your actual local context [ ] Mobile-optimized camera capture [ ] History of past analyses per user [ ] Offline mode for low-connectivity environments [ ] Support for more Caribbean and African contexts 🔗 GitHub Repository Built with ❤️ from Haiti for the DEV Weekend Challenge — Earth Day 2026 🌱 Powered by OpenRouter + Google Gemma AI + GitHub Copilot
