Skip to content

Abs-Futy7/MindMate

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 MindMate β€” Modern Mental Health Companion

MindMate Logo
A comprehensive mental health platform for mood tracking, community support, and AI-powered wellness recommendations.

Next.js FastAPI TypeScript Supabase PostgreSQL Hugging Face


πŸš€ Live Demo


πŸ“Έ Features & Screenshots


Landing Page

Dashboard
Recommendations, heatmap, mood tracking graph

Mood Tracking
Log daily moods, view trends, heatmaps, and stats

AI Chatbot
Context-aware, text & voice, Markdown rendering

Self-Help Toolkit
Breathing, meditation, journaling

Community Posts
Share, comment, react - all content safety-checked

Comments & Moderation
Safety checks before posting, error feedback

User Profile
Manage profile, sign out securely

✨ Key Features

🎯 Core Functionality

  • 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

πŸ”’ Security & Safety

  • Content Moderation β€” AI-powered toxicity detection before posting
  • Secure Authentication β€” Supabase-powered user management
  • Privacy First β€” Anonymous posting options and data protection

πŸ’‘ Smart Features

  • 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

🧱 Technology Stack

🎨 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

⚑ Getting Started

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • PostgreSQL 15+
  • Git

Setup

git clone https://github.com/yourusername/MindMate.git
cd MindMate

Backend (.env)

SUPABASE_URL="https://<your-supabase-project>.supabase.co"
SUPABASE_KEY="<your-supabase-key>"
HF_API_KEY=<your-huggingface-key>
GEMINI_API_KEY=<your-gemini-key>

Frontend (.env)

NEXT_PUBLIC_SUPABASE_URL=https://<your-supabase-project>.supabase.co
NEXT_PUBLIC_SUPABASE_KEY=<your-supabase-key>
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000

Backend Setup

cd 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 8000

Frontend Setup

cd frontend
npm install
npm run dev

πŸ“ Project Structure

MindMate/
β”œβ”€β”€ 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

πŸ”— API Endpoints

🌐 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

πŸ›‘οΈ Security Features

  • 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

πŸ€– AI Models & APIs

🎯 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

πŸ›‘οΈ AI Safety Pipeline

  • 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

πŸ‘₯ Team


H.M. Mehedi Hasan
Backend Developer

Abu Bakar Siddique
Frontend Developer

Shafahid
Database Developer

🌟 Show Your Support

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

About

Hackathon project of our team DU_Apricot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 88.0%
  • Python 9.8%
  • CSS 2.2%