How aryanshravan/aroha works
AROHA is a parent-and-adolescent mental-health support platform. Parents sign in, explore learning and practice tools, or describe observed changes to receive a non-diagnostic Situation Guide; adolescents can submit a message and control what is shared with a parent. The React application routes these experiences to an Express API and user-isolated persistence, with AI services supporting observation guidance and privacy-aware bridge reports. The README documents simulator feedback, progress tracking, and resilient AI providers. Some UI and API internals were not sampled, so documented feature relationships use README evidence.
Main entry points: App.jsx Route and guard · index.js Express API · aiService.js AI response service · reportStorage.js Report storage client
Components 25
User experience
- Route and guard
aroha-app/src/App.jsx - Authentication state
aroha-app/src/context/AuthContext.jsx - Dashboard shell
aroha-app/src/layouts/DashboardLayout.jsx
Learning and practice
- Learning library
aroha-app/src/pages/EducateYourself.jsx - Interactive lessons
aroha-app/src/pages/lessons/LessonPage.jsx - Five topic content
aroha-app/src/data/topic1.js - Lesson progress
aroha-app/src/utils/lessonStorage.js - Conversation simulator
aroha-app/src/pages/TrainingSimulator.jsx - Roleplay scenarios
aroha-app/src/data/simulatorQuestions.js - Progress dashboard
aroha-app/src/pages/Progress.jsx
Observation guidance
- Observation conversation
aroha-app/src/pages/WhatImSeeing.jsx - Session history client
aroha-app/src/services/sessionHistoryService.js
Parent-child bridge
- Child message and sharing
aroha-app/src/pages/parentchild/ChildMessage.jsx - Report storage client
aroha-app/src/utils/reportStorage.js - Privacy-aware report AI
aroha-app/server/services/parentChildAiService.js - Parent reports
aroha-app/src/pages/parentchild/ParentReports.jsx - Report detail
aroha-app/src/pages/parentchild/ReportDetail.jsx
API and services
- AI response service
aroha-app/server/services/aiService.js - Safety instructions
aroha-app/server/prompts/arohaSystemPrompt.js - Groq inference
- Gemini fallback
- Express API
aroha-app/server/index.js - User data store
aroha-app/server/services/firebaseService.js
Other components
- Parent / guardian
- Adolescent
Connections 29
- Parent / guardian → Route and guard: opens app
README.md - Adolescent → Route and guard: opens app
README.md - Route and guard → Authentication state: checks access
aroha-app/src/App.jsx - Route and guard → Dashboard shell: routes pages
aroha-app/src/App.jsx - Route and guard → Learning library: routes to
aroha-app/src/App.jsx - Route and guard → Observation conversation: routes to
aroha-app/src/App.jsx - Route and guard → Conversation simulator: routes to
aroha-app/src/App.jsx - Route and guard → Child message and sharing: routes to
aroha-app/src/App.jsx - Learning library → Interactive lessons: opens lessons
README.md - Interactive lessons → Five topic content: presents topics
- Interactive lessons → Lesson progress: records progress
aroha-app/src/pages/lessons/LessonPage.jsx - Conversation simulator → Roleplay scenarios: loads scenarios
aroha-app/src/pages/TrainingSimulator.jsx - Conversation simulator → Progress dashboard: tracks practice
README.md - Lesson progress → Progress dashboard: supplies completion
aroha-app/src/pages/Progress.jsx - Observation conversation → Session history client: saves sessions
aroha-app/src/pages/WhatImSeeing.jsx - Observation conversation → Express API: requests guidance
README.md - Session history client → Express API: syncs sessions
aroha-app/src/services/sessionHistoryService.js - Express API → AI response service: requests response
aroha-app/server/index.js - AI response service → Safety instructions: uses instructions
aroha-app/server/services/aiService.js - AI response service → Groq inference: calls primary
README.md - AI response service → Gemini fallback: falls back
README.md - Express API → User data store: reads and writes
aroha-app/server/index.js - Child message and sharing → Report storage client: processes sharing
aroha-app/src/pages/parentchild/ChildMessage.jsx - Report storage client → Express API: submits messages
aroha-app/src/utils/reportStorage.js - Express API → Privacy-aware report AI: delegates reports
aroha-app/server/index.js - Privacy-aware report AI → AI response service: uses AI response
aroha-app/server/services/parentChildAiService.js - Report storage client → User data store: persists reports
README.md - Parent reports → Report storage client: loads reports
aroha-app/src/pages/parentchild/ParentReports.jsx - Report detail → Report storage client: loads report
aroha-app/src/pages/parentchild/ReportDetail.jsx