<?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: Md Adil Iftekhar</title>
    <description>The latest articles on DEV Community by Md Adil Iftekhar (@md_adiliftekhar_4e5bfb37).</description>
    <link>https://dev.to/md_adiliftekhar_4e5bfb37</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%2F3872341%2F01383b77-24b8-47d9-8b03-22485b31c19b.jpg</url>
      <title>DEV Community: Md Adil Iftekhar</title>
      <link>https://dev.to/md_adiliftekhar_4e5bfb37</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/md_adiliftekhar_4e5bfb37"/>
    <language>en</language>
    <item>
      <title>SafePlate</title>
      <dc:creator>Md Adil Iftekhar</dc:creator>
      <pubDate>Fri, 09 Oct 2026 10:09:56 +0000</pubDate>
      <link>https://dev.to/md_adiliftekhar_4e5bfb37/safeplate-2df5</link>
      <guid>https://dev.to/md_adiliftekhar_4e5bfb37/safeplate-2df5</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;I built &lt;strong&gt;SafePlate&lt;/strong&gt;, an AI-powered meal planning and food-safety companion for a friend who struggles with choosing meals because of food allergies. It helps users plan affordable meals based on their allergies, dietary preferences, budget, cooking time, and available ingredients.&lt;/p&gt;

&lt;p&gt;SafePlate includes an AI meal planner, a “Can I Eat This?” ingredient checker, pantry-based recipe generation, and smart ingredient substitutions. Its key feature is a safety-first system that checks AI-generated meals against declared allergens instead of blindly trusting AI recommendations.&lt;/p&gt;

&lt;p&gt;I designed it around open-weight AI running locally through Ollama, so users can keep their personal food preferences and allergy profiles on their own device, switch models, and reduce dependence on closed cloud AI services.&lt;/p&gt;

&lt;p&gt;My goal is to make everyday meal planning easier, more personal, and more accessible for someone I care about. SafePlate combines open-source innovation with practical problem-solving to build technology that makes a real difference in someone's daily life.&lt;/p&gt;

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


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://drive.google.com/file/d/16nVPANrlm_b4VDVs0irKqesQsVk420Qy/view?usp=sharing" rel="noopener noreferrer" class="c-link"&gt;
            Video Project 1.mp4 - Google Drive
          &lt;/a&gt;
        &lt;/h2&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fssl.gstatic.com%2Fdocs%2Fdoclist%2Fimages%2Fdrive_favicon_2026_32dp.png" width="32" height="32"&gt;
          drive.google.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&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/MDADILIFTEKHAR" rel="noopener noreferrer"&gt;
        MDADILIFTEKHAR
      &lt;/a&gt; / &lt;a href="https://github.com/MDADILIFTEKHAR/SafePlate" rel="noopener noreferrer"&gt;
        SafePlate
      &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;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/MDADILIFTEKHAR/SafePlate/docs/screenshots/dashboard.png"&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%2FMDADILIFTEKHAR%2FSafePlate%2FHEAD%2Fdocs%2Fscreenshots%2Fdashboard.png" alt="SafePlate Dashboard" width="800"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🛡️ SafePlate — AI Meal Planning Built Around What YOU Can Safely Eat&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;
  &lt;strong&gt;Local-first · Privacy-respecting · Allergy-safe · Budget-conscious&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://github.com/MDADILIFTEKHAR/SafePlate#-key-features" rel="noopener noreferrer"&gt;Features&lt;/a&gt; ·
  &lt;a href="https://github.com/MDADILIFTEKHAR/SafePlate#-live-demo-screenshots" rel="noopener noreferrer"&gt;Screenshots&lt;/a&gt; ·
  &lt;a href="https://github.com/MDADILIFTEKHAR/SafePlate#-architecture" rel="noopener noreferrer"&gt;Architecture&lt;/a&gt; ·
  &lt;a href="https://github.com/MDADILIFTEKHAR/SafePlate#-quick-start" rel="noopener noreferrer"&gt;Quick Start&lt;/a&gt; ·
  &lt;a href="https://github.com/MDADILIFTEKHAR/SafePlate#-testing" rel="noopener noreferrer"&gt;Testing&lt;/a&gt; ·
  &lt;a href="https://github.com/MDADILIFTEKHAR/SafePlate#-contributing" rel="noopener noreferrer"&gt;Contributing&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e4d90793a7a8a7dc0a59944095510b17c0a33c6951761f9b6512b71381c5f9eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d332e31312b2d3337373641423f7374796c653d666f722d7468652d6261646765266c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/e4d90793a7a8a7dc0a59944095510b17c0a33c6951761f9b6512b71381c5f9eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d332e31312b2d3337373641423f7374796c653d666f722d7468652d6261646765266c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465" alt="Python 3.11+"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b633b921b026bc7adc43010e08acaaea4b4c6a06264197f2a0a50f70fc94129f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656163742d31392d3631444146423f7374796c653d666f722d7468652d6261646765266c6f676f3d7265616374266c6f676f436f6c6f723d626c61636b"&gt;&lt;img src="https://camo.githubusercontent.com/b633b921b026bc7adc43010e08acaaea4b4c6a06264197f2a0a50f70fc94129f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656163742d31392d3631444146423f7374796c653d666f722d7468652d6261646765266c6f676f3d7265616374266c6f676f436f6c6f723d626c61636b" alt="React 19"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/119b4670dff3652a1185f9e80ea06f3d019b14d6bea334dd9d878d4cbcf25bae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f466173744150492d302e3131352b2d3030393638383f7374796c653d666f722d7468652d6261646765266c6f676f3d66617374617069266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/119b4670dff3652a1185f9e80ea06f3d019b14d6bea334dd9d878d4cbcf25bae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f466173744150492d302e3131352b2d3030393638383f7374796c653d666f722d7468652d6261646765266c6f676f3d66617374617069266c6f676f436f6c6f723d7768697465" alt="FastAPI"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7eb6e6680267e45fd592872eb059937b1496d667ab7c55b0c0f0ce590676b032/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f6c6c616d612d4c6f63616c5f41492d3030303030303f7374796c653d666f722d7468652d6261646765266c6f676f3d6f6c6c616d61266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/7eb6e6680267e45fd592872eb059937b1496d667ab7c55b0c0f0ce590676b032/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f6c6c616d612d4c6f63616c5f41492d3030303030303f7374796c653d666f722d7468652d6261646765266c6f676f3d6f6c6c616d61266c6f676f436f6c6f723d7768697465" alt="Ollama"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/16bd7240453cb539a69f97aecaad06326e3cdc1bff6219e0774b492ac0b11a91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53514c6974652d44617461626173652d3030334235373f7374796c653d666f722d7468652d6261646765266c6f676f3d73716c697465266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/16bd7240453cb539a69f97aecaad06326e3cdc1bff6219e0774b492ac0b11a91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53514c6974652d44617461626173652d3030334235373f7374796c653d666f722d7468652d6261646765266c6f676f3d73716c697465266c6f676f436f6c6f723d7768697465" alt="SQLite"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/93241e52383e14e71941dd3c6b93d270c95cd54766b581a9a0be7f03e471c340/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5461696c77696e645f4353532d332e342d3036423644343f7374796c653d666f722d7468652d6261646765266c6f676f3d7461696c77696e64637373266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/93241e52383e14e71941dd3c6b93d270c95cd54766b581a9a0be7f03e471c340/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5461696c77696e645f4353532d332e342d3036423644343f7374796c653d666f722d7468652d6261646765266c6f676f3d7461696c77696e64637373266c6f676f436f6c6f723d7768697465" alt="Tailwind CSS"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/153acf9dff19deb8abfc598c53bac50a4ceae0f5c83a552711060d3d78d2c057/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765"&gt;&lt;img src="https://camo.githubusercontent.com/153acf9dff19deb8abfc598c53bac50a4ceae0f5c83a552711060d3d78d2c057/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765" alt="MIT License"&gt;&lt;/a&gt;
&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🧠 What is SafePlate?&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;SafePlate is a &lt;strong&gt;local-first, privacy-respecting, allergy-safe meal planning application&lt;/strong&gt; and &lt;strong&gt;instant food safety checker&lt;/strong&gt;. It is built for anyone managing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🥜 &lt;strong&gt;Serious food allergies&lt;/strong&gt; (peanuts, tree nuts, sesame, etc.)&lt;/li&gt;
&lt;li&gt;🥗 &lt;strong&gt;Strict dietary preferences&lt;/strong&gt; (vegetarian, vegan, non-vegetarian)&lt;/li&gt;
&lt;li&gt;💰 &lt;strong&gt;Daily financial constraints&lt;/strong&gt; (e.g., ₹150/day budget)&lt;/li&gt;
&lt;li&gt;⏱️ &lt;strong&gt;Busy schedules&lt;/strong&gt; (under 30-minute cooking time)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Unlike generic chatbots or thin AI wrappers, SafePlate enforces a &lt;strong&gt;strict non-negotiable architectural invariant&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;🔒 AI GENERATES. RULE ENGINE VALIDATES. APPLICATION DECIDES.&lt;/h3&gt;
&lt;/div&gt;
&lt;/blockquote&gt;

&lt;p&gt;The AI is &lt;strong&gt;never&lt;/strong&gt; trusted as the final authority on food safety. A deterministic, multi-layered rule engine validates every single suggestion before it reaches you.&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;✨ Key Features&lt;/h2&gt;

&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;1. 🔬 Deterministic Food Safety Knowledge Engine&lt;/h3&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Classifies every food item into…&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/MDADILIFTEKHAR/SafePlate" 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;p&gt;I built SafePlate using &lt;strong&gt;open-weight AI with Ollama for local inference&lt;/strong&gt;, along with React, Vite, Tailwind CSS, Python, FastAPI, and SQLite. The AI layer is designed to be configurable, allowing different models to be swapped without rewriting the application's core logic.&lt;/p&gt;

&lt;p&gt;The main workflow uses an agent loop: it generates a meal, checks the ingredients, validates allergy restrictions, verifies the budget and cooking time, and attempts to repair the meal if any constraints are violated. A deterministic safety engine performs the final validation, so the AI cannot simply override an allergy conflict.&lt;/p&gt;

&lt;p&gt;I also designed a demo mode so the application can demonstrate its core features without requiring a locally running model. The goal is to make open-source AI a functional part of the product, enabling local processing, greater control over personal data, model flexibility, and the potential for offline use.&lt;/p&gt;

&lt;p&gt;This approach combines generative AI with rule-based validation to make meal planning more personalized, transparent, and privacy-conscious.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Open innovation matters for SafePlate because food allergies are personal, and users should have more control over where their sensitive information is processed. By building around open-weight AI and local inference with Ollama, SafePlate can generate personalized meal ideas on a user's own device without depending on a closed cloud AI API for its core intelligence.&lt;/p&gt;

&lt;p&gt;An open approach also gives me the freedom to switch models, experiment with different prompts, customize the agent loop, and improve the system without being locked into one provider or its pricing. Most importantly, I can combine AI-generated recipes with an independent, rule-based allergy safety engine that checks ingredients before a meal is recommended.&lt;/p&gt;

&lt;p&gt;A closed API could provide meal suggestions, but the open approach gives me greater control over the architecture, privacy, and future development. It also creates the potential for offline use once the model and required data are available locally. For me, open innovation means building a tool that I can understand, adapt, and improve for someone I care about.&lt;/p&gt;
&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;


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

&lt;p&gt;Prize Categories&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open Source AI — Uses open-weight AI models through Ollama for local inference and customizable meal generation.&lt;/li&gt;
&lt;li&gt;AI Agents — Implements an agent loop that generates meals, validates constraints, and attempts to repair unsafe or over-budget suggestions.&lt;/li&gt;
&lt;li&gt;Social Impact / Build for a Friend — Solves a real everyday problem by helping someone with food allergies plan personalized meals.&lt;/li&gt;
&lt;li&gt;Privacy &amp;amp; Local AI — Prioritizes local processing of personal allergy profiles and reduces dependence on external AI APIs.&lt;/li&gt;
&lt;/ul&gt;

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