<?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: Srijan </title>
    <description>The latest articles on DEV Community by Srijan  (@srijan07).</description>
    <link>https://dev.to/srijan07</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4176656%2F29718284-f255-4c7b-bca9-7e10ad735049.jpg</url>
      <title>DEV Community: Srijan </title>
      <link>https://dev.to/srijan07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/srijan07"/>
    <language>en</language>
    <item>
      <title>FieldLens 🌿: Exploring the Outdoors with Gemma-Powered Vision AI</title>
      <dc:creator>Srijan </dc:creator>
      <pubDate>Sun, 11 Oct 2026 16:15:20 +0000</pubDate>
      <link>https://dev.to/srijan07/fieldlens-exploring-the-outdoors-with-gemma-powered-vision-ai-5f35</link>
      <guid>https://dev.to/srijan07/fieldlens-exploring-the-outdoors-with-gemma-powered-vision-ai-5f35</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  FieldLens 🌿 — Gemma-Powered Nature Identifier
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“Step outside. Discover what's around you.”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

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

&lt;p&gt;&lt;strong&gt;FieldLens&lt;/strong&gt; is a lightweight, privacy-preserving nature observation web application designed to encourage people to close their laptops, step outside, and engage with the living world around them. &lt;/p&gt;

&lt;p&gt;Whether exploring a local trail, walking through a neighborhood park, or examining flora and fauna in your backyard, FieldLens lets you photograph any plant, flower, tree, bird, mushroom, or insect and receive grounded, cautious insights powered by &lt;strong&gt;Google Gemma&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mobile-First Field Capture:&lt;/strong&gt; Take photos directly through your smartphone camera (&lt;code&gt;capture="environment"&lt;/code&gt;) or upload existing images (JPEG, PNG, WebP) with automatic client-side compression.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grounded, Cautious Identification:&lt;/strong&gt; Unlike generic chatbots that hallucinate species names, FieldLens is instructed to distinguish visible morphological evidence from assumptions. When diagnostic traits are ambiguous or missing, it identifies the broadest defensible category (&lt;em&gt;flowering plant&lt;/em&gt;, &lt;em&gt;bird&lt;/em&gt;, &lt;em&gt;tree&lt;/em&gt;, &lt;em&gt;mushroom&lt;/em&gt;, &lt;em&gt;insect&lt;/em&gt;, or &lt;em&gt;unknown organism&lt;/em&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calibrated Uncertainty Ratings:&lt;/strong&gt; Honest qualitative uncertainty levels (&lt;strong&gt;Low&lt;/strong&gt;, &lt;strong&gt;Moderate&lt;/strong&gt;, &lt;strong&gt;High&lt;/strong&gt;) with clear explanations—no fabricated percentage scores.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Actionable Outdoor Guidance:&lt;/strong&gt; Practical outdoor observation tips (e.g. leaf arrangement, bark texture, scent check) and safety warnings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline Personal Nature Journal:&lt;/strong&gt; Save sightings directly to your browser's local memory (&lt;code&gt;localStorage&lt;/code&gt; for metadata, &lt;code&gt;IndexedDB&lt;/code&gt; for high-resolution images). Persists across page refreshes with zero tracking and zero login requirements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Server Retention:&lt;/strong&gt; Uploaded images are processed in-memory and discarded immediately upon analysis.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;Watch FieldLens in action analyzing specimens and saving observations in real time:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/YIhn4hLXFb0" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Direct Video Link:&lt;/strong&gt; &lt;a href="https://youtu.be/YIhn4hLXFb0?si=0_rFT6y7QsZZdGr9" rel="noopener noreferrer"&gt;https://youtu.be/YIhn4hLXFb0?si=0_rFT6y7QsZZdGr9&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Walkthrough &amp;amp; User Journey
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Landing &amp;amp; Ethics:&lt;/strong&gt; Introduces &lt;em&gt;Leave No Trace&lt;/em&gt; outdoor ethics and transparency disclosures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Capture &amp;amp; Analyze:&lt;/strong&gt; Select or photograph a specimen; Google Gemma Vision evaluates leaf structure, plumage, or growth habit in real time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Structured Card:&lt;/strong&gt; Renders common name, scientific name (if warranted), uncertainty rating, visual evidence, outdoor tips, and cautions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Field Journal:&lt;/strong&gt; Browse, search, filter, and inspect your saved observations over time.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;The complete source code is public and open-source:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/srijan-0-7" rel="noopener noreferrer"&gt;
        srijan-0-7
      &lt;/a&gt; / &lt;a href="https://github.com/srijan-0-7/hacktoberfest-dev-1" rel="noopener noreferrer"&gt;
        hacktoberfest-dev-1
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;FieldLens 🌿 — Gemma-Powered Nature Identifier&lt;/h1&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“Step outside. Discover what's around you.”&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;Built for Hacktoberfest 2026 Week 1 DEV Community Challenge: “Touch Grass”&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;FieldLens is a lightweight, privacy-preserving nature observation web application that uses Google's open-weights &lt;strong&gt;Gemma&lt;/strong&gt; vision-language models to help outdoor explorers, hikers, and curious backyard observers identify and learn about plants, flowers, birds, trees, mushrooms, and insects in their environment.&lt;/p&gt;
&lt;p&gt;Unlike generic image classifiers or ungrounded chatbot wrappers, FieldLens is designed around a &lt;strong&gt;cautious observation philosophy&lt;/strong&gt;: it examines visible morphological traits, distinguishes evidence from assumptions, qualifies its uncertainty honestly, provides practical outdoor tips, and reminds users never to consume or disturb unknown wildlife.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;📺 Video Demo&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Watch FieldLens in action identifying specimens and saving observations:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://youtu.be/YIhn4hLXFb0?si=0_rFT6y7QsZZdGr9" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/569b938d28e7c5aaf8cbd635b5833322162c1ada39e042b00291a8327ce6b938/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f5949686e34684c584662302f302e6a7067" alt="FieldLens Video Demo"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://youtu.be/YIhn4hLXFb0?si=0_rFT6y7QsZZdGr9" rel="nofollow noopener noreferrer"&gt;Watch on YouTube&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🍃 Connection to “Touch Grass”&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;The theme of Hacktoberfest Week 1 is &lt;strong&gt;“Touch Grass”&lt;/strong&gt;: leveraging open-source AI to encourage people to disconnect from repetitive digital routines and…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/srijan-0-7/hacktoberfest-dev-1" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/srijan-0-7/hacktoberfest-dev-1" rel="noopener noreferrer"&gt;https://github.com/srijan-0-7/hacktoberfest-dev-1&lt;/a&gt;&lt;/p&gt;




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

&lt;h3&gt;
  
  
  1. Open-Source AI Model: Google Gemma Vision
&lt;/h3&gt;

&lt;p&gt;FieldLens is powered by &lt;strong&gt;Google Gemma 4 Vision&lt;/strong&gt; (&lt;code&gt;models/gemma-4-26b-a4b-it&lt;/code&gt;), an open-weights multimodal vision-language model developed by Google DeepMind.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;System Prompt Design:&lt;/strong&gt; The model is bound by a strict persona prompt as &lt;em&gt;FieldLens&lt;/em&gt;, a cautious nature assistant that refuses to invent Latin binomials or claim species certainty unless distinguishing morphological traits are visibly present in the photograph.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resilient Multi-Tier JSON Parsing:&lt;/strong&gt; To handle reasoning traces and varying response patterns, the parser dynamically extracts valid schemas from direct JSON, markdown-fenced code blocks (&lt;code&gt;&lt;/code&gt;`&lt;code&gt;json&lt;/code&gt;), and structured key-value bullet points.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Frontend &amp;amp; Local Persistence
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;React 18 + TypeScript + Vite:&lt;/strong&gt; Clean, responsive, and mobile-friendly interface styled with Tailwind CSS and Lucide icons.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hybrid Browser Storage:&lt;/strong&gt; Solved browser storage quota issues by using &lt;code&gt;localStorage&lt;/code&gt; for structured observation metadata and &lt;code&gt;IndexedDB&lt;/code&gt; (via &lt;code&gt;idb-keyval&lt;/code&gt;) for storing full-resolution photograph blobs locally.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Serverless API Architecture
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Serverless API Handler (&lt;code&gt;api/identify.ts&lt;/code&gt;):&lt;/strong&gt; Lightweight Node.js endpoint with built-in retry logic and timeout safeguards, ensuring API keys stay strictly server-side.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integrated Vite Dev Middleware:&lt;/strong&gt; The local Vite development server automatically intercepts &lt;code&gt;/api/identify&lt;/code&gt; using &lt;code&gt;dotenv&lt;/code&gt;, offering a unified developer experience with single-command startup (&lt;code&gt;npm run dev&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Scientific Grounding over Marketing Hype:&lt;/strong&gt; Closed commercial APIs often push conversational models to appear authoritative, leading to dangerous hallucinations in the natural world (such as incorrectly declaring a wild fungus edible). Open-weights models like Gemma allow us to carefully craft system boundaries, inspect behavioral characteristics, and build tools centered on scientific caution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Democratizing Outdoor Literacy:&lt;/strong&gt; Nature belongs to everyone. Open innovation makes it possible to build free, privacy-first field companions without locking basic biological education behind monthly paywalls, tracking cookies, or mandatory user accounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auditability &amp;amp; Longevity:&lt;/strong&gt; An open-weights ecosystem guarantees that research tools and conservation applications can be audited, adapted, and run independently without reliance on a single proprietary vendor.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;FieldLens was architected and built in collaboration with &lt;strong&gt;Antigravity&lt;/strong&gt;, an autonomous agentic pair-programmer powered by Gemini:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;End-to-end multimodal API testing and prompt calibration with real botanical specimens.&lt;/li&gt;
&lt;li&gt;TypeScript schema design and multi-tier extractor implementation.&lt;/li&gt;
&lt;li&gt;Automated testing suite (&lt;code&gt;scripts/test-api.mjs&lt;/code&gt;) verifying inference and response validity.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Touch Grass Challenge (Week 1)&lt;/strong&gt;: Encouraging real-world outdoor engagement, nature observation, and Leave No Trace ethics through open-source AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Gemma Challenge&lt;/strong&gt;: Practical application of Google Gemma open-weights multimodal vision models to solve a real-world environmental education challenge.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
