<?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: Aryan Mohan</title>
    <description>The latest articles on DEV Community by Aryan Mohan (@aryan_mohan_71c9984118936).</description>
    <link>https://dev.to/aryan_mohan_71c9984118936</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%2F3414449%2F04c4b8d6-77a2-45ed-9903-87b85fb0a55a.png</url>
      <title>DEV Community: Aryan Mohan</title>
      <link>https://dev.to/aryan_mohan_71c9984118936</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aryan_mohan_71c9984118936"/>
    <language>en</language>
    <item>
      <title>AllerGuard: Keeping My Roommate Safe in the Kitchen with Local Gemma 2</title>
      <dc:creator>Aryan Mohan</dc:creator>
      <pubDate>Sun, 04 Oct 2026 14:35:25 +0000</pubDate>
      <link>https://dev.to/aryan_mohan_71c9984118936/allerguard-keeping-my-roommate-safe-in-the-kitchen-with-local-gemma-2-5b7d</link>
      <guid>https://dev.to/aryan_mohan_71c9984118936/allerguard-keeping-my-roommate-safe-in-the-kitchen-with-local-gemma-2-5b7d</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the&lt;/em&gt;&lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;&lt;em&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Cooking with friends and roommates should be one of the best parts of living together. But when your roommate has severe food allergies, every meal prep turns into an anxious guessing game.&lt;/p&gt;

&lt;p&gt;My roommate has a severe peanut allergy and a painful sensitivity to dairy and gluten. If you've ever tried scanning complex recipe cards, takeout descriptions, or ingredient lists after a long day of classes and work, you know how easy it is to miss hidden culprits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Soy sauce&lt;/strong&gt; often contains wheat/gluten.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traditional pestos&lt;/strong&gt; are loaded with pine nuts and parmesan cheese.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Worcestershire sauce&lt;/strong&gt; typically includes anchovies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sauces and dressings&lt;/strong&gt; frequently hide whey or dairy thickeners.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built &lt;strong&gt;AllerGuard&lt;/strong&gt; for my roommate: an intelligent culinary safety companion. You enter your friend's allergy profile, paste any recipe or meal kit text, and AllerGuard instantly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Scans every ingredient for direct and hidden dietary hazards.&lt;/li&gt;
&lt;li&gt;Explains &lt;em&gt;why&lt;/em&gt; an ingredient is risky.&lt;/li&gt;
&lt;li&gt;Recommends delicious, 1-to-1 safe substitutions (e.g. swapping heavy cream for oat cream, or standard soy sauce for tamari/coconut aminos).&lt;/li&gt;
&lt;li&gt;Provides cross-contamination and kitchen prep advice.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When I showed it to my roommate and pasted their favorite pasta recipe, their reaction was immediate relief: &lt;em&gt;"Wait, I never have to spend 15 minutes squinting at ingredient labels on my phone again?"&lt;/em&gt;&lt;/p&gt;




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

&lt;p&gt;&lt;strong&gt;Video Link:&lt;/strong&gt; &lt;a href="https://drive.google.com/file/d/1Xz5ZN1kGPQC6kyV7lb3WF51IG_kjV6kf/view?usp=sharing" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One-Click Profiles&lt;/strong&gt;: Customize your friend's name and toggle known allergies (Peanuts, Gluten, Dairy, Soy, Shellfish, etc.) with custom tag additions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant Ingredient Audits&lt;/strong&gt;: Color-coded risk indicators (HIGH / MEDIUM / LOW) with plain-English rationales.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pantry-Friendly Swaps&lt;/strong&gt;: Thoughtful culinary substitutes that preserve the dish's flavor and texture without triggering allergic reactions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kitchen Safety Reminders&lt;/strong&gt;: Practical tips on preventing cross-contamination during prep.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;&lt;strong&gt;Github Repository:&lt;/strong&gt; &lt;a href="https://github.com/AryanMohan818/AllerGuard" rel="noopener noreferrer"&gt;https://github.com/AryanMohan818/AllerGuard&lt;/a&gt;&lt;/p&gt;




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

&lt;p&gt;AllerGuard is designed from the ground up to be &lt;strong&gt;100% containerized, local, and self-hosted&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌────────────────────────────────────────────────────────┐
│               Docker Compose Architecture              │
│                                                        │
│  [ React Frontend ] ────► [ FastAPI Backend ]          │
│     (port 5173)                 │ (port 8000)          │
│                                 ▼                      │
│                         [ Ollama Container ]           │
│                            (port 11434)                │
│                                 │                      │
│                         [ Docker Volume ]              │
│                       (stores gemma2 model)            │
└────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






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

&lt;p&gt;When deciding how to build AllerGuard, using a closed, proprietary cloud LLM API (like OpenAI or Anthropic) was an option. However, &lt;strong&gt;open innovation was fundamentally better—and actually essential—for what I built&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Medical &amp;amp; Health Data Privacy&lt;/strong&gt;:&lt;br&gt;
Personal dietary restrictions and medical allergies are sensitive personal health information. With Google's open-weight &lt;strong&gt;Gemma 2&lt;/strong&gt; running locally inside our own Docker environment, zero health data ever leaves the laptop. No third-party servers, no corporate data retention policies, and no risk of personal dietary logs being fed into external training datasets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Zero Operating Cost for Roommates&lt;/strong&gt;:&lt;br&gt;
College students and roommates shouldn't have to pay recurring monthly API token fees or subscription tiers just to cook dinner safely. Open-weight models democratize access: once downloaded, Gemma 2 costs exactly $0.00 to run indefinitely, completely eliminating API bill anxiety.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;100% Offline Kitchen Reliability&lt;/strong&gt;:&lt;br&gt;
Whether you're cooking in an off-grid cabin, an apartment with spotty Wi-Fi, or camping without cell service, AllerGuard works without an internet connection. Open-source models turn consumer hardware into independent, reliable edge intelligence hubs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Model Freedom &amp;amp; Deterministic Control&lt;/strong&gt;:&lt;br&gt;
Because Gemma 2 is open, we can pair it with local container runtimes like Ollama to enforce strict, constrained JSON decoding schemas. We don't have to worry about a closed provider deprecating a model endpoint, altering system prompts, or silently changing safety guardrails behind our backs.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;To build AllerGuard efficiently over the weekend, I paired with an autonomous coding agent (&lt;strong&gt;Antigravity&lt;/strong&gt;) throughout the entire development lifecycle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Iterative Architecture Design&lt;/strong&gt;: We collaborated to architect a 100% containerized, multi-service setup (&lt;code&gt;React + FastAPI + Ollama&lt;/code&gt;) rather than a monolithic local script, ensuring full reproducibility.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt Engineering for Gemma 2&lt;/strong&gt;: We designed and refined the culinary safety prompt to constrain Gemma 2's reasoning into strict JSON outputs with hazard categorization and culinary substitutions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast Troubleshooting&lt;/strong&gt;: During development, we diagnosed Linux container case-sensitivity issues (&lt;code&gt;App.jsx&lt;/code&gt; resolution inside Alpine Node) and configured Docker internal networking (&lt;code&gt;http://ollama:11434&lt;/code&gt;) seamlessly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Using an agent as an interactive pair-programmer accelerated the process from initial brainstorm to a polished, fully Dockerized repository in just a few hours.&lt;/p&gt;




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

&lt;h3&gt;
  
  
  🌟 Best Use of Gemma ($200)
&lt;/h3&gt;

&lt;p&gt;AllerGuard uses Google's open-weight &lt;strong&gt;Gemma 2 (2B)&lt;/strong&gt; as its core reasoning engine. Gemma 2 is deployed locally inside a dedicated Docker container via Ollama, parsing recipe ingredients, detecting hidden cross-reactive allergens, and generating structured JSON substitution recommendations with zero cloud dependencies.&lt;/p&gt;

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