<?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: Mritunjai Gupta</title>
    <description>The latest articles on DEV Community by Mritunjai Gupta (@mritunjai).</description>
    <link>https://dev.to/mritunjai</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%2F4161952%2F405118bb-0d25-4126-a1d9-83b0f3a6bea2.jpg</url>
      <title>DEV Community: Mritunjai Gupta</title>
      <link>https://dev.to/mritunjai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mritunjai"/>
    <language>en</language>
    <item>
      <title>Healtify: Turn your everyday bad habits into good one</title>
      <dc:creator>Mritunjai Gupta</dc:creator>
      <pubDate>Sun, 04 Oct 2026 19:25:13 +0000</pubDate>
      <link>https://dev.to/mritunjai/healtify-turn-your-everyday-bad-habits-into-good-one-43cc</link>
      <guid>https://dev.to/mritunjai/healtify-turn-your-everyday-bad-habits-into-good-one-43cc</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 Healtify, a personal lifestyle tracking and wellness companion for a friend who has been struggling with smoking and other unhealthy habits.&lt;br&gt;
The initial idea was simple: create an application where he could track things like smoking, alcohol consumption, outside food, screen time, sleep, and physical activity.&lt;br&gt;
But while building it, I realized there was a problem with only tracking bad habits.&lt;br&gt;
If someone is already frustrated with their habits, opening an app every day and seeing charts showing smoking, junk food, or other negative behaviors going up can become discouraging. Instead of motivating them, the application could make them feel like they are constantly failing.&lt;br&gt;
So I changed the idea.&lt;br&gt;
Healtify tracks both the habits that are helping you and the habits that are working against you.&lt;br&gt;
It tracks eight lifestyle dimensions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Food &amp;amp; Nutrition&lt;/li&gt;
&lt;li&gt;Smoking&lt;/li&gt;
&lt;li&gt;Alcohol&lt;/li&gt;
&lt;li&gt;Physical Activity&lt;/li&gt;
&lt;li&gt;Sleep &amp;amp; Recovery&lt;/li&gt;
&lt;li&gt;Hydration&lt;/li&gt;
&lt;li&gt;Screen Time&lt;/li&gt;
&lt;li&gt;Mental Wellness&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The application calculates a transparent Healtify Score from 0–100 using a deterministic scoring system. The score is calculated by the backend rather than being guessed by AI.&lt;br&gt;
One of my favorite features is Habit Balance. Instead of simply showing "bad habits," it visualizes the relationship between positive lifestyle behaviors and risk factors.&lt;br&gt;
For example, if someone is struggling with smoking but has simultaneously started walking more, exercising, sleeping better, and drinking more water, Healtify makes that progress visible.&lt;br&gt;
The goal is:&lt;br&gt;
Don't focus only on what you're doing wrong. See what you're doing right, understand what needs attention, and gradually move your lifestyle in a better direction.&lt;/p&gt;

&lt;p&gt;Healtify also provides AI-generated lifestyle reflections that interpret the user's trends and suggest small, practical actions. The AI is an interpretation layer, not a medical diagnostic system.&lt;/p&gt;

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

&lt;p&gt;Live Demo:&lt;br&gt;
[&lt;a href="https://healtify-fcik.onrender.com/" rel="noopener noreferrer"&gt;https://healtify-fcik.onrender.com/&lt;/a&gt;]&lt;br&gt;
Video Demo:&lt;br&gt;
[&lt;a href="https://youtu.be/MJy8uAH1tzk" rel="noopener noreferrer"&gt;https://youtu.be/MJy8uAH1tzk&lt;/a&gt;]&lt;br&gt;
The demo walks through:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Recording daily lifestyle habits&lt;/li&gt;
&lt;li&gt;Real-time Healtify Score calculation&lt;/li&gt;
&lt;li&gt;Lifestyle category trends&lt;/li&gt;
&lt;li&gt;Habit Balance visualization&lt;/li&gt;
&lt;li&gt;Positive habits vs. risk factors&lt;/li&gt;
&lt;li&gt;AI-generated wellness reflections&lt;/li&gt;
&lt;li&gt;Lifestyle goals and areas needing attention&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;GitHub Repository:&lt;br&gt;
[&lt;a href="https://github.com/Mritunjaii/Healtify.git" rel="noopener noreferrer"&gt;https://github.com/Mritunjaii/Healtify.git&lt;/a&gt;]&lt;br&gt;
Tech Stack&lt;br&gt;
Frontend&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React
Backend&lt;/li&gt;
&lt;li&gt;Node.js&lt;/li&gt;
&lt;li&gt;Express.js
Database&lt;/li&gt;
&lt;li&gt;MongoDB
AI&lt;/li&gt;
&lt;li&gt;Llama 3.2 via Ollama — primary/local AI&lt;/li&gt;
&lt;li&gt;Gemini API — cloud fallback
Architecture:
React
↓
Node.js + Express
↓
MongoDB
↓
AI Service Layer
↓
Llama 3.2 via Ollama
↓
Gemini Cloud Fallback&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The AI service is separated from the rest of the application so that Healtify can use local AI whenever available and fall back to Gemini when the local model is unavailable.&lt;/p&gt;

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

&lt;p&gt;One of the main design decisions in Healtify was to make AI an interpretation layer, rather than allowing AI to control the application's core logic.&lt;br&gt;
The Healtify Score is calculated deterministically by the Node.js/Express backend.&lt;br&gt;
Each lifestyle category is normalized to a 0–100 score, and the overall score is calculated from those category scores.&lt;br&gt;
The AI receives a structured summary of the user's lifestyle data and trends.&lt;br&gt;
For example:&lt;br&gt;
{&lt;br&gt;
  "steps": 10400,&lt;br&gt;
  "workoutMinutes": 45,&lt;br&gt;
  "sleepHours": 8.1,&lt;br&gt;
  "waterLiters": 2.3,&lt;br&gt;
  "smokingCount": 2,&lt;br&gt;
  "outsideFoodCount": 1&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;This information is passed to the AI service.&lt;br&gt;
Local AI First&lt;br&gt;
Healtify primarily uses Llama 3.2 through Ollama.&lt;br&gt;
This allows the application to run the AI interpretation locally without sending the user's lifestyle information to a cloud AI provider.&lt;br&gt;
The local model generates things such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Daily reflections&lt;/li&gt;
&lt;li&gt;Weekly summaries&lt;/li&gt;
&lt;li&gt;Score explanations&lt;/li&gt;
&lt;li&gt;Practical micro-actions&lt;/li&gt;
&lt;li&gt;Achievable lifestyle goals
For example:
"Your activity and sleep have been strong this week. Your biggest opportunity is reducing smoking while maintaining your current exercise routine."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cloud Fallback&lt;br&gt;
If the local Ollama service or model is unavailable, Healtify can use the Gemini API as a fallback.&lt;br&gt;
The flow is:&lt;br&gt;
User requests AI Insight&lt;br&gt;
        ↓&lt;br&gt;
Node.js AI Service&lt;br&gt;
        ↓&lt;br&gt;
Is Ollama available?&lt;br&gt;
      /       \&lt;br&gt;
    YES        NO&lt;br&gt;
     ↓          ↓&lt;br&gt;
Llama 3.2    Gemini API&lt;br&gt;
     \          /&lt;br&gt;
      ↓        ↓&lt;br&gt;
       AI Insight&lt;br&gt;
          ↓&lt;br&gt;
         React&lt;/p&gt;

&lt;p&gt;This gives the application the benefits of local AI when possible, while still providing a reliable cloud fallback.&lt;/p&gt;

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

&lt;p&gt;Open innovation is especially important for Healtify because the application deals with personal lifestyle data.&lt;br&gt;
Using a local open-weight model through Ollama means Healtify can process AI insights locally without requiring every piece of lifestyle information to be sent to a cloud AI provider.&lt;br&gt;
This gives the project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Greater control over data processing&lt;/li&gt;
&lt;li&gt;Local AI inference&lt;/li&gt;
&lt;li&gt;Reduced dependency on a single cloud provider&lt;/li&gt;
&lt;li&gt;The ability to experiment with different models&lt;/li&gt;
&lt;li&gt;A path toward more privacy-focused deployments&lt;/li&gt;
&lt;li&gt;The ability to run the AI layer without a constant internet connection
The project also demonstrates that an AI-powered application does not necessarily need to send every request to a proprietary cloud model.
Llama 3.2 via Ollama handles the primary AI workload locally, while Gemini provides a fallback when local inference isn't available.
More importantly, Healtify doesn't use AI for everything.
The application itself controls:&lt;/li&gt;
&lt;li&gt;Habit tracking&lt;/li&gt;
&lt;li&gt;Data storage&lt;/li&gt;
&lt;li&gt;Score calculation&lt;/li&gt;
&lt;li&gt;Category scoring&lt;/li&gt;
&lt;li&gt;Habit Balance&lt;/li&gt;
&lt;li&gt;Goals&lt;/li&gt;
&lt;li&gt;Historical trends
The AI simply helps the user understand the patterns in their own data.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;Render: Deployed and hosted as a live full-stack Web Service on Render with automated builds and environment variable management.&lt;/li&gt;
&lt;li&gt;Gemma:Open-weight AI storytelling powered by Llama 3.2 via Ollama (with gemini cloud fallback).&lt;/li&gt;
&lt;li&gt;MongoDB:as a database&lt;/li&gt;
&lt;/ul&gt;

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