PROJECT
MindSphere
An AI-powered digital mental-health support system for students, built as a research prototype with chat support, screenings, bookings and peer forums.
What this is
MindSphere is a student-facing mental health support system I built with a small team. The idea came from a simple observation: students dealing with stress or burnout usually don’t know where to start and the gap between “I think I need help” and actually talking to someone is way too wide. So we built something that sits in that gap.
It’s a research prototype, not a production product. But it covers a lot of ground: AI chat support, PHQ-9 screening, counsellor bookings, a peer forum and a resource library. Three user roles (User, Counsellor, Admin) each get their own dashboard and workflows.
What’s inside
For students. An AI chatbot for coping strategies and immediate support, a PHQ-9 self-assessment tool, appointment booking with counsellors, a peer-to-peer forum and access to curated mental health resources. Everything in one place, no jumping between apps.
For counsellors. A dashboard with assigned appointments and client info, PHQ-9 screening data to track progress, access to client chat history and resource searches and report generation.
For admins. System-wide metrics (active users, screenings, bookings), user management across all roles, appointment oversight and real-time data from Firestore.
How it’s built
React + Vite frontend with Tailwind and React Router. Flask backend with a blueprint-based route structure. Firebase for auth and Firestore for user metadata. MongoDB for persistence, though the server falls back to in-memory stores when MongoDB isn’t configured, which makes local development and demos much easier.
The backend deliberately separates concerns: utils/db.py handles persistence, utils/helpers.py builds prompts, utils/model.py wraps the Gemini client. If GEMINI_API_KEY isn’t set, the model client disables itself and callers handle it gracefully.
Things worth noting
This is a prototype. It is not production-ready. No real PII or sensitive data should go through it without proper security, privacy and clinical governance in place.
Safety is prompt-level, not enforced. Some endpoints include instructions like “MAX 500 words” in the prompt, but the server doesn’t hard-truncate model output. For a real deployment, that would need to be enforced server-side.
Auth needs work. Many endpoints currently accept client-supplied emails. For production, token verification and server-side auth enforcement would be required.
I’m being upfront about these because the project was built as a learning and research exercise and I think it’s more useful to show what’s actually there than to pretend it’s something it isn’t.
Tech stack
React + Vite frontend, Tailwind CSS for styling. Flask backend with REST endpoints, optional MongoDB persistence, Firebase auth, Google Generative AI (Gemini) for the chatbot. SMTP for emergency notification emails. Deployed on Vercel with a serverless entrypoint.
Team
Built with Tanish Sanghvi, Archit Chitte, Anshul Patil, Harshvardhan Patil and Gowri Nair.