<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: jantoine2</title>
    <description>The latest articles on DEV Community by jantoine2 (@jantoine2).</description>
    <link>https://dev.to/jantoine2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F921467%2F54ee3ffb-8ff6-4e85-bb92-1e4b2b62c814.png</url>
      <title>DEV Community: jantoine2</title>
      <link>https://dev.to/jantoine2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jantoine2"/>
    <language>en</language>
    <item>
      <title>EcoLens 🌍 — Scan Any Object, Discover Its Carbon Impact (Built for Haiti &amp; Resource-Limited Environments)</title>
      <dc:creator>jantoine2</dc:creator>
      <pubDate>Mon, 20 Apr 2026 02:52:32 +0000</pubDate>
      <link>https://dev.to/jantoine2/ecolens-scan-any-object-discover-its-carbon-impact-built-for-haiti-resource-limited-357l</link>
      <guid>https://dev.to/jantoine2/ecolens-scan-any-object-discover-its-carbon-impact-built-for-haiti-resource-limited-357l</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;EcoLens&lt;/strong&gt; 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.&lt;/p&gt;

&lt;p&gt;What makes EcoLens unique: it's built specifically for &lt;strong&gt;resource-limited environments like Haiti&lt;/strong&gt;, 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;h2&gt;
  
  
  The Problem I'm Solving
&lt;/h2&gt;

&lt;p&gt;Most carbon footprint tools are built for Western contexts. They suggest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Buy an electric vehicle" ❌ not available in Haiti&lt;/li&gt;
&lt;li&gt;"Use your composting service" ❌ doesn't exist&lt;/li&gt;
&lt;li&gt;"Shop at the organic supermarket" ❌ not accessible&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;EcoLens gives advice that actually works where you live.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;📸 User uploads a photo of any object&lt;/li&gt;
&lt;li&gt;⚙️ React frontend sends it to the ASP.NET Core backend&lt;/li&gt;
&lt;li&gt;🤖 Backend calls Google AI models via OpenRouter API&lt;/li&gt;
&lt;li&gt;📊 AI identifies the object and calculates its environmental impact&lt;/li&gt;
&lt;li&gt;✅ Results displayed with carbon score, CO2 estimate, eco alternatives, and local context tips&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Special Feature: Haitian Dish Recognition
&lt;/h3&gt;

&lt;p&gt;EcoLens recognizes Haitian dishes by name and gives culturally relevant advice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🍚 Diri djon djon (black mushroom rice)&lt;/li&gt;
&lt;li&gt;🥩 Griot (Haitian fried pork)&lt;/li&gt;
&lt;li&gt;🎃 Soup joumou (pumpkin soup)&lt;/li&gt;
&lt;li&gt;🍌 Bannann peze (twice-fried plantain)&lt;/li&gt;
&lt;li&gt;🌽 Maïs moulu ak legim (ground corn with vegetables)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;React 19 + Vite + Axios&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;ASP.NET Core 9 (C#)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI&lt;/td&gt;
&lt;td&gt;Google Gemma via OpenRouter API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dev Assistant&lt;/td&gt;
&lt;td&gt;GitHub Copilot&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Why OpenRouter instead of Gemini API directly?
&lt;/h3&gt;

&lt;p&gt;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 &lt;strong&gt;OpenRouter&lt;/strong&gt;, 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.&lt;/p&gt;

&lt;p&gt;The system uses &lt;strong&gt;automatic fallback across 5 models&lt;/strong&gt; for maximum reliability:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;code&gt;google/gemma-3-27b-it:free&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;google/gemma-3-12b-it:free&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;google/gemma-4-31b-it:free&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nvidia/nemotron-nano-12b-v2-vl:free&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;google/gemma-3-4b-it:free&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  AI-Assisted Development with GitHub Copilot
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot was used throughout the development of EcoLens to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate ASP.NET Core boilerplate and controller structure&lt;/li&gt;
&lt;li&gt;Debug the OpenRouter API integrations&lt;/li&gt;
&lt;li&gt;Suggest improvements to the JSON parsing logic&lt;/li&gt;
&lt;li&gt;Speed up React component development&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Challenges I Ran Into
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Google Gemini API geographic restrictions&lt;/strong&gt;&lt;br&gt;
The biggest challenge was discovering that Gemini's free tier is blocked from Haiti. The solution was OpenRouter with Google Gemma models.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Free models deprecated without warning&lt;/strong&gt;&lt;br&gt;
Built an automatic fallback system that tries 5 different models in sequence so the app never goes down.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Getting consistent JSON from AI&lt;/strong&gt;&lt;br&gt;
Gemma sometimes returns text before or after the JSON. Fixed with a robust extraction that finds the first &lt;code&gt;{&lt;/code&gt; and last &lt;code&gt;}&lt;/code&gt; in the response.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;How to integrate multimodal AI APIs (image + text) in ASP.NET Core&lt;/li&gt;
&lt;li&gt;The reality of geographic API restrictions affecting developers in the Global South&lt;/li&gt;
&lt;li&gt;How to build a reliable fallback system across multiple free AI models&lt;/li&gt;
&lt;li&gt;The importance of building for your actual local context&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Mobile-optimized camera capture&lt;/li&gt;
&lt;li&gt;[ ] History of past analyses per user&lt;/li&gt;
&lt;li&gt;[ ] Offline mode for low-connectivity environments&lt;/li&gt;
&lt;li&gt;[ ] Support for more Caribbean and African contexts&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Source Code
&lt;/h2&gt;

&lt;p&gt;🔗 &lt;a href="https://github.com/jantoine2/EcoLens" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with ❤️ from Haiti for the DEV Weekend Challenge — Earth Day 2026 🌱&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Powered by OpenRouter + Google Gemma AI + GitHub Copilot&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
    </item>
  </channel>
</rss>
