Talk. Track. Heal. Grow.
Your 24/7 mental wellness partner β combining a high-fidelity Claude 3.5 Sonnet AI companion, mood analytics, guided meditation, clinical assessments, and real-time community support in a single privacy-first platform.
β οΈ MindMate is a wellness support tool β not a substitute for professional medical care. If you are in crisis, please call iCall: 9152987821 or Vandrevala Foundation: 1860-2662-345 (India) immediately.
- Overview
- Features
- Tech Stack
- Project Structure
- Getting Started
- Environment Variables
- Roadmap
- Contributing
- Security & Privacy
- License
Mental wellness tools are often fragmented, expensive, or culturally disconnected. MindMate is built to fix that.
It combines an Emotionally Intelligent AI powered by Claude 3.5 Sonnet, a mood tracking engine with longitudinal insights, a guided meditation library with real audio, validated clinical screenings (PHQ-9, GAD-7), and a CBT journaling tool β all wrapped in a privacy-first architecture with Supabase Row Level Security at its core.
MindMate is designed for students and young adults to build resilience and manage mental health in a safe, judgment-free space.
The goal of MindMate is not to keep you on the app.
It's to help you build enough resilience that you need it less.
- High-Fidelity Intelligence: Conversations powered by OpenRouter (Claude 3.5 Sonnet) with a Groq (Llama 3) fallback layer for 100% uptime.
- Context-aware persistence: AI remembers your history and references previous conversations to provide tailored support.
- Mood-aware responses: AI factors in your recent emotional patterns and assessments before responding.
- Deterministic crisis detection: Hardcoded safety layer for crisis indicators, bypassing LLM logic for instant emergency resource routing.
- Daily Check-ins: Log moods with activity correlation tags.
- Visual Analytics: 7-day and 30-day interactive charts powered by Recharts.
- Smart Insights: Automated patterns detection linking activities to emotional states.
- Guided Breathing: Interactive animations for Box Breathing, 4-7-8, and more.
- Audio Sessions: Real, high-quality audio sessions for Sleep, Meditation, and Nature Sounds.
- CBT Journaling: Structured cognitive reframing tool to help challenge negative thought patterns.
- PHQ-9 & GAD-7: Validated clinical assessments with automated scoring and historical tracking.
- Progress Export: Generate PDF clinical summaries of your progress to share with therapists.
- Supabase RLS: Row Level Security ensures only you can access your data.
- No Data Training: Your personal conversations are never used to train AI models.
- Secure Auth: Industry-standard Google OAuth and Email/Password integration.
| Layer | Technology |
|---|---|
| Framework | Next.js 14 (App Router) |
| Language | TypeScript 5 |
| Styling | Emotion/Styled Components + Tailwind CSS |
| Animations | GSAP + Framer Motion |
| Backend & DB | Supabase (Postgres + Auth + Realtime) |
| AI / LLM | OpenRouter (Claude 3.5 Sonnet) / Groq Llama 3 |
| Charts | Recharts |
| PWA | Next-PWA for offline and mobile installation |
| Deployment | Vercel |
MindMate/
β
βββ mindmate-next/ # β
Active codebase (Next.js 14)
β βββ app/ # App Router β pages and API routes
β β βββ chat/ # AI companion ( Claude 3.5 Sonnet)
β β βββ mood/ # Mood tracking & Recharts dashboard
β β βββ relax/ # Meditation library with Audio
β β βββ learn/ # Content library + CBT journal
β β βββ assessments/ # PHQ-9 and GAD-7
β β βββ api/ # AI & Database Proxy routes
β βββ components/ # Styled Components library
β βββ lib/ # Supabase & OpenRouter/Groq clients
β βββ theme/ # Design system tokens
β
βββ legacy-v1/ # π¦ Archived vanilla prototype
βββ SECURITY.md # RLS policy documentation
βββ README.md # You are here
- Node.js 18+
- npm or yarn
- A Supabase account
- An OpenRouter or Groq API key
git clone https://github.com/RandomAssassin-rgb/MindMate.git
cd MindMate/mindmate-next
npm installcp .env.example .env.localApply the SQL migration scripts found in the root directory via the Supabase SQL Editor:
supabase_forum_posts.sqlsupabase_cbt_journal.sqlsupabase_assessments.sqlsupabase_chat_history.sql
npm run dev# Supabase
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_key
# AI Providers
OPENROUTER_API_KEY=your_openrouter_key
GROQ_API_KEY=your_groq_key
# App Settings
NEXT_PUBLIC_APP_URL=http://localhost:3000- AI companion with Claude 3.5 Sonnet
- Persistent chat history (Supabase)
- Mood tracking with Recharts
- Meditation library with actual Audio
- Clinical Assessments (PHQ-9/GAD-7)
- CBT Journaling Tool
- Mobile PWA Support
- Community Forum Feed
- Voice journaling with Whisper transcription
- Weekly Insight Report email delivery
- Therapist marketplace integration
- Multilingual support (Tamil, Hindi, Telugu)
MIT License β see LICENSE for details.
Built with care for mental wellness πΏ