A production-ready mental wellness platform for students with enterprise-grade security, privacy-first architecture, and premium UI/UX design.
- Overview
- Quick Start
- Features
- Tech Stack
- Project Structure
- Setup Guide
- Deployment
- Documentation
- Contributing
MindBridge is a comprehensive mental health support platform designed specifically for students. It combines AI-powered companionship, mood tracking, dream analysis, and peer support in a secure, privacy-first environment.
- β Privacy-First: On-device processing, encrypted data, GDPR/CCPA compliant
- β Crisis-Aware: Multi-level crisis detection with automatic escalation
- β AI-Powered: GPT-4 chatbot with contextual emotional support
- β Peer Support: Anonymous peer matching with E2E encryption
- β Beautiful UI: Premium design with smooth animations and accessibility
- β Multi-Language: Support for 6 Indian languages
- Node.js 18+ and pnpm installed
- Clerk account (for authentication) - Sign up here
- Convex account (optional, for backend) - Sign up here
# Clone the repository
git clone https://github.com/SrivarsanK/MindBridge.git
cd MindBridge
# Install dependencies
pnpm installOption 1: Quick Preview (No Setup Required)
pnpm devVisit http://localhost:3000 - The app will work with guest mode and mock data.
Option 2: Full Setup (With Authentication)
- Create
.env.localfile in the root directory - Add your Clerk API keys (see Setup Guide)
- Run the development server:
pnpm dev| Feature | Description | Status |
|---|---|---|
| AI Companion | 24/7 GPT-4 powered emotional support chatbot | β Ready |
| Crisis Detection | Multi-level crisis detection with auto-escalation | β Ready |
| Dream Analysis | Emotional pattern recognition from dream journals | β Ready |
| Peer Matching | Anonymous peer-to-peer support connections | β Ready |
| Mood Tracking | Daily mood check-ins with visualization | β Ready |
| Quick Relief | Breathing exercises and grounding techniques | β Ready |
- On-Device Processing: Sensitive data encrypted before storage
- End-to-End Encryption: Peer messages fully encrypted
- GDPR/CCPA Compliant: Data export, deletion, and retention controls
- Role-Based Access: Student, moderator, and crisis responder roles
- Audit Logging: Comprehensive activity tracking
- Anonymous Mode: Optional pseudonym generation
Supports 6 languages:
- English (India) -
en-IN - Hindi -
hi - Bengali -
bn - Tamil -
ta - Telugu -
te - Marathi -
mr
- Framework: Next.js 15 (App Router)
- Language: TypeScript 5
- UI Library: Radix UI + shadcn/ui
- Styling: Tailwind CSS 4
- Icons: Lucide React
- Charts: Recharts
- Authentication: Clerk
- Database: Convex (Real-time serverless)
- AI: OpenAI GPT-4
- Package Manager: pnpm
- Linting: ESLint
- Deployment: Vercel
MindBridge/
βββ app/ # Next.js App Router
β βββ (marketing)/ # Public pages
β β βββ page.tsx # Landing page
β βββ dashboard/ # Protected dashboard
β β βββ page.tsx # Main dashboard
β βββ login/ # Authentication
β β βββ page.tsx # Login page
β βββ onboarding/ # 4-step onboarding
β β βββ step-1/ # Privacy consent
β β βββ step-2/ # Language selection
β β βββ step-3/ # Initial mood
β β βββ step-4/ # Feature tour
β βββ layout.tsx # Root layout
β βββ globals.css # Global styles
β
βββ components/ # React components
β βββ dashboard/ # Dashboard feature cards
β β βββ ai-companion-card.tsx
β β βββ daily-checkin-card.tsx
β β βββ dream-analysis-card.tsx
β β βββ micro-interventions-card.tsx
β β βββ peer-matching-card.tsx
β βββ ui/ # Reusable UI components
β βββ emergency-support-bar.tsx # Crisis hotline bar
β
βββ convex/ # Convex backend
β βββ schema.ts # Database schema (15 tables)
β βββ chatbot.ts # AI chatbot logic
β βββ crisis.ts # Crisis detection
β βββ peerMatching.ts # Peer algorithm
β βββ dreamAnalysis.ts # Dream patterns
β βββ privacy.ts # GDPR compliance
β
βββ lib/ # Utility functions
β βββ utils.ts # Helper functions
β βββ emergency.ts # Crisis hotlines
β
βββ middleware.ts # Clerk auth middleware
βββ .env.local # Environment variables
βββ README.md # This file
git clone https://github.com/SrivarsanK/MindBridge.git
cd MindBridge
pnpm install- Go to clerk.com and sign up
- Create a new application
- Go to API Keys in the dashboard
- Copy your keys and add them to
.env.local:
# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_your_publishable_key_here
CLERK_SECRET_KEY=sk_test_your_secret_key_here
# Clerk URLs
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/login
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/login
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/onboarding/step-1- Go to convex.dev and sign up
- Install Convex CLI:
npx convex dev- Follow the prompts to create a deployment
- Add the generated URLs to
.env.local:
# Convex Backend
CONVEX_DEPLOYMENT=dev:your-deployment-name
NEXT_PUBLIC_CONVEX_URL=https://your-deployment.convex.cloudFor AI chatbot functionality:
# OpenAI API
CONVEX_OPENAI_API_KEY=sk-your-openai-api-key-here# Development mode
pnpm dev
# Production build
pnpm build
pnpm start-
Push to GitHub
git add . git commit -m "Ready for deployment" git push origin main
-
Import to Vercel
- Go to vercel.com
- Click "New Project"
- Import your GitHub repository
- Vercel will auto-detect Next.js
-
Add Environment Variables
- Go to Project Settings β Environment Variables
- Add all variables from
.env.local - Deploy!
npx convex deployUpdate your Vercel environment variables with the production Convex URL.
- Update Clerk keys to production keys
- Deploy Convex backend to production
- Configure Clerk production URLs
- Test all authentication flows
- Verify crisis detection works
- Test GDPR data export
- Enable rate limiting
- Set up monitoring and analytics
| Document | Description |
|---|---|
| QUICK_START.md | Quick reference guide |
| BACKEND_INTEGRATION_GUIDE.md | Full backend setup instructions |
| WARP.md | Development guide for AI agents |
| Clerk Docs | Authentication documentation |
| Convex Docs | Backend database documentation |
MindBridge includes built-in crisis support with Indian mental health hotlines:
- Tele-MANAS: 14416 / 1800-891-4416
- KIRAN: 1800-599-0019
These are always visible in the emergency support bar at the bottom of the app.
We welcome contributions! This is a mental health platform, so please:
- Follow best practices: Accessibility, privacy, and security
- Test thoroughly: Especially crisis detection features
- Maintain sensitivity: Handle mental health topics with care
- Document changes: Update README and comments
# Fork the repository
# Create a feature branch
git checkout -b feature/your-feature-name
# Make changes and test
pnpm dev
# Build and verify
pnpm build
# Commit and push
git commit -m "Add your feature"
git push origin feature/your-feature-name
# Create a pull requestMIT License - See LICENSE for details
- OpenAI - GPT-4 API for AI companionship
- Convex - Real-time serverless database
- Clerk - Authentication infrastructure
- Radix UI - Accessible component primitives
- Vercel - Deployment and hosting
- v0.app - Initial UI generation
- All contributors and mental health advocates
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@mindbridge.app
Built with β€οΈ for student mental health
π MindBridge - Privacy-First Mental Wellness Platform