Feb 1, 2026

MindRoute

python machine learning node.js ai genai
MindRoute - Early Mental Health Support
 
MindRoute is a React-based web application designed to act as an empathetic, intelligent first point of contact for mental health support. It combines conversational AI with emotion recognition technology to assess user well-being and guide them to appropriate resources.
 
Core Features
 
1. AI Companion ("Navigator")
* Powered by Google Gemini (with OpenAI and local fallback options).
* Acts as a casual, non-judgmental friend to listen and validate feelings.
* Adapts responses based on conversational context and detected emotions.
 
2. Emotion Recognition
* Utilizes face-api.js to analyze the user's facial expressions via webcam.
* Feeds emotional data into the AI context to provide more personalized support.
 
3. Smart Risk Assessment
* A structured logic engine ([SupportNavigator](cci:2://file:///d:/hacknagpur/MindRoute-Early-Mental-health-Support/src/logic/SupportNavigator.ts:5:0-62:1)) evaluates user responses to specific questions.
* Categorizes risk as Low, Medium, or High.
* Safety Trigger: Automatically detects high-risk situations (e.g., self-harm indicators) to immediately bypass casual chat and show crisis resources.
 
4. Resource Mapping
* Dynamically directs users to curated mental health resources (articles, helplines, professional contacts) matching their assessed risk level.
 
Technical Stack
 
* Framework: React 19 + TypeScript (built with Vite)
* Styling: Tailwind CSS + Framer Motion
* AI & ML: Google Generative AI SDK, OpenAI SDK, face-api.js
* Icons: Lucide React

This build was uploaded as a hackathon project

Hackathon

Hacknagpur 2.0

View All Projects
Give a star to encourage!Discussion
Start a new conversation!
Login to join the discussion

Created by

Teammates