Recent student mental health survey insights indicate a critical support gap:
- 69% of students feel always or often stressed
- 38% have no one to talk to
- 92% are not using any digital mental health support
- 71.7% cite trust and privacy concerns as the main barrier
Students face academic pressure, anxiety, burnout, relationship stress, and career uncertainty, while existing support is often stigmatized, expensive, or delayed until crisis.
The core challenge is clear: a safe, anonymous, and structured early intervention system is missing.
MindConnect delivers a layered, privacy-first emotional support flow designed for early intervention:
AI Support → Trained Peer Support → Professional Counselor Support → Crisis Escalation
- Real-time empathetic chat
- Guided grounding and stress-relief support
- Risk signal detection for distress and self-harm patterns
- Ethical boundaries: no diagnosis, no medical prescriptions
- Verified peer listeners with role-based access
- Structured peer chat sessions and availability queueing
- Escalation hooks when higher-level care is needed
- Counselor auth, dashboard, and availability management
- Booking and session lifecycle features
- Escalation, crisis, and session-note workflows
- Anonymous onboarding and token-based sessions
- AI-assisted emotional support with moderation safeguards
- Peer support workflow with routing and assignment logic
- Counselor session and escalation pipeline
- Encrypted journaling module
- Community stories and moderation layer
- Guided tools for breathing/grounding and coping
- Crisis support prompts and escalation pathways
- Realtime messaging and events via Socket.IO
- Layered escalation architecture, not a single chat lane
- Safety-first design over engagement-first design
- Anonymous-by-default identity flow
- Structured peer and counselor operations
- Practical institutional readiness via modular backend APIs
flowchart LR
A[Anonymous Student] --> B[Frontend App\nNext.js + Tailwind]
B --> C[MindConnect API\nExpress + TypeScript]
C --> D[AI Support + Moderation]
C --> E[Peer Support System]
C --> F[Counselor System]
C --> G[Crisis & Escalation Engine]
C --> H[(MongoDB)]
C --> I[(Redis Queue)]
B <--> J[Socket.IO Realtime Channels]
J <--> C
D --> G
E --> G
F --> G
- Next.js 16
- React 19
- Tailwind CSS
- Radix UI components
- Socket.IO Client
- Node.js + Express + TypeScript
- MongoDB (Mongoose)
- Socket.IO
- JWT-based authentication
- Zod validation and modular service architecture
- AI gateway integration (configurable provider keys)
- Prompt templates and response filtering
- Moderation engine with risk interpretation and escalation hooks
mind-connect/
├─ frontend/ # Next.js client app (student/peer/counselor UI)
├─ backend/ # Express API, modules, sockets, and services
└─ README.md
- Node.js 18+
- npm
- MongoDB (local or cloud)
- Redis (recommended for queue/availability workflows)
git clone <your-repository-url>
cd mind-connect
cd backend && npm install
cd ../frontend && npm installBackend env file:
cd backend
cp .env.example .envImportant backend variables:
- PORT
- NODE_ENV
- DATABASE_URL
- JWT_SECRET
- JWT_EXPIRES_IN
- CORS_ORIGIN
- JOURNAL_ENCRYPTION_KEY
- REDIS_URL
- AI_PROVIDER_KEY (or provider-specific key)
- COUNSELORSESSION* payment/session configs
Frontend env file (create manually):
cd frontend
echo NEXT_PUBLIC_API_BASE_URL=http://localhost:4000/api/v1 > .env.localTerminal 1:
cd backend
npm run devTerminal 2:
cd frontend
npm run devApp endpoints:
- Frontend: http://localhost:3000
- Backend API: http://localhost:4000/api/v1
- Health: http://localhost:4000/health
- npm run dev
- npm run build
- npm run start
- npm run test
- npm run lint
- npm run dev
- npm run build
- npm run start
- npm run lint
- Anonymous auth and session creation
- Chat lifecycle and message history
- Peer auth, dashboard, availability, and chat routes
- Counselor auth, availability, booking, sessions, notes, escalation
- Journal, tools, support, crisis, community, admin, and payments modules
Detailed API examples are available in backend/API.md.
- Anonymous-first identity model
- Minimal sensitive data exposure
- Encrypted journal workflow support
- CORS controls and secure middleware defaults
- Structured escalation for high-risk conversations
- Earlier emotional support access
- Reduced isolation among students
- Better triage of high-risk signals
- Campus-wide deployment potential
- Reduced crisis-stage interventions
- Better normalization of help-seeking behavior
- Deepak Soni (Team Lead)
- Aparna Banpela
- Nitin Maurya
- Jeet Kumar
MindConnect is not a medical diagnosis or treatment platform.
It is designed as an early-support bridge for safe expression, guided coping, and timely escalation to appropriate human support.
- Personalized AI guidance based on user interaction patterns
- Institutional dashboards for universities and coaching ecosystems
- Peer training certification workflows
- Multi-language support
- Helpline and partner ecosystem integrations