How prateek-og/adhd_focus_coach works
This is a child-focused ADHD coaching product with caregiver task setup and child focus sessions, alongside progress, notifications, feedback, and AI task adaptation. The backend exposes authenticated APIs; mobile provides caregiver and child experiences, and a small Next.js web client covers child, task, and progress pages. Sampled sources show task routes delegating to task/focus services and mobile focus screens using local Redux session/task state. Several backend services and web pages were not sampled, so their internal behavior and client-to-server wiring are not asserted.
Main entry points: task_routes.py Task API · security.py Access control · FocusScreen.js Child focus · child_routes.py Child API
Components 24
Backend API
- Task API
backend/app/api/task_routes.py - Child API
backend/app/api/child_routes.py - Progress API
backend/app/api/progress_routes.py - Device API
backend/app/api/device_routes.py - Feedback API
backend/app/api/feedback_routes.py - Notification API
backend/app/api/notification_routes.py - Auth API
backend/app/api/auth_routes.py
Backend domain
- Task service
backend/app/services/task_service.py - Focus service
backend/app/services/focus_service.py - AI service
backend/app/services/ai_service.py - Progress service
backend/app/services/progress_service.py - Notification service
backend/app/services/notification_service.py - Feedback service
backend/app/services/feedback_service.py - SQL database
backend/app/core/database.py - Access control
backend/app/core/security.py
Mobile app
- Caregiver tasks
mobile/src/screens/caregiver/TasksScreen.js - Child focus
mobile/src/screens/child/FocusScreen.js - Task state
mobile/src/store/taskSlice.js - Session state
mobile/src/store/sessionSlice.js
Web client
- Child page
frontend/src/app/child/page.js - Tasks page
frontend/src/app/tasks/page.js - Progress page
frontend/src/app/progress/page.js
Other components
- Caregiver
- Child
Connections 17
- Caregiver → Caregiver tasks: creates tasks
mobile/src/screens/caregiver/TasksScreen.js - Caregiver tasks → Task state: dispatches updates
mobile/src/screens/caregiver/TasksScreen.js - Child → Child focus: runs sessions
mobile/src/screens/child/FocusScreen.js - Child focus → Session state: dispatches session actions
mobile/src/screens/child/FocusScreen.js - Child focus → Task state: reads task state
mobile/src/screens/child/FocusScreen.js - Task API → Task service: delegates task operations
backend/app/api/task_routes.py - Task API → Focus service: delegates focus actions
backend/app/api/task_routes.py - Task API → AI service: requests task adaptation
backend/app/api/task_routes.py - Progress API → Progress service: requests progress
backend/app/api/progress_routes.py - Notification API → Notification service: delegates notification work
backend/app/api/notification_routes.py - Feedback API → Feedback service: delegates feedback work
backend/app/api/feedback_routes.py - Task API → Access control: checks access
backend/app/api/task_routes.py - Child API → Access control: checks ownership
backend/app/api/child_routes.py - Progress API → Access control: resolves authorization
backend/app/api/progress_routes.py - Device API → Access control: authenticates caller
backend/app/api/device_routes.py - Child API → SQL database: queries and commits
backend/app/api/child_routes.py - Device API → SQL database: queries and commits
backend/app/api/device_routes.py