<?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: Manik garg</title>
    <description>The latest articles on DEV Community by Manik garg (@manikgarg).</description>
    <link>https://dev.to/manikgarg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Manik garg</title>
      <link>https://dev.to/manikgarg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manikgarg"/>
    <language>en</language>
    <item>
      <title>Health Diary</title>
      <dc:creator>Manik garg</dc:creator>
      <pubDate>Sun, 04 Oct 2026 17:27:40 +0000</pubDate>
      <link>https://dev.to/manikgarg/health-diary-4g4p</link>
      <guid>https://dev.to/manikgarg/health-diary-4g4p</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;Health Diary&lt;/strong&gt; — an effortless, privacy-first nutrition and calorie tracking web app designed for my friend who wanted to eat healthier and track their meals without the tedious manual searching, complex ingredient lookups, or paid subscription paywalls found in most mainstream fitness apps.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem It Solves
&lt;/h3&gt;

&lt;p&gt;Traditional calorie trackers require you to search through cluttered databases for every single ingredient, guess serving sizes in obscure units, and spend 5–10 minutes after every meal tapping through endless dropdowns. My friend found this friction so exhausting that they constantly abandoned tracking after just a couple of days.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Solution
&lt;/h3&gt;

&lt;p&gt;With &lt;strong&gt;Health Diary&lt;/strong&gt;, logging a meal takes 5 seconds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Speak or Type Naturally&lt;/strong&gt;: You simply tap the mic or type in plain language: &lt;em&gt;"2 boiled eggs, a slice of whole wheat toast with peanut butter, and a black coffee for breakfast"&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Nutrition Parsing&lt;/strong&gt;: The built-in parsing engine automatically extracts the food items, calculates portion quantities (fractions, units, grams, cups, slices), determines the meal time, and scales all nutritional components instantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deep Component Analysis&lt;/strong&gt;: Beyond just counting calories, it provides a comprehensive breakdown of &lt;strong&gt;Macronutrients (Protein, Carbs, Fat)&lt;/strong&gt; and &lt;strong&gt;Micronutrients (Dietary Fiber, Sugar limit, Sodium, Potassium, Calcium, Iron, Vitamins)&lt;/strong&gt; with an algorithmic Diet Quality Score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monthly Insights &amp;amp; Calendar&lt;/strong&gt;: An interactive calendar and daily calorie trend chart allow inspecting any historical date with one click, tracking consistency, and exporting data as CSV.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live App Demo&lt;/strong&gt;: &lt;a href="https://healthdiary-zeta.vercel.app/" rel="noopener noreferrer"&gt;https://healthdiary-zeta.vercel.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Video / Screenshots Preview&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;🎙️ &lt;em&gt;Home &amp;amp; Voice Logging&lt;/em&gt;: Tap to speak or type meals, review live calorie rings, macro bars, and hydration.&lt;/li&gt;
&lt;li&gt;📊 &lt;em&gt;Daily Analysis&lt;/em&gt;: In-depth macronutrient donuts, micronutrient meters, and full food item tables.&lt;/li&gt;
&lt;li&gt;🗓️ &lt;em&gt;Monthly Calendar&lt;/em&gt;: Color-coded compliance overview with click-to-inspect daily explorer.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;The complete source code is available on GitHub:&lt;/p&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/manik-dev-sudo" rel="noopener noreferrer"&gt;
        manik-dev-sudo
      &lt;/a&gt; / &lt;a href="https://github.com/manik-dev-sudo/Nutrition_tracker" rel="noopener noreferrer"&gt;
        Nutrition_tracker
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Nutrition tracker that keep track of your nutrition requirement throughout the day
    &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;Health Diary&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;A simple calorie and nutrition tracker designed to make logging meals effortless. Instead of searching and adding ingredients one by one, you can just speak or type what you ate in plain language (e.g., &lt;em&gt;"2 boiled eggs, a slice of whole wheat toast with peanut butter, and a cup of black coffee"&lt;/em&gt;), and the app calculates the calories and nutrition breakdown for you.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How It Works&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;1. Home &amp;amp; Quick Logging (Speak or Type)&lt;/h3&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Voice or Text Input&lt;/strong&gt;: Tap the microphone button to speak or type what you ate in your own words.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Food Parser&lt;/strong&gt;: Automatically understands quantities, portions, fractions, and meal types (Breakfast, Lunch, Dinner, Snack).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirmation Preview&lt;/strong&gt;: Lets you quickly review items, adjust portions with &lt;code&gt;+&lt;/code&gt; / &lt;code&gt;-&lt;/code&gt; buttons, or remove items before adding them to your log.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Today's Summary&lt;/strong&gt;: Live calorie ring (calories eaten vs. your daily target), progress…&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/manik-dev-sudo/Nutrition_tracker" 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;Health Diary was built with a zero-dependency, ultra-fast, offline-first vanilla web stack:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Frontend Architecture&lt;/strong&gt;: Built using semantic &lt;strong&gt;HTML5&lt;/strong&gt;, modern &lt;strong&gt;Vanilla CSS&lt;/strong&gt; with a crisp light wellness aesthetic (Plus Jakarta Sans typography, soft gradients, responsive glass cards), and modular &lt;strong&gt;JavaScript (ES Modules)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speech Recognition (Web Speech API)&lt;/strong&gt;: Native speech-to-text integration that transcribes natural voice descriptions in real-time with zero external server latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Natural Language Food &amp;amp; Nutrition Parser&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Built-in comprehensive food database spanning 150+ standardized foods across all food groups (Proteins, Carbs, Dairy, Vegetables, Fruits, Snacks, Dishes).&lt;/li&gt;
&lt;li&gt;Rule-based natural language parser that detects multi-item lists, fractions (&lt;code&gt;1/2&lt;/code&gt;, &lt;code&gt;1.5&lt;/code&gt;), units (&lt;code&gt;tbsp&lt;/code&gt;, &lt;code&gt;g&lt;/code&gt;, &lt;code&gt;cups&lt;/code&gt;, &lt;code&gt;bowls&lt;/code&gt;, &lt;code&gt;pieces&lt;/code&gt;), and meal keywords (&lt;code&gt;for breakfast&lt;/code&gt;, &lt;code&gt;in lunch&lt;/code&gt;, &lt;code&gt;as a snack&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive SVG Charting Engine&lt;/strong&gt;: Custom, lightweight SVG engine that renders responsive calorie progress rings, macronutrient ratio donuts, and monthly trend bar charts with interactive hover states and click-to-inspect event bindings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Storage &amp;amp; Privacy&lt;/strong&gt;: All logs, hydration metrics, and custom foods are stored strictly on the user's device (&lt;code&gt;localStorage&lt;/code&gt;), guaranteeing 100% privacy with zero tracking or mandatory account sign-ups.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;Open innovation enables us to build tools that prioritize the user over data monetization. &lt;/p&gt;

&lt;p&gt;Most commercial diet apps lock basic nutritional breakdowns (like fiber, sodium, and micronutrient ratios) behind expensive monthly paywalls, while collecting personal health data for advertising. &lt;/p&gt;

&lt;p&gt;By building an open-source, client-side application:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Health is Accessible to Everyone&lt;/strong&gt;: Clean, accurate nutrition tracking without ads, paywalls, or forced subscriptions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;True Data Sovereignty&lt;/strong&gt;: Personal dietary logs remain entirely on the user's browser, accessible offline anytime.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extensibility&lt;/strong&gt;: Anyone can fork the project, add localized food databases for their region, or customize their nutritional targets.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;This project was built with the assistance of agentic AI workflows. The agent assisted in designing the natural language parser regex rules, standardizing the USDA nutrition database components, architecting the interactive SVG visualization engine, and crafting the clean wellness design system.&lt;/p&gt;




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

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Build for a Friend&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Open-source Web Application&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

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