How hemantgith/neurowell-ai works
NeuroWell AI is a multimodal mental-wellness assessment and counselling platform. The user registers or signs in, completes behavioural, chat, face, and voice assessments, receives a fused severity report, and views personalized dashboard support. The graph includes the web app, API stages, model/NLP/AI services, and persistence. Some subsystem links rely on SOURCE INDEX references or README statements because their full implementations were not excerpted; unsupported details are omitted.
Main entry points: App.jsx Routes and guards · main.py FastAPI entry · api.js HTTP client · models.py Domain records
Components 27
Web experience
- Routes and guards
frontend/src/App.jsx - Auth state
frontend/src/contexts/AuthContext.jsx - Register and login
frontend/src/pages/Register.jsx - Behaviour test
frontend/src/pages/BehaviourTest.jsx - Chat counselling
frontend/src/pages/ChatCounselling.jsx - Face assessment
frontend/src/pages/FaceEmotion.jsx - Voice assessment
frontend/src/pages/VoiceAnalysis.jsx - Severity report
frontend/src/pages/FinalSeverity.jsx - Wellness dashboard
frontend/src/pages/Dashboard.jsx - HTTP client
frontend/src/api.js
Assessment API
- FastAPI entry
backend/main.py - Auth routes
backend/routers/auth.py - Behaviour routes
backend/routers/behaviour.py - Chat routes
backend/routers/chat.py - Face routes
backend/routers/face.py - Voice routes
backend/routers/voice.py - Severity fusion
backend/routers/severity.py - Dashboard services
backend/routers/dashboard.py
Inference and counselling
- Model inference
backend/ml_loader.py - Chat analysis
backend/nlp_service.py - Therapist AI
backend/ai_service.py
Identity and persistence
- JWT handling
backend/jwt_handler.py - Domain records
backend/models.py - Database access
backend/database.py
Other components
- User
- Google OAuth
- OpenRouter
Connections 48
- User → Routes and guards: uses
frontend/src/App.jsx - Routes and guards → Auth state: provides auth
frontend/src/App.jsx - Routes and guards → Register and login: routes to
frontend/src/App.jsx - Routes and guards → Behaviour test: routes to
frontend/src/App.jsx - Routes and guards → Chat counselling: routes to
frontend/src/App.jsx - Routes and guards → Face assessment: routes to
frontend/src/App.jsx - Routes and guards → Voice assessment: routes to
frontend/src/App.jsx - Routes and guards → Severity report: routes to
frontend/src/App.jsx - Routes and guards → Wellness dashboard: routes to
frontend/src/App.jsx - Register and login → HTTP client: calls
frontend/src/pages/Register.jsx - Behaviour test → HTTP client: calls
frontend/src/pages/BehaviourTest.jsx - Chat counselling → HTTP client: calls
frontend/src/pages/ChatCounselling.jsx - Face assessment → HTTP client: calls
frontend/src/pages/FaceEmotion.jsx - Voice assessment → HTTP client: calls
- Severity report → HTTP client: calls
frontend/src/pages/FinalSeverity.jsx - Wellness dashboard → HTTP client: calls
frontend/src/pages/Dashboard.jsx - HTTP client → FastAPI entry: HTTP requests
README.md - FastAPI entry → Auth routes: registers
backend/main.py - FastAPI entry → Behaviour routes: registers
backend/main.py - FastAPI entry → Chat routes: registers
backend/main.py - FastAPI entry → Face routes: registers
backend/main.py - FastAPI entry → Voice routes: registers
backend/main.py - FastAPI entry → Severity fusion: registers
backend/main.py - FastAPI entry → Dashboard services: registers
backend/main.py - FastAPI entry → Model inference: loads models
backend/main.py - Auth routes → JWT handling: issues tokens
backend/routers/auth.py - Auth routes → Google OAuth: verifies OAuth
backend/routers/auth.py - Auth routes → Database access: queries users
backend/routers/auth.py - Auth routes → Domain records: uses records
backend/routers/auth.py - Behaviour routes → Model inference: predicts
backend/routers/behaviour.py - Behaviour routes → Database access: stores results
backend/routers/behaviour.py - Behaviour routes → Domain records: uses records
backend/routers/behaviour.py - Chat routes → Chat analysis: analyzes text
backend/routers/chat.py - Chat routes → Therapist AI: gets reply
backend/routers/chat.py - Chat routes → Database access: stores history
backend/routers/chat.py - Chat routes → Domain records: uses records
backend/routers/chat.py - Face routes → Model inference: predicts emotion
backend/routers/face.py - Face routes → Database access: stores results
backend/routers/face.py - Face routes → Domain records: uses records
backend/routers/face.py - Voice routes → Model inference: predicts emotion
backend/routers/voice.py - Voice routes → Database access: stores results
backend/routers/voice.py - Voice routes → Domain records: uses records
backend/routers/voice.py - Severity fusion → Database access: reads assessments
backend/routers/severity.py - Severity fusion → Domain records: uses records
backend/routers/severity.py - Dashboard services → Database access: reads profile
backend/routers/dashboard.py - Dashboard services → Domain records: uses records
backend/routers/dashboard.py - Dashboard services → Therapist AI: requests guidance
backend/routers/dashboard.py - Therapist AI → OpenRouter: calls model API
backend/ai_service.py