How patnaikswayam131/mindbrdige works
MindBridge is a student mental-health support application: students can access assessments, an AI support chat, and counselor booking, while counselor and admin pages provide operational views. In the chat workflow, the browser client sends messages to the FastAPI backend, which loads and saves thread history, invokes the conversation agent, and calls Gemini; the response returns to the client. Page names indicate additional assessment, booking, dashboard, and analytics capabilities, but their implementation and wiring were not sampled.
Main entry points: chat-integration.js Chat client · main.py Chat API · ai_mental_health_chatbot.html AI chat page · language.js Language switching
Components 18
Student support
- Student access
pages/student_login.html - Registration
pages/student_register.html - Student dashboard
pages/student_dashboard.html - Mental-health assessments
pages/mental_health_assessments.html - Counselor booking
pages/counselor_appointment_booking.html
Staff tools
- Counselor dashboard
pages/counselor_dashboard.html - Admin analytics
pages/admin_analytics_dashboard.html
AI chat
- AI chat page
pages/ai_mental_health_chatbot.html - Chat client
js/chat-integration.js - Chat API
backend/main.py - Conversation agent
backend/main.py
Chat state
- Chat history
backend/chat_history.db - Browser storage
Language support
- Language switching
js/language.js
Other components
- Student
- Counselor / admin
- Gemini API
- Google Translate
Connections 15
- Student → Student access: opens access
- Student → Registration: creates account
- Student → Student dashboard: opens dashboard
- Student → Mental-health assessments: takes assessment
- Student → Counselor booking: books counselor
- Counselor / admin → Counselor dashboard: opens dashboard
- Counselor / admin → Admin analytics: views analytics
- Student → AI chat page: starts chat
- AI chat page → Chat client: uses client
- Chat client → Chat API: posts messages
- Chat API → Chat history: reads and writes
- Chat API → Conversation agent: invokes graph
- Conversation agent → Gemini API: requests response
- Chat client → Browser storage: stores thread
- Language switching → Google Translate: loads translation