Next-gen wellness platform combining specialized LLMs with dynamic UI to deliver hyper-personalized fitness guidance, OCR integrations, and autonomous browser agents for medical tracking.
16
stars
55
commits
TypeScript
primary language
Apr 27, 2026
updated

AI-Powered Health & Fitness Companion App
HealthGuard AI is a comprehensive health and fitness Android application powered by multiple AI models. It provides intelligent health chat, fitness tracking, medicine price comparison, drug interaction checking, and smart health monitoring - all in one app.
Download the latest release: app-release.apk
This build includes the latest Android-first fixes and feature additions:
google-services.json support./api/transcribe, and falls back to Groq Whisper in-app if the backend transcription route fails.Sensitive files such as .env, .env.local, and backend/.env are intentionally ignored and must not be committed.
| Technology | Version | Purpose |
|---|---|---|
| React | 19.2.3 | UI library for building user interfaces |
| TypeScript | 5.8.2 | Type-safe JavaScript development |
| Vite | 6.2.0 | Fast build tool and development server |
| React Router DOM | 7.13.0 | Client-side routing |
| Tailwind CSS | - | Utility-first CSS framework |
| Framer Motion | 12.38.0 | Animation library for React |
| Lucide React | 0.562.0 | Beautiful icon library |
| Technology | Version | Purpose |
|---|---|---|
| Capacitor | 8.1.0 | Native Android app wrapper |
| Capacitor Android | 8.1.0 | Android platform support |
| Capacitor Firebase Authentication | 8.1.0 | Native Google Sign-In |
| Capacitor Geolocation | 8.1.0 | GPS location access |
| Capacitor Google Maps | 8.0.1 | Native Google Maps integration |
| Technology | Version | Purpose |
|---|---|---|
| Google Gemini AI | 1.38.0 | Primary AI model for health chat |
| Google Generative AI | 0.24.1 | Gemini API integration |
| Groq SDK | 0.37.0 | Fast LLM inference for quick responses |
| LangChain | 0.3.26 | LLM orchestration framework |
| LangGraph | 0.2.36 | Stateful multi-agent workflows |
| LangChain Google GenAI | 0.1.8 | Gemini integration for LangChain |
┌─────────────────────────────────────────────────────────┐
│ HealthGuard AI │
├─────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Fast Mode │ │Standard Mode│ │Deep Think │ │
│ │ (Groq) │ │ (Gemini) │ │ (Gemini) │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
│ │ │ │ │
│ └──────────────────┼───────────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ LangGraph │ │
│ │ (State Machine)│ │
│ └────────┬────────┘ │
│ │ │
│ ┌──────────────────┼──────────────────┐ │
│ │ │ │ │
│ ┌──────▼──────┐ ┌─────▼─────┐ ┌──────▼──────┐ │
│ │ Clinical │ │ Vitals │ │ Medicine │ │
│ │ Graph │ │ RAG │ │ Search │ │
│ │ Agent │ │ System │ │ Agent │ │
│ └─────────────┘ └───────────┘ └─────────────┘ │
│ │
└─────────────────────────────────────────────────────────┘
| Technology | Version | Purpose |
|---|---|---|
| Python Flask | Latest | REST API server |
| Flask-CORS | Latest | Cross-origin resource sharing |
| MongoDB | - | Chat history and user data storage |
| PyMongo | Latest | MongoDB driver for Python |
| Gunicorn | Latest | Production WSGI server |
| Python-Dotenv | Latest | Environment variable management |
| Service | Purpose |
|---|---|
| Medicine Price Search | SerpAPI integration for price comparison |
| Exercise Database | 2000+ local exercises with GIF support |
| Workout Generator | Groq LLM for personalized workout plans |
| Drug Interaction Checker | OpenRouter AI for drug interaction analysis |
| Chat History | MongoDB for persistent chat storage |
| Stripe Integration | Payment processing (removed for free version) |
| Twilio WhatsApp | WhatsApp notification service |
| Resend Email | Backend email delivery for reminder workflows |
| Groq Whisper | Audio transcription for chat voice input |
| API | Purpose |
|---|---|
| Google Gemini | Primary AI model for health chat |
| Groq | Fast inference for quick responses |
| OpenRouter | Drug interaction analysis |
| SerpAPI | Medicine price search across platforms |
| Firebase | Authentication (Google Sign-In) |
| Google Maps | Nearby pharmacy location |
| Twilio | WhatsApp notifications |
| Groq Whisper | Voice transcription |
| MongoDB Atlas | Cloud database for chat storage |
| Technology | Version | Purpose |
|---|---|---|
| Leaflet | 1.9.4 | Interactive maps library |
| React Leaflet | 5.0.0 | React wrapper for Leaflet |
| Google Maps API | 2.20.8 | Google Maps React component |
| Technology | Version | Purpose |
|---|---|---|
| jsPDF | 4.1.0 | PDF document generation |
| jsPDF AutoTable | 5.0.7 | Table generation in PDFs |
| Technology | Version | Purpose |
|---|---|---|
| React Markdown | 9.0.1 | Render markdown in React |
| Rehype Raw | 7.0.0 | Parse raw HTML in markdown |
| Remark GFM | 4.0.1 | GitHub Flavored Markdown support |
| Technology | Version | Purpose |
|---|---|---|
| Resend | API | Email sending from backend |
| React Body Highlighter | 2.0.5 | Body muscle highlighting for exercises |
HealthGuard-AI/
├── android/ # Android native code (Capacitor)
│ ├── app/
│ │ ├── src/main/res/ # App icons, resources
│ │ └── build.gradle # Android build config
├── backend/ # Python Flask backend
│ ├── server.py # Main API server
│ ├── agent_browser.py # Medicine search agent
│ ├── playwright_order_agent.py # Auto-order agent
│ └── data/exercises.json # 2000+ exercises database
├── components/ # React UI components
│ ├── TextChatInterface.tsx # AI chat interface
│ ├── FitnessPanel.tsx # Fitness hub
│ ├── HealthDashboard.tsx # Health tracking
│ ├── DrugInteractionChecker.tsx # Drug checker
│ ├── MedicinePriceCard.tsx # Medicine prices
│ ├── NearbyPharmacyMap.tsx # Pharmacy map
│ └── ...
├── src/
│ ├── agents/ # LangGraph agents
│ │ ├── clinicalGraph.ts # Clinical conversation graph
│ │ ├── medicalKnowledgePrompts.ts # Medical prompts
│ │ └── patientSession.ts # Session management
│ ├── services/ # Frontend services
│ │ ├── firebaseAuth.ts # Authentication
│ │ └── serverHealth.ts # Server monitoring
│ ├── pages/ # App pages
│ │ ├── Dashboard.tsx # Main dashboard
│ │ ├── AuthPage.tsx # Login/Signup
│ │ └── LandingPage.tsx # Landing page
│ └── lib/ # Utilities
├── services/ # Shared services
│ ├── geminiService.ts # Gemini AI integration
│ ├── groqService.ts # Groq AI integration
│ └── vitalsRAG.ts # RAG system for vitals
└── package.json # Frontend dependencies
┌──────────────────────────────────────────────────────┐
│ RAG Pipeline │
├──────────────────────────────────────────────────────┤
│ │
│ 1. User enters vitals (BP, sugar, weight, etc.) │
│ │ │
│ ▼ │
│ 2. Vitals stored in localStorage │
│ │ │
│ ▼ │
│ 3. VitalsRAG analyzes: │
│ - Trend analysis (improving/worsening) │
│ - Abnormal value detection │
│ - Severity classification │
│ │ │
│ ▼ │
│ 4. Context string generated: │
│ "User has elevated BP (150/95), trending worse" │
│ │ │
│ ▼ │
│ 5. Context injected into ALL AI model prompts │
│ │ │
│ ▼ │
│ 6. AI responds with health-aware context │
│ │
└──────────────────────────────────────────────────────┘



MIT License
Utkarsh Rana
Made with AI & React
55 commits
TypeScript
63.4%
Python
28.3%
HTML
7.7%
Next-gen wellness platform combining specialized LLMs with dynamic UI to deliver hyper-personalized fitness guidance, OCR integrations, and autonomous browser agents for medical tracking.
16
stars
55
commits
TypeScript
primary language
Apr 27, 2026
updated

AI-Powered Health & Fitness Companion App
HealthGuard AI is a comprehensive health and fitness Android application powered by multiple AI models. It provides intelligent health chat, fitness tracking, medicine price comparison, drug interaction checking, and smart health monitoring - all in one app.
Download the latest release: app-release.apk
This build includes the latest Android-first fixes and feature additions:
google-services.json support./api/transcribe, and falls back to Groq Whisper in-app if the backend transcription route fails.Sensitive files such as .env, .env.local, and backend/.env are intentionally ignored and must not be committed.
| Technology | Version | Purpose |
|---|---|---|
| React | 19.2.3 | UI library for building user interfaces |
| TypeScript | 5.8.2 | Type-safe JavaScript development |
| Vite | 6.2.0 | Fast build tool and development server |
| React Router DOM | 7.13.0 | Client-side routing |
| Tailwind CSS | - | Utility-first CSS framework |
| Framer Motion | 12.38.0 | Animation library for React |
| Lucide React | 0.562.0 | Beautiful icon library |
| Technology | Version | Purpose |
|---|---|---|
| Capacitor | 8.1.0 | Native Android app wrapper |
| Capacitor Android | 8.1.0 | Android platform support |
| Capacitor Firebase Authentication | 8.1.0 | Native Google Sign-In |
| Capacitor Geolocation | 8.1.0 | GPS location access |
| Capacitor Google Maps | 8.0.1 | Native Google Maps integration |
| Technology | Version | Purpose |
|---|---|---|
| Google Gemini AI | 1.38.0 | Primary AI model for health chat |
| Google Generative AI | 0.24.1 | Gemini API integration |
| Groq SDK | 0.37.0 | Fast LLM inference for quick responses |
| LangChain | 0.3.26 | LLM orchestration framework |
| LangGraph | 0.2.36 | Stateful multi-agent workflows |
| LangChain Google GenAI | 0.1.8 | Gemini integration for LangChain |
┌─────────────────────────────────────────────────────────┐
│ HealthGuard AI │
├─────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Fast Mode │ │Standard Mode│ │Deep Think │ │
│ │ (Groq) │ │ (Gemini) │ │ (Gemini) │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
│ │ │ │ │
│ └──────────────────┼───────────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ LangGraph │ │
│ │ (State Machine)│ │
│ └────────┬────────┘ │
│ │ │
│ ┌──────────────────┼──────────────────┐ │
│ │ │ │ │
│ ┌──────▼──────┐ ┌─────▼─────┐ ┌──────▼──────┐ │
│ │ Clinical │ │ Vitals │ │ Medicine │ │
│ │ Graph │ │ RAG │ │ Search │ │
│ │ Agent │ │ System │ │ Agent │ │
│ └─────────────┘ └───────────┘ └─────────────┘ │
│ │
└─────────────────────────────────────────────────────────┘
| Technology | Version | Purpose |
|---|---|---|
| Python Flask | Latest | REST API server |
| Flask-CORS | Latest | Cross-origin resource sharing |
| MongoDB | - | Chat history and user data storage |
| PyMongo | Latest | MongoDB driver for Python |
| Gunicorn | Latest | Production WSGI server |
| Python-Dotenv | Latest | Environment variable management |
| Service | Purpose |
|---|---|
| Medicine Price Search | SerpAPI integration for price comparison |
| Exercise Database | 2000+ local exercises with GIF support |
| Workout Generator | Groq LLM for personalized workout plans |
| Drug Interaction Checker | OpenRouter AI for drug interaction analysis |
| Chat History | MongoDB for persistent chat storage |
| Stripe Integration | Payment processing (removed for free version) |
| Twilio WhatsApp | WhatsApp notification service |
| Resend Email | Backend email delivery for reminder workflows |
| Groq Whisper | Audio transcription for chat voice input |
| API | Purpose |
|---|---|
| Google Gemini | Primary AI model for health chat |
| Groq | Fast inference for quick responses |
| OpenRouter | Drug interaction analysis |
| SerpAPI | Medicine price search across platforms |
| Firebase | Authentication (Google Sign-In) |
| Google Maps | Nearby pharmacy location |
| Twilio | WhatsApp notifications |
| Groq Whisper | Voice transcription |
| MongoDB Atlas | Cloud database for chat storage |
| Technology | Version | Purpose |
|---|---|---|
| Leaflet | 1.9.4 | Interactive maps library |
| React Leaflet | 5.0.0 | React wrapper for Leaflet |
| Google Maps API | 2.20.8 | Google Maps React component |
| Technology | Version | Purpose |
|---|---|---|
| jsPDF | 4.1.0 | PDF document generation |
| jsPDF AutoTable | 5.0.7 | Table generation in PDFs |
| Technology | Version | Purpose |
|---|---|---|
| React Markdown | 9.0.1 | Render markdown in React |
| Rehype Raw | 7.0.0 | Parse raw HTML in markdown |
| Remark GFM | 4.0.1 | GitHub Flavored Markdown support |
| Technology | Version | Purpose |
|---|---|---|
| Resend | API | Email sending from backend |
| React Body Highlighter | 2.0.5 | Body muscle highlighting for exercises |
HealthGuard-AI/
├── android/ # Android native code (Capacitor)
│ ├── app/
│ │ ├── src/main/res/ # App icons, resources
│ │ └── build.gradle # Android build config
├── backend/ # Python Flask backend
│ ├── server.py # Main API server
│ ├── agent_browser.py # Medicine search agent
│ ├── playwright_order_agent.py # Auto-order agent
│ └── data/exercises.json # 2000+ exercises database
├── components/ # React UI components
│ ├── TextChatInterface.tsx # AI chat interface
│ ├── FitnessPanel.tsx # Fitness hub
│ ├── HealthDashboard.tsx # Health tracking
│ ├── DrugInteractionChecker.tsx # Drug checker
│ ├── MedicinePriceCard.tsx # Medicine prices
│ ├── NearbyPharmacyMap.tsx # Pharmacy map
│ └── ...
├── src/
│ ├── agents/ # LangGraph agents
│ │ ├── clinicalGraph.ts # Clinical conversation graph
│ │ ├── medicalKnowledgePrompts.ts # Medical prompts
│ │ └── patientSession.ts # Session management
│ ├── services/ # Frontend services
│ │ ├── firebaseAuth.ts # Authentication
│ │ └── serverHealth.ts # Server monitoring
│ ├── pages/ # App pages
│ │ ├── Dashboard.tsx # Main dashboard
│ │ ├── AuthPage.tsx # Login/Signup
│ │ └── LandingPage.tsx # Landing page
│ └── lib/ # Utilities
├── services/ # Shared services
│ ├── geminiService.ts # Gemini AI integration
│ ├── groqService.ts # Groq AI integration
│ └── vitalsRAG.ts # RAG system for vitals
└── package.json # Frontend dependencies
┌──────────────────────────────────────────────────────┐
│ RAG Pipeline │
├──────────────────────────────────────────────────────┤
│ │
│ 1. User enters vitals (BP, sugar, weight, etc.) │
│ │ │
│ ▼ │
│ 2. Vitals stored in localStorage │
│ │ │
│ ▼ │
│ 3. VitalsRAG analyzes: │
│ - Trend analysis (improving/worsening) │
│ - Abnormal value detection │
│ - Severity classification │
│ │ │
│ ▼ │
│ 4. Context string generated: │
│ "User has elevated BP (150/95), trending worse" │
│ │ │
│ ▼ │
│ 5. Context injected into ALL AI model prompts │
│ │ │
│ ▼ │
│ 6. AI responds with health-aware context │
│ │
└──────────────────────────────────────────────────────┘



MIT License
Utkarsh Rana
Made with AI & React
55 commits
TypeScript
63.4%
Python
28.3%
HTML
7.7%