How s1a2t00/ai_fitness-agent-by-satyam works
Vitalis AI is a health and fitness web app for AI-assisted posture, medical-report, and medication analysis, plus health coaching. Users enter through the React app, select an analysis or send a coaching message, and receive Gemini-generated results through the Node API. Analysis results are held in app state and persisted in browser local storage for dashboard, medication, and history views. The README documents the API boundary and Gemini integration; unsampled view and server code is represented only where that documentation supports the relationship.
Main entry points: App.tsx App routing and state · AnalysisHub.tsx Health analysis · types.ts Health data types · AICoach.tsx AI Coach
Components 15
Application shell
- React entry
index.tsx - App routing and state
App.tsx - Navigation layout
components/Layout.tsx
Health insights
- Health dashboard
views/Dashboard.tsx - Health analysis
views/AnalysisHub.tsx - Medication view
App.tsx - Analysis history
views/HealthHistory.tsx - AI Coach
views/AICoach.tsx
AI services
- API client
services/geminiService.ts - Node API and frontend server
server/index.mjs
Runtime contracts
- Health data types
types.ts - Model and health guidance
constants.ts
Other components
- User
- Gemini API
- Browser local storage
Connections 24
- User → React entry: opens app
README.md - React entry → App routing and state: mounts
index.tsx - App routing and state → Navigation layout: wraps routes
App.tsx - App routing and state → Health dashboard: routes to
App.tsx - App routing and state → Health analysis: routes to
App.tsx - App routing and state → Medication view: renders route
App.tsx - App routing and state → Analysis history: routes to
App.tsx - App routing and state → AI Coach: routes to
App.tsx - App routing and state → Browser local storage: reads and writes
App.tsx - App routing and state → Health dashboard: passes history
App.tsx - App routing and state → Health analysis: handles results
App.tsx - App routing and state → Analysis history: handles deletion
App.tsx - App routing and state → AI Coach: passes history
App.tsx - Health analysis → API client: requests analysis
views/AnalysisHub.tsx - Health analysis → App routing and state: returns result
views/AnalysisHub.tsx - AI Coach → API client: sends chat
views/AICoach.tsx - API client → Node API and frontend server: posts API requests
README.md - Node API and frontend server → Gemini API: generates content
server/index.mjs - Node API and frontend server → Model and health guidance: uses model config
server/index.mjs - App routing and state → Health data types: uses result types
App.tsx - Health analysis → Health data types: uses result types
views/AnalysisHub.tsx - AI Coach → Health data types: uses message types
views/AICoach.tsx - Health dashboard → Health data types: uses result types
views/Dashboard.tsx - Analysis history → Health data types: uses result types
views/HealthHistory.tsx