A comprehensive mental health platform for mood tracking, community support, and AI-powered wellness recommendations.
- Frontend (Next.js): MindMate Frontend
- Backend API (FastAPI): MindMate API
- Demo Video: MindMate Demo
- Smart Mood Tracking β Visual analytics with weekly/monthly trends and interactive heatmaps
- AI-Powered Chatbot β Context-aware conversations with text & voice support
- Safe Community Hub β Moderated posts, comments, and reactions with real-time safety checks
- Wellness Toolkit β Guided breathing exercises, meditation sessions, and journaling prompts
- Content Moderation β AI-powered toxicity detection before posting
- Secure Authentication β Supabase-powered user management
- Privacy First β Anonymous posting options and data protection
- Personalized Dashboard β AI recommendations based on mood patterns
- Voice Integration β Speech-to-text messaging with audio playback
- Real-time Analytics β Interactive charts and mood visualization
- Mobile-Optimized β Responsive design for all devices
| π¨ Frontend | βοΈ Backend | ποΈ Database | π€ AI/ML |
|---|---|---|---|
|
Next.js 15 React 18 TypeScript Tailwind CSS Recharts |
FastAPI Python 3.11+ SQLModel Alembic Uvicorn |
PostgreSQL 15 Supabase Redis Cache Real-time sync |
Google Gemini Hugging Face OpenAI Whisper Content Moderation |
- Python 3.11+
- Node.js 18+
- PostgreSQL 15+
- Git
git clone https://github.com/yourusername/MindMate.git
cd MindMateSUPABASE_URL="https://<your-supabase-project>.supabase.co"
SUPABASE_KEY="<your-supabase-key>"
HF_API_KEY=<your-huggingface-key>
GEMINI_API_KEY=<your-gemini-key>NEXT_PUBLIC_SUPABASE_URL=https://<your-supabase-project>.supabase.co
NEXT_PUBLIC_SUPABASE_KEY=<your-supabase-key>
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000cd backend
python -m venv env
env\Scripts\activate # Windows
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000cd frontend
npm install
npm run devMindMate/
βββ frontend/ # Next.js Frontend
β βββ app/ # App Router Pages
β βββ components/ # Reusable Components
β βββ lib/ # API Service Layer
β βββ public/ # Static Assets
βββ backend/ # FastAPI Backend
β βββ app/ # Source Code
β β βββ api/ # API Endpoints
β β βββ models/ # Database Models
β β βββ services/ # Business Logic
β β βββ core/ # Config & Utilities
β βββ alembic/ # DB Migrations
β βββ requirements.txt
βββ ScreenShot/ # Screenshots
βββ README.md
| π Endpoint | π Method | π Description | π Features |
|---|---|---|---|
/peer |
POST | Submit anonymous community post | AI moderation, toxicity detection |
/mood |
POST | Log daily mood entry | Emoji, text, slider input methods |
/mood/history |
GET | Retrieve mood analytics | Weekly/monthly trends, heatmaps |
/comment |
POST | Add moderated comment | Real-time safety checks |
/chat |
POST | Send AI chatbot message | Context-aware, Gemini-powered |
/chat/voice |
POST | Voice message transcription | Speech-to-text, AI response |
- Content Moderation: All posts and comments filtered through AI toxicity detection
- Rate Limiting: API endpoint protection against abuse
- Authentication: Secure user sessions via Supabase
- Data Validation: Input sanitization and validation on all endpoints
| π― Category | π€ Model/API | π Purpose | π Link |
|---|---|---|---|
| Primary AI | Google Gemini API | Main conversational AI for intelligent responses | π Gemini |
| Content Moderation | unitary/toxic-bert | Toxicity detection | π HF |
| Hate-speech-CNERG/bert-base-uncased-hate-speech | Hate speech classification | π HF | |
| Hate-speech-CNERG/dehatebert-mono-english | Advanced hate speech detection | π HF | |
| cointegrated/rubert-toxic-pikabu | Multilingual toxicity detection | π HF | |
| Sentiment Analysis | distilroberta-base | General sentiment classification | π HF |
| cardiffnlp/twitter-roberta-base-sentiment | Social media sentiment analysis | π HF | |
| finiteautomata/bertweet-base-sentiment-analysis | Tweet sentiment classification | π HF | |
| Fallback Chatbots | tiiuae/falcon-7b-instruct | Instruction-following conversations | π HF |
| facebook/blenderbot-3B | Open-domain conversations | π HF | |
| gpt2 | General text generation | π HF | |
| Voice Processing | openai/whisper-large-v3-turbo | Speech-to-text transcription | π HF |
- Multi-layer Moderation: Content passes through multiple toxicity detection models
- Real-time Processing: Instant safety checks before posting
- Adaptive Learning: Models continuously improve based on community feedback
- Fallback Systems: Multiple AI models ensure service reliability
If you find MindMate helpful, please consider:
β Star the repository | π΄ Fork the project | π’ Share with others | π€ Contribute code
Built with β€οΈ for mental health and wellbeing
Making mental health support simple, safe, and beautiful
β Star the repository | π΄ Fork the project | π’ Share with others | π€ Contribute code
Built with β€οΈ for mental health and wellbeing
Making mental health support simple, safe, and beautiful







