<?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: Divya Bairavarasu</title>
    <description>The latest articles on DEV Community by Divya Bairavarasu (@divya_bairavarasu_93ffe55).</description>
    <link>https://dev.to/divya_bairavarasu_93ffe55</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%2F1952037%2Fcc476f82-7abe-472d-87bb-f0efee3db461.png</url>
      <title>DEV Community: Divya Bairavarasu</title>
      <link>https://dev.to/divya_bairavarasu_93ffe55</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/divya_bairavarasu_93ffe55"/>
    <language>en</language>
    <item>
      <title>🌿 EarthBug — Snap a Bug. Protect Your Ecosystem.</title>
      <dc:creator>Divya Bairavarasu</dc:creator>
      <pubDate>Sun, 19 Apr 2026 15:44:02 +0000</pubDate>
      <link>https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-49pn</link>
      <guid>https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-49pn</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/weekend-2026-04-16"&gt;Weekend Challenge: Earth Day Edition&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Every day, millions of gardeners spray pesticides on insects they don't recognize — unknowingly killing the very creatures that keep their gardens alive. Ladybugs, lacewings, ground beetles, and dozens of other beneficial insects die silently because people can't tell the difference between a garden ally and a garden pest.&lt;br&gt;
EarthBug changes that. Point your phone at any insect, tap a button, and within seconds you'll know exactly what it is, what role it plays in your local ecosystem, and whether you should protect it or remove it — with full ecological context, not just a label.&lt;/p&gt;

&lt;p&gt;🌍 Earth Day Angle: Pesticide overuse is one of the leading drivers of pollinator collapse and soil degradation. EarthBug gives everyday people the knowledge to make smarter decisions — reducing chemical runoff and protecting biodiversity one scan at a time.&lt;/p&gt;

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

&lt;p&gt;Watch the demo - &lt;a href="https://youtu.be/pLOUmKnfX-Y" rel="noopener noreferrer"&gt;https://youtu.be/pLOUmKnfX-Y&lt;/a&gt;&lt;br&gt;
try it - &lt;a href="https://earthbug.vercel.app/?demo=true" rel="noopener noreferrer"&gt;https://earthbug.vercel.app/?demo=true&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Review the code here - &lt;a href="https://github.com/divyabairavarasu/earthbug.git" rel="noopener noreferrer"&gt;https://github.com/divyabairavarasu/earthbug.git&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I'll be honest: this app would have taken me three times as long without AI assistance. Here's how Google Gemini and GitHub Copilot each played a distinct, essential role.&lt;/p&gt;

&lt;p&gt;Google Gemini AI — The Brain&lt;br&gt;
Gemini is doing the heavy lifting here. When a user captures or uploads a photo, the image goes through a client-side compression pipeline (to optimize the API payload), then is sent to Gemini's vision model with a carefully engineered prompt that requests a structured JSON response.&lt;br&gt;
What Gemini returns for every scan:&lt;br&gt;
Common name and scientific classification&lt;br&gt;
Ecological role — what this insect actually does in its habitat&lt;br&gt;
Benefits and harms — nuanced, not black-and-white&lt;br&gt;
A contextual verdict: Mostly Helpful / Mostly Harmful / Context-Dependent / Neutral Visitor&lt;br&gt;
Eco-actions — specific things the user can do to help or manage this species&lt;br&gt;
Confidence level — so users know how certain the identification is&lt;br&gt;
What makes this integration more than a basic API call:&lt;br&gt;
Structured JSON output with schema validation — Gemini returns a typed object, not free text&lt;br&gt;
Safety filter handling — graceful degradation when images don't contain insects&lt;br&gt;
Multi-turn conversations — users can ask follow-up questions like "How do I attract more of these?"&lt;br&gt;
Error recovery with retry logic — transient API failures don't crash the experience&lt;br&gt;
Image compression pipeline — canvas-based resize before the API call keeps costs low and latency tight&lt;br&gt;
Gemini doesn't just tell you what the bug is — it tells you what it means for your garden and what you should do about it. That's the difference between trivia and actionable intelligence.&lt;/p&gt;

&lt;p&gt;GitHub Copilot — The Development Partner&lt;br&gt;
GitHub Copilot was present at every stage of development — not as an autocomplete tool, but as a genuine pair programmer. Here's where it made the biggest difference:&lt;br&gt;
Prompt Engineering: Copilot helped me iterate on the Gemini system prompt, suggesting structured output schemas and edge case handling I hadn't considered&lt;br&gt;
React Architecture: The state machine in App.jsx — managing the API_KEY → CAMERA → ANALYZING → RESULTS flow — was co-designed with Copilot suggestions&lt;br&gt;
E2E Test Coverage: The entire Playwright test suite was built with Copilot, including the Gemini route interceptors that let tests run without real API calls&lt;br&gt;
Image Compression: The canvas-based compression pipeline that handles GIF/SVG edge cases came from a Copilot suggestion I wouldn't have reached on my own&lt;br&gt;
Accessibility: Copilot flagged missing alt text and duplicate ARIA roles that I'd overlooked — the kind of detail that matters but is easy to miss under deadline pressure&lt;br&gt;
The honest reflection: AI-assisted development isn't about writing less code. It's about writing better code faster — catching blind spots, exploring options you wouldn't have considered, and keeping momentum when you're stuck.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;Best Use of Google Gemini API · Earth Day Impact · Open Source · Mobile Experience&lt;/p&gt;

&lt;h2&gt;
  
  
  Team-members:&lt;a class="mentioned-user" href="https://dev.to/divya_bairavarasu_93ffe55"&gt;@divya_bairavarasu_93ffe55&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I started this project because I genuinely didn't know if the spider living in my garden was a friend or a problem. Now I know it's a garden ally. I hope EarthBug helps a lot of people discover the same thing about the creatures sharing their space.&lt;br&gt;
If you've made it this far — go outside, find a bug, and scan it. You might be surprised who your neighbors are.Thank you for the opportunity.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
    </item>
    <item>
      <title>EarthBug gives everyday people the knowledge to make smarter decisions — reducing chemical runoff and protecting biodiversity one scan at a time.</title>
      <dc:creator>Divya Bairavarasu</dc:creator>
      <pubDate>Sun, 19 Apr 2026 15:36:04 +0000</pubDate>
      <link>https://dev.to/divya_bairavarasu_93ffe55/earthbug-gives-everyday-people-the-knowledge-to-make-smarter-decisions-reducing-chemical-runoff-3a5e</link>
      <guid>https://dev.to/divya_bairavarasu_93ffe55/earthbug-gives-everyday-people-the-knowledge-to-make-smarter-decisions-reducing-chemical-runoff-3a5e</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-5deb" class="crayons-story__hidden-navigation-link"&gt;🌿 EarthBug — Snap a Bug. Protect Your Ecosystem.&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/divya_bairavarasu_93ffe55" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1952037%2Fcc476f82-7abe-472d-87bb-f0efee3db461.png" alt="divya_bairavarasu_93ffe55 profile" class="crayons-avatar__image" width="96" height="96"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/divya_bairavarasu_93ffe55" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Divya Bairavarasu
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Divya Bairavarasu
                
              
              &lt;div id="story-author-preview-content-3523079" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/divya_bairavarasu_93ffe55" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1952037%2Fcc476f82-7abe-472d-87bb-f0efee3db461.png" class="crayons-avatar__image" alt="" width="96" height="96"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Divya Bairavarasu&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-5deb" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Apr 19&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-5deb" id="article-link-3523079"&gt;
          🌿 EarthBug — Snap a Bug. Protect Your Ecosystem.
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/earthday"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;earthday&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/soilbuilder"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;soilbuilder&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/plantbuddies"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;plantbuddies&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/motherearth"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;motherearth&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
            &lt;a href="https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-5deb#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              &lt;span class="hidden s:inline"&gt;Add Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            4 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>🌿 EarthBug — Snap a Bug. Protect Your Ecosystem.</title>
      <dc:creator>Divya Bairavarasu</dc:creator>
      <pubDate>Sun, 19 Apr 2026 15:34:39 +0000</pubDate>
      <link>https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-5deb</link>
      <guid>https://dev.to/divya_bairavarasu_93ffe55/earthbug-snap-a-bug-protect-your-ecosystem-5deb</guid>
      <description>&lt;p&gt;&lt;em&gt;Built for Earth Day Hackathon 2025 · Powered by Google Gemini AI · Developed with GitHub Copilot&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I Built&lt;/strong&gt;&lt;br&gt;
Every day, millions of gardeners spray pesticides on insects they don't recognize — unknowingly killing the very creatures that keep their gardens alive. Ladybugs, lacewings, ground beetles, and dozens of other beneficial insects die silently because people can't tell the difference between a garden ally and a garden pest.&lt;br&gt;
EarthBug changes that. Point your phone at any insect, tap a button, and within seconds you'll know exactly what it is, what role it plays in your local ecosystem, and whether you should protect it or remove it — with full ecological context, not just a label.&lt;/p&gt;

&lt;p&gt;🌍 &lt;strong&gt;Earth Day Angle&lt;/strong&gt;: Pesticide overuse is one of the leading drivers of pollinator collapse and soil degradation. EarthBug gives everyday people the knowledge to make smarter decisions — reducing chemical runoff and protecting biodiversity one scan at a time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Problem I'm Solving&lt;/strong&gt;&lt;br&gt;
Here's something that surprised me when I started building this: most people — even experienced gardeners — cannot reliably identify more than a handful of insects. And when they're unsure, the default reaction is to grab the pesticide spray.&lt;br&gt;
The consequences are real:&lt;br&gt;
40% of insect species are declining globally, many due to pesticide exposure&lt;br&gt;
1 in 3 bites of food depends on pollinators — most of which are insects&lt;br&gt;
A single beneficial predator insect can consume hundreds of pest insects per week&lt;br&gt;
Most people have no idea which of the bugs in their garden are helping them&lt;br&gt;
The knowledge gap is the problem. EarthBug closes it.&lt;/p&gt;

&lt;p&gt;Live Demo&lt;br&gt;
▶ Watch the demo video - &lt;a href="https://youtu.be/pLOUmKnfX-Y" rel="noopener noreferrer"&gt;https://youtu.be/pLOUmKnfX-Y&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Or try it yourself — no setup needed, no account required: → &lt;a href="https://earthbug.vercel.app?demo=true" rel="noopener noreferrer"&gt;https://earthbug.vercel.app?demo=true&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The demo mode pre-loads a real analysis so you can explore the full experience without needing an API key. Just tap through — it works exactly like the real thing.&lt;br&gt;
How I Built It&lt;br&gt;
I'll be honest: this app would have taken me three times as long without AI assistance. Here's how Google Gemini and GitHub Copilot each played a distinct, essential role.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Google Gemini AI — The Brain&lt;/strong&gt;&lt;br&gt;
Gemini is doing the heavy lifting here. When a user captures or uploads a photo, the image goes through a client-side compression pipeline (to optimize the API payload), then is sent to Gemini's vision model with a carefully engineered prompt that requests a structured JSON response.&lt;br&gt;
What Gemini returns for every scan:&lt;br&gt;
Common name and scientific classification&lt;br&gt;
&lt;strong&gt;Ecological role&lt;/strong&gt; — what this insect actually does in its habitat&lt;br&gt;
Benefits and harms — nuanced, not black-and-white&lt;br&gt;
A contextual verdict: Mostly Helpful / Mostly Harmful / Context-Dependent / Neutral Visitor&lt;br&gt;
Eco-actions — specific things the user can do to help or manage this species&lt;br&gt;
&lt;strong&gt;Confidence level&lt;/strong&gt; — so users know how certain the identification is&lt;br&gt;
What makes this integration more than a basic API call:&lt;br&gt;
Structured JSON output with schema validation — Gemini returns a typed object, not free text&lt;br&gt;
Safety filter handling — graceful degradation when images don't contain insects&lt;br&gt;
&lt;strong&gt;Multi-turn conversations&lt;/strong&gt; — users can ask follow-up questions like "How do I attract more of these?"&lt;br&gt;
Error recovery with retry logic — transient API failures don't crash the experience&lt;br&gt;
&lt;strong&gt;Image compression pipeline&lt;/strong&gt; — canvas-based resize before the API call keeps costs low and latency tight&lt;br&gt;
Gemini doesn't just tell you what the bug is — it tells you what it means for your garden and what you should do about it. That's the difference between trivia and &lt;strong&gt;actionable intelligence&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;**GitHub Copilot — The Development Partner&lt;br&gt;
**GitHub Copilot was present at every stage of development — not as an autocomplete tool, but as a genuine pair programmer. Here's where it made the biggest difference:&lt;br&gt;
Prompt Engineering: Copilot helped me iterate on the Gemini system prompt, suggesting structured output schemas and edge case handling I hadn't considered&lt;br&gt;
React Architecture: The state machine in App.jsx — managing the API_KEY → CAMERA → ANALYZING → RESULTS flow — was co-designed with Copilot suggestions&lt;br&gt;
E2E Test Coverage: The entire Playwright test suite was built with Copilot, including the Gemini route interceptors that let tests run without real API calls&lt;br&gt;
Image Compression: The canvas-based compression pipeline that handles GIF/SVG edge cases came from a Copilot suggestion I wouldn't have reached on my own&lt;br&gt;
Accessibility: Copilot flagged missing alt text and duplicate ARIA roles that I'd overlooked — the kind of detail that matters but is easy to miss under deadline pressure&lt;br&gt;
The honest reflection: AI-assisted development isn't about writing less code. It's about writing better code faster — catching blind spots, exploring options you wouldn't have considered, and keeping momentum when you're stuck.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tech Stack&lt;/strong&gt;&lt;br&gt;
Frontend: Vite 6 + React 18 + Tailwind CSS&lt;br&gt;
AI: &lt;strong&gt;Google Gemini Vision API (@google/generative-ai)&lt;/strong&gt;&lt;br&gt;
Deployment: Vercel (serverless, zero backend)&lt;br&gt;
Testing: Playwright E2E&lt;br&gt;
Dev Partner: GitHub Copilot&lt;br&gt;
Architecture: &lt;strong&gt;Mobile-first SPA, privacy-first (images never stored server-side)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Privacy-First by Design&lt;/strong&gt;&lt;br&gt;
One thing I was deliberate about: EarthBug never stores your photos. Images live only in memory during the scan session — they go to Gemini's API and nowhere else. Scan history is kept in-session only. There's no account, no tracking, no database of your garden.&lt;br&gt;
In an era where every app wants your data, I wanted to build something that just works for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's Next&lt;/strong&gt;&lt;br&gt;
EarthBug is a working app today, but it's pointing at something bigger. The features I'd love to add with more time:&lt;br&gt;
iNaturalist Integration — one-tap export to contribute sightings to global biodiversity science&lt;br&gt;
Regional Bug Guides — "Most common in your area this season"&lt;br&gt;
Community Confirmations — let experienced users verify AI identifications&lt;br&gt;
Offline Mode (PWA) — scan bugs without connectivity, sync later&lt;br&gt;
Gamification — seasonal bug collections, biodiversity badges&lt;br&gt;
The core insight is this: AI can turn a smartphone into a field naturalist's notebook. That's a tool with real environmental stakes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;br&gt;
I started this project because I genuinely didn't know if the spider living in my garden was a friend or a problem. Now I know it's a garden ally. I hope EarthBug helps a lot of people discover the same thing about the creatures sharing their space.&lt;br&gt;
If you've made it this far — go outside, find a bug, and scan it. You might be surprised who your neighbors are.&lt;/p&gt;

&lt;p&gt;Happy Earth Day. 🌍&lt;/p&gt;

&lt;p&gt;Prize Categories: Best Use of Google Gemini API · Earth Day Impact Mobile Experience&lt;/p&gt;

</description>
      <category>earthday</category>
      <category>soilbuilder</category>
      <category>plantbuddies</category>
      <category>motherearth</category>
    </item>
  </channel>
</rss>
