<?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: Krishna Bharadwaj</title>
    <description>The latest articles on DEV Community by Krishna Bharadwaj (@krishna_bharadwaj_bd2818d).</description>
    <link>https://dev.to/krishna_bharadwaj_bd2818d</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%2F4162754%2Fa4ba84e2-c02f-42cd-bcdf-2d52edfcebb8.jpg</url>
      <title>DEV Community: Krishna Bharadwaj</title>
      <link>https://dev.to/krishna_bharadwaj_bd2818d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/krishna_bharadwaj_bd2818d"/>
    <language>en</language>
    <item>
      <title>MealBuddy</title>
      <dc:creator>Krishna Bharadwaj</dc:creator>
      <pubDate>Mon, 05 Oct 2026 04:46:41 +0000</pubDate>
      <link>https://dev.to/krishna_bharadwaj_bd2818d/mealbuddy-2087</link>
      <guid>https://dev.to/krishna_bharadwaj_bd2818d/mealbuddy-2087</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Meal Buddy&lt;/strong&gt; is a local AI meal planner designed around one specific person's needs: someone with food allergies, a tight weekly budget, and a small kitchen who keeps asking "what can I cook with what's left?"&lt;/p&gt;

&lt;p&gt;I built it around a realistic persona rather than a tested user, so I haven't been able to hand it to a real person yet. That's the main thing I'd do next.&lt;/p&gt;

&lt;p&gt;What it does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stores a profile (allergies, diet, budget, kitchen setup) in one editable JSON file&lt;/li&gt;
&lt;li&gt;Takes a free-text pantry list like "rice, dal, onions, tomatoes"&lt;/li&gt;
&lt;li&gt;Generates a &lt;strong&gt;3-day meal plan&lt;/strong&gt; that uses pantry items first&lt;/li&gt;
&lt;li&gt;Runs a &lt;strong&gt;hard allergy check&lt;/strong&gt; on every plan: a keyword scan plus a second AI pass, and it regenerates the plan if anything looks unsafe&lt;/li&gt;
&lt;li&gt;Produces a &lt;strong&gt;grocery list&lt;/strong&gt; of only the missing items, grouped by category, with cost estimates&lt;/li&gt;
&lt;li&gt;Has a &lt;strong&gt;"swap this meal"&lt;/strong&gt; button that regenerates one meal without touching the rest&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9f9vf8i450ke24c0t61d.png" class="article-body-image-wrapper"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9f9vf8i450ke24c0t61d.png" alt=" " width="768" height="1376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It runs locally at &lt;code&gt;http://127.0.0.1:8000&lt;/code&gt; once Ollama and the model are set up. The setup steps are in the README.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&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/KrishnaBharadwaj67" rel="noopener noreferrer"&gt;
        KrishnaBharadwaj67
      &lt;/a&gt; / &lt;a href="https://github.com/KrishnaBharadwaj67/roommate-meal-planner" rel="noopener noreferrer"&gt;
        roommate-meal-planner
      &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;🍛 Meal Buddy&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;A local AI meal planner built for one specific person — my roommate.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Built for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01" rel="nofollow"&gt;DEV Hacktoberfest Weekend Challenge: "Build for a Friend"&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Meal Buddy uses &lt;strong&gt;Gemma&lt;/strong&gt; (open-weight model) via &lt;strong&gt;Ollama&lt;/strong&gt; — everything runs
on your laptop, offline, with zero paid APIs.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/KrishnaBharadwaj67/roommate-meal-planner/screenshot.jpg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FKrishnaBharadwaj67%2Froommate-meal-planner%2FHEAD%2Fscreenshot.jpg" alt="Meal Buddy screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Why open-source AI?&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;My roommate's allergies and food preferences are personal health data. With
Gemma running locally through Ollama, &lt;strong&gt;none of that ever leaves the laptop&lt;/strong&gt; —
no cloud, no API keys, no accounts, no cost. It works fully offline (great for
hostel Wi-Fi), and if you want a different model you swap one line of config
Open-weight means anyone can audit exactly what's running.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What it does&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;📋 Stores your profile (allergies, diet, budget, kitchen setup) in an editable JSON file&lt;/li&gt;
&lt;li&gt;🧅 Takes free-text pantry input ("rice, dal, onions, tomatoes…")&lt;/li&gt;
&lt;li&gt;🤖 Generates a &lt;strong&gt;3-day meal plan&lt;/strong&gt; using Gemma, prioritising pantry ingredients&lt;/li&gt;
&lt;li&gt;🛡️…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/KrishnaBharadwaj67/roommate-meal-planner" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model:&lt;/strong&gt; Gemma 3 running locally through Ollama&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Python + FastAPI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; plain HTML/CSS/JS, no build step&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data:&lt;/strong&gt; one JSON profile file; the real one is gitignored and a sample profile ships with the repo&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The part I cared about most is the allergy check. A language model can confidently suggest something unsafe, so I don't trust a single pass. Every plan goes through a keyword scan and a second model review, and the plan is regenerated if either flags a problem.&lt;/p&gt;

&lt;p&gt;During early testing with a nut allergy profile, Gemma confidently suggested an almond garnish because it treated it as an optional topping rather than an ingredient. The keyword scan immediately flagged it and triggered an automatic regeneration before the plan ever reached the UI. That single moment proved why having both layers of safety is completely necessary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Open-Source AI Matters Here
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Health data stays on the laptop.&lt;/strong&gt; Allergies and diet details are personal, and nothing is sent to a server I don't control.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It costs nothing to run.&lt;/strong&gt; No API keys, accounts, or bills.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It works offline.&lt;/strong&gt; It only needs internet once, to download the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Models are swappable.&lt;/strong&gt; Changing one line (&lt;code&gt;MODEL_NAME&lt;/code&gt;) lets me try &lt;code&gt;gemma3:4b&lt;/code&gt;, Mistral, or Llama.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's auditable.&lt;/strong&gt; Open weights mean anyone can inspect what's running.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Try it with a real user and collect their feedback, support weekly plans, and let people save favorite meals.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Meal Buddy is a helper, not medical or nutritional advice. Always double-check ingredients if you have severe allergies.&lt;/em&gt;&lt;/p&gt;

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