A comprehensive health monitoring and mood analysis application that leverages AI to provide personalized insights based on biometric data. MoodSync combines real-time health metrics tracking with intelligent mood analysis and an AI-powered chat companion.
!(https://mind-meld-lakshmisravyave.replit.app)
- Real-time Metrics: Track heart rate, sleep duration, daily steps, and stress levels
- Device Integration: Ready for Apple Watch, Fitbit, and other wearable devices
- Automatic Data Generation: Simulated health data with realistic patterns
- Smart Detection: Analyze mood from biometric data using GPT-4o
- Pattern Recognition: Identify emotional trends and correlations
- Confidence Scoring: AI provides confidence levels for mood assessments
- Interactive Timeline: View mood patterns over 7 days, 30 days, or 3 months
- Color-Coded Moods: Visual representation with distinct colors for each emotional state
- Health Correlations: See how physical metrics impact emotional well-being
- 24/7 Support: Intelligent chat companion for mental wellness guidance
- Personalized Advice: Context-aware recommendations based on your data
- Quick Actions: Breathing exercises, walking motivation, and calming music suggestions
- Pattern Detection: AI identifies trends in your health and mood data
- Recommendations: Personalized suggestions for improving well-being
- Alerts: Proactive notifications for concerning patterns
- React 18 with TypeScript
- Tailwind CSS for styling
- shadcn/ui component library
- Recharts for data visualization
- TanStack Query for state management
- Wouter for routing
- Node.js with Express
- TypeScript for type safety
- OpenAI GPT-4o for AI features
- PostgreSQL with Drizzle ORM
- In-memory storage for development
- Vite for build tooling
- ESBuild for fast compilation
- Replit for deployment and hosting
- Node.js 20 or higher
- OpenAI API key
- PostgreSQL database (optional for production)
-
Clone the repository
git clone https://github.com/yourusername/moodsync.git cd moodsync -
Install dependencies
npm install
-
Set up environment variables
cp .env.example .env
Add your OpenAI API key:
OPENAI_API_KEY=sk-your-openai-api-key-here -
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:5000
GET /api/health/metrics- Fetch health metricsGET /api/health/metrics/latest- Get latest health readingPOST /api/health/simulate- Generate new simulated data
GET /api/mood/current- Get current mood analysisGET /api/mood/entries- Fetch mood historyPOST /api/mood/analyze- Analyze mood from health dataGET /api/mood/correlations- Get health-mood correlations
GET /api/chat/messages- Fetch chat historyPOST /api/chat/messages- Send message to AI companion
GET /api/insights- Get AI-generated insightsPOST /api/insights/generate- Generate new insights
MoodSync recognizes five primary emotional states:
| Mood | Color | Description |
|---|---|---|
| π Happy | Green | Positive, energetic, optimistic |
| π Calm | Blue | Relaxed, peaceful, centered |
| π Neutral | Yellow | Balanced, stable, neither positive nor negative |
| π° Stressed | Red | Anxious, tense, overwhelmed |
| π’ Sad | Purple | Low energy, melancholic, withdrawn |
MoodSync is designed to work with popular health devices:
- Apple Watch: Heart rate, activity, sleep data
- Fitbit: Steps, heart rate, sleep tracking
- Smartphone: Basic activity and sleep patterns
- Manual Entry: Users can input data manually
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- All health data is processed locally or through secure APIs
- OpenAI integration follows privacy best practices
- No personal health data is stored permanently without consent
- All API communications are encrypted
For support, questions, or feature requests:
- π§ Email: lakshmisravya.vedantham@gmail.com
- π Issues: GitHub Issues
- Mobile app for iOS and Android
- Real device integration APIs
- Advanced analytics and reporting
- Social features and mood sharing
- Integration with healthcare providers
- Wearable device SDK
Built with β€οΈ for better mental health and wellness awareness.