<?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: Jerrie Adah</title>
    <description>The latest articles on DEV Community by Jerrie Adah (@adahjerrie).</description>
    <link>https://dev.to/adahjerrie</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%2F4153458%2F25acf726-8dc7-495e-af5f-0cf608e64b7d.jpg</url>
      <title>DEV Community: Jerrie Adah</title>
      <link>https://dev.to/adahjerrie</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adahjerrie"/>
    <language>en</language>
    <item>
      <title>SafeBite AI: Allergy-Aware Meal Planner Agent Powered by Mastra &amp; Gemini</title>
      <dc:creator>Jerrie Adah</dc:creator>
      <pubDate>Mon, 05 Oct 2026 10:27:13 +0000</pubDate>
      <link>https://dev.to/adahjerrie/safebite-ai-allergy-aware-meal-planner-powered-by-mastra-gemini-7m</link>
      <guid>https://dev.to/adahjerrie/safebite-ai-allergy-aware-meal-planner-powered-by-mastra-gemini-7m</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Check it out
&lt;/h3&gt;

&lt;h2&gt;
  
  
  SafeBite AI — Allergy-Aware Agentic Meal Planner
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://safebite-agent.onrender.com/" rel="noopener noreferrer"&gt;https://safebite-agent.onrender.com/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hacktoberfest Submissions:&lt;/strong&gt; Best Use of Mastra | Best Use of Render&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code: Github Repo&lt;/strong&gt; &lt;a href="https://github.com/AdahJerrie/safebite-agent.git" rel="noopener noreferrer"&gt;https://github.com/AdahJerrie/safebite-agent.git&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Inspiration
&lt;/h2&gt;

&lt;p&gt;Planning daily meals while managing food allergies or strict dietary restrictions is a constant source of stress for my friend who is very selective because of allergies. Standard recipe generators often output unsafe suggestions or fail to spot hidden allergen risks (such as dairy derivatives in pre-packaged items or peanut cross-contamination).&lt;/p&gt;

&lt;p&gt;I created &lt;strong&gt;SafeBite AI&lt;/strong&gt; to solve this problem with true agentic reliability. Powered by &lt;strong&gt;Mastra AI&lt;/strong&gt; and &lt;strong&gt;Google Gemini&lt;/strong&gt;, SafeBite doesn't simply prompt a static LLM—it runs an autonomous agent that screens pantry ingredients through real-time tool checks before generating a verified recipe.&lt;/p&gt;




&lt;h2&gt;
  
  
  📸 Proof of Functionality &amp;amp; Screenshots
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Interactive Dashboard &amp;amp; Restrictions Selector
&lt;/h3&gt;

&lt;p&gt;Users select active dietary restrictions (e.g., Peanuts, Dairy) and specify available pantry ingredients along with a maximum prep time limit.&lt;/p&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%2Fjqmvxv8mmn1uwvuzf8hx.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%2Fjqmvxv8mmn1uwvuzf8hx.png" alt="Interactive dashboard" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check out the demo: &lt;a href="https://safebite-agent.onrender.com/" rel="noopener noreferrer"&gt;https://safebite-agent.onrender.com/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Autonomous Agentic Output &amp;amp; Recipe Verification
&lt;/h3&gt;

&lt;p&gt;The Mastra agent validates ingredients against all listed restrictions and generates a structured, step-by-step recipe ("Quick Garlic Chicken &amp;amp; Wilted Spinach Rice Bowl").&lt;/p&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%2Fohurix0h65d1r4dd9dy3.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%2Fohurix0h65d1r4dd9dy3.png" alt="detailed recipe" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What It Does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Restriction &amp;amp; Pantry Inputs:&lt;/strong&gt; Allows users to toggle active allergens (Peanuts, Tree Nuts, Dairy, Eggs, Soy, Gluten, Shellfish, Fish) and input exact pantry items.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Autonomous Ingredient Screening:&lt;/strong&gt; The &lt;code&gt;safeBiteAgent&lt;/code&gt; leverages Mastra's tool-calling engine to execute &lt;code&gt;allergenCheckerTool&lt;/code&gt;, inspecting every ingredient before finalizing the recipe.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execution Telemetry:&lt;/strong&gt; Displays live agent status badges and execution telemetry on the interface so users can confirm active safety validation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clear Markdown Recipes:&lt;/strong&gt; Outputs comprehensive cooking instructions complete with prep time breakdowns, safe ingredient lists, and safety disclaimers.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agent Framework:&lt;/strong&gt; &lt;strong&gt;Mastra AI&lt;/strong&gt; (&lt;code&gt;@mastra/core&lt;/code&gt;) for agent instructions, tool binding, and runtime execution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM Model Provider:&lt;/strong&gt; &lt;strong&gt;Google Gemini&lt;/strong&gt; (&lt;code&gt;gemini-3.8-flash&lt;/code&gt;) via &lt;code&gt;@ai-sdk/google&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend &amp;amp; Design:&lt;/strong&gt; &lt;strong&gt;Next.js 15 (App Router)&lt;/strong&gt; with &lt;strong&gt;Tailwind CSS v4&lt;/strong&gt; dark mode and &lt;code&gt;react-markdown&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment Platform:&lt;/strong&gt; Deployed directly as a Node.js web service on &lt;strong&gt;Render&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Challenges I Ran Into
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Module Resolution &amp;amp; Build Errors:&lt;/strong&gt; Configured PostCSS and Tailwind v4 to use &lt;code&gt;.cjs&lt;/code&gt; extensions to handle Next.js ESM module constraints (&lt;code&gt;"type": "module"&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI SDK Compatibility:&lt;/strong&gt; Resolved version specification mismatches between &lt;code&gt;@mastra/core&lt;/code&gt; and &lt;code&gt;@ai-sdk/google&lt;/code&gt; to enable seamless tool calling with &lt;code&gt;agent.generate()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production Build Dependencies:&lt;/strong&gt; Adjusted dependency configurations to ensure Render's automated build pipeline cleanly installs &lt;code&gt;@tailwindcss/postcss&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Accomplishments
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;True Tool-Driven Workflow:&lt;/strong&gt; Built an AI agent that actively invokes validation tools instead of relying solely on raw text generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seamless Render Deployment:&lt;/strong&gt; Successfully hosted the application at &lt;a href="https://safebite-agent.onrender.com" rel="noopener noreferrer"&gt;safebite-agent.onrender.com&lt;/a&gt; with automated builds and fast response times.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Prize Category Submissions
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Mastra:&lt;/strong&gt; Architected using Mastra's core Agent framework, custom tool orchestration (&lt;code&gt;allergenCheckerTool&lt;/code&gt;), and execution telemetry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Render:&lt;/strong&gt; Deployed and actively running in production as a Render Web Service.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>hacktoberfest</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
