<?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>Forem: Youssef Ahmed</title>
    <description>The latest articles on Forem by Youssef Ahmed (@youssef_ahmed).</description>
    <link>https://forem.com/youssef_ahmed</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1914953%2F9c7c6014-2fcb-44eb-9d26-cf771c0a3cf5.jpg</url>
      <title>Forem: Youssef Ahmed</title>
      <link>https://forem.com/youssef_ahmed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/youssef_ahmed"/>
    <language>en</language>
    <item>
      <title>Meal.io | AI-Weekly Meal Planner</title>
      <dc:creator>Youssef Ahmed</dc:creator>
      <pubDate>Sat, 23 May 2026 09:43:36 +0000</pubDate>
      <link>https://forem.com/youssef_ahmed/mealio-ai-weekly-meal-planner-2mab</link>
      <guid>https://forem.com/youssef_ahmed/mealio-ai-weekly-meal-planner-2mab</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/google-gemma-2026-05-06"&gt;Gemma 4 Challenge: Build with Gemma 4&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Mealio is a comprehensive, AI-driven meal planning platform and culinary assistant that eliminates the daily friction of deciding what to eat, tracking nutrition, and grocery shopping.&lt;/p&gt;

&lt;p&gt;Managing dietary restrictions, calculating macros, and manually drafting grocery lists is time-consuming and often overwhelming. Mealio solves this by taking a user’s specific health goals, allergies, and taste preferences (via the &lt;code&gt;MealPreferencesForm&lt;/code&gt;), and instantly generating highly personalized, multi-day meal plans. Beyond static plans, Mealio features an interactive culinary assistant (&lt;code&gt;AgentChat&lt;/code&gt;) that users can converse with to swap out ingredients, ask for recipe step-by-step guidance, or request snacks based on what's currently in their fridge. The platform seamlessly connects this AI generation to a user-friendly dashboard, recipe viewer, and automated shopping list generator.&lt;/p&gt;

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

&lt;p&gt;Deployed Version: &lt;a href="https://mealio-three.vercel.app/" rel="noopener noreferrer"&gt;Meal.io | Your AI Meal Planner&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Github Repository:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API: &lt;a href="https://github.com/YoussefAhmed365/mealio-api" rel="noopener noreferrer"&gt;https://github.com/YoussefAhmed365/mealio-api&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Website: &lt;a href="https://github.com/YoussefAhmed365/mealio-website" rel="noopener noreferrer"&gt;https://github.com/YoussefAhmed365/mealio-website&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I Used Gemma 4
&lt;/h2&gt;

&lt;p&gt;Mealio’s core intelligence is entirely powered by Gemma 4. Specifically, I chose the Gemma 4 31B Dense model to drive the backend logic (handled in &lt;code&gt;mealPlanController.js&lt;/code&gt; and &lt;code&gt;agentController.js&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why the 31B Dense model was the perfect fit:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Complex Reasoning &amp;amp; JSON Structuring:&lt;/strong&gt; Generating a cohesive, 7-day meal plan that strictly adheres to complex user constraints (e.g., high-protein, gluten-free, under 2000 calories) requires advanced reasoning. The 31B Dense model excels at instruction following and dependably outputs the deeply nested, structured JSON (&lt;code&gt;raw_plan_debug.json&lt;/code&gt;) that the React frontend requires to render the &lt;code&gt;AnalysisPage&lt;/code&gt;, &lt;code&gt;RecipesPage&lt;/code&gt;, and &lt;code&gt;ShoppingPage&lt;/code&gt; without breaking the UI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Culinary Creativity &amp;amp; Accuracy:&lt;/strong&gt; When users chat with the &lt;code&gt;AgentChat&lt;/code&gt; component to modify a recipe on the fly, the model needs a deep understanding of ingredient substitutions and flavor profiles. The 31B Dense model provides frontier-level knowledge, ensuring substitutions actually taste good and remain nutritionally balanced.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Large Context Window:&lt;/strong&gt; The 256K context window of the 31B model allows the backend to pass the user's complete dietary history, current meal plan, and past feedback into a single prompt, ensuring the AI agent acts as a truly personalized, context-aware nutritionist.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>devchallenge</category>
      <category>gemmachallenge</category>
      <category>gemma</category>
    </item>
  </channel>
</rss>
