<?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: Steven Harianto</title>
    <description>The latest articles on DEV Community by Steven Harianto (@steveharianto).</description>
    <link>https://dev.to/steveharianto</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%2F4165884%2F26b9d274-fdf4-4137-bfaa-11701f6dbd1c.jpg</url>
      <title>DEV Community: Steven Harianto</title>
      <link>https://dev.to/steveharianto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/steveharianto"/>
    <language>en</language>
    <item>
      <title>ForageQuest: A Single-File AI That Tells You Not to Eat the Mushroom</title>
      <dc:creator>Steven Harianto</dc:creator>
      <pubDate>Tue, 06 Oct 2026 09:15:00 +0000</pubDate>
      <link>https://dev.to/steveharianto/foragequest-a-single-file-ai-that-tells-you-not-to-eat-the-mushroom-3667</link>
      <guid>https://dev.to/steveharianto/foragequest-a-single-file-ai-that-tells-you-not-to-eat-the-mushroom-3667</guid>
      <description>&lt;p&gt;I love foraging. I also love not dying. Those two things are in tension when you're holding a mushroom with no signal and no idea if it's a chanterelle or a jack o'lantern.&lt;/p&gt;

&lt;p&gt;Every foraging app wanted a server, an API key, and a monthly fee. That's backwards. On a trail, a cloud app is useless exactly when you need it most.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;ForageQuest&lt;/strong&gt; - a gamified foraging companion that runs an open-weight vision model entirely in your browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One HTML file. No backend. No API keys. No data leaves your device.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And the part I'm proudest of: &lt;strong&gt;it knows when it doesn't know.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Why open matters here
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Offline safety.&lt;/strong&gt; Trails have no signal. CLIP runs on WebGPU in your browser, cached after first load. Zero bars, still works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Privacy.&lt;/strong&gt; Your foraging spots are your secret. Photos and GPS never leave your device.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Modifiable safety.&lt;/strong&gt; Because the model is local, I can tune the confidence threshold and edit the deadly look-alike blocklist in seconds. A closed API can't give me that - and for a tool where failure means poisoning, I need to verify it fails safely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Free.&lt;/strong&gt; No API costs. Anyone can run it.&lt;/p&gt;




&lt;h2&gt;
  
  
  The build
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;AI:&lt;/strong&gt; Transformers.js v3 + &lt;code&gt;Xenova/clip-vit-base-patch32&lt;/code&gt;. ~150 MB, WebGPU with WASM fallback. Scores your photo against 16 mushroom genera and 14 non-mushroom labels to cut false positives.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The safety gate - the hard part.&lt;/strong&gt; The app never says "safe to eat." It says "candidate match." Three tiers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Confidence gate&lt;/strong&gt; - below 0.70, it refuses to name a species.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look-alike blocklist&lt;/strong&gt; - chanterelle → jack o'lantern, morel → false morel, puffball → young amanita.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never-eat rule&lt;/strong&gt; - always ends with "consult a local mycologist."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Getting an LLM to say &lt;em&gt;"I don't know"&lt;/em&gt; is a product decision, not a model decision. It's the decision that matters most.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open APIs (keyless, CORS-enabled):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open-Meteo&lt;/strong&gt; - rainfall + temp → fruiting likelihood&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iNaturalist&lt;/strong&gt; - nearby observations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GBIF&lt;/strong&gt; - occurrence count → rarity tier&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Gamification:&lt;/strong&gt; Species Dex (16 to unlock), 8 seasonal quests, streak tracking, field log, and a 10-minute &lt;strong&gt;Touch Grass timer&lt;/strong&gt; that tells you to put the phone away after logging a find.&lt;/p&gt;




&lt;h2&gt;
  
  
  Taking it outside
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;[Insert 2–3 photos from your walk here]&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Right:&lt;/strong&gt; Identified a puffball at 82%. Flagged the young-amanita look-alike warning. The Touch Grass timer worked - I put my phone down and found a slime mold I'd have walked past.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wrong:&lt;/strong&gt; Confused a chanterelle with a jack o'lantern at 64%. The safety gate caught it and said "Do not eat." A closed API would have returned an answer anyway. Mine returned a warning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Felt:&lt;/strong&gt; The screen was the shortest part of the experience. That was the goal.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd change
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ElevenLabs&lt;/strong&gt; for voice safety briefings - hands full of mushrooms, screen off&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TabPFN&lt;/strong&gt; for a real fruiting forecast (currently rule-based)&lt;/li&gt;
&lt;li&gt;More species in the CLIP label set&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/steveharianto/foragequest" rel="noopener noreferrer"&gt;https://github.com/steveharianto/foragequest&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://foragequest.vercel.app" rel="noopener noreferrer"&gt;https://foragequest.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;The hardest part of building AI for the physical world isn't making it answer. It's making it shut up. For most apps a wrong answer is annoying. In a forest, it's a hospital visit.&lt;/p&gt;

&lt;p&gt;Now go outside.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built for the Hacktoberfest Open-Source AI Challenge, Week 1: Touch Grass.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>gemma</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
