How avnipahal624/mool_1 works
MOOL is a prototype cognitive and independence companion for older adults and caregivers. Caregivers add memories and routines; patients use personalized activities and everyday-support features, while activity performance and comfort feedback influence future sessions. State is primarily persisted in browser localStorage, with a patient context that also attempts API synchronization. The README documents diary, music, voice, safety, alerts, and reports, though several implementations were not sampled; those branches are shown at their existing directories. Arrows reflect cited calls or README-documented behavior; unsampled details are not inferred.
Main entry points: App.tsx App routes · adaptationEngine.ts Difficulty adaptation · memoryService.ts Memory eligibility · Games1.tsx Activity games
Components 23
App foundation
- App routes
src/pages/App.tsx - App state
src/context/AppContext.tsx - Patient data
src/context/PatientContext.tsx - Language settings
src/context/LanguageContext.tsx - Translations
src/data/translations.ts - Browser storage
src/lib/storage.ts - API adapter
src/lib/api.ts - Demo data
src/data/seed.ts
Caregiver tools
- Caregiver overview
src/pages/caregiver/Caregiver.tsx - Memory bank
src/pages/caregiver/Memories.tsx - Routines and insights
src/pages/caregiver/Care.tsx - Care extensions
src/pages/caregiver
Patient experience
- Patient home
src/pages/patient/Home.tsx - Activity games
src/pages/patient/Games1.tsx - Game variants
src/pages/patient/Games2.tsx - Diary and music
src/pages/patient/Life.tsx - Safety wallet
src/pages/patient/Wallet.tsx - Cultural motifs
src/data/motifs.tsx
Personalization services
- Activity generation
src/services/activityGenerator.ts - Difficulty adaptation
src/services/adaptationEngine.ts - Memory eligibility
src/services/memoryService.ts - Audio and voice
src/services/soundService.ts
Other components
- Patient or caregiver
Connections 42
- Patient or caregiver → App routes: uses
README.md - App routes → App state: provides state
src/pages/App.tsx - App routes → Patient data: provides data
src/pages/App.tsx - App routes → Language settings: provides language
src/pages/App.tsx - Language settings → Browser storage: persists settings
src/context/LanguageContext.tsx - Language settings → Translations: resolves text
src/context/LanguageContext.tsx - App state → Browser storage: persists state
src/context/AppContext.tsx - Patient data → Browser storage: persists patient data
src/context/PatientContext.tsx - Patient data → Demo data: loads demo data
src/context/PatientContext.tsx - Patient data → API adapter: syncs data
src/context/PatientContext.tsx - Caregiver overview → Difficulty adaptation: reads activity insights
src/pages/caregiver/Caregiver.tsx - Memory bank → Memory eligibility: uses memory rules
src/pages/caregiver/Memories.tsx - Routines and insights → Difficulty adaptation: uses activity insights
src/pages/caregiver/Care.tsx - Routines and insights → Memory eligibility: uses memory rules
src/pages/caregiver/Care.tsx - Routines and insights → Audio and voice: uses audio
src/pages/caregiver/Care.tsx - App routes → Care extensions: routes caregiver features
src/pages/App.tsx - Patient home → Difficulty adaptation: uses personalization
src/pages/patient/Home.tsx - Patient home → Memory eligibility: uses memory rules
src/pages/patient/Home.tsx - Patient home → Audio and voice: uses audio
src/pages/patient/Home.tsx - Activity games → Activity generation: generates activities
src/pages/patient/Games1.tsx - Activity games → Difficulty adaptation: adapts sessions
src/pages/patient/Games1.tsx - Activity games → Memory eligibility: filters memories
src/pages/patient/Games1.tsx - Activity games → Audio and voice: uses audio
src/pages/patient/Games1.tsx - Activity games → Cultural motifs: renders motifs
src/pages/patient/Games1.tsx - Game variants → Activity generation: generates activities
src/pages/patient/Games2.tsx - Game variants → Difficulty adaptation: adapts sessions
src/pages/patient/Games2.tsx - Game variants → Audio and voice: uses audio
src/pages/patient/Games2.tsx - Game variants → Cultural motifs: renders motifs
src/pages/patient/Games2.tsx - Diary and music → Difficulty adaptation: uses personalization
src/pages/patient/Life.tsx - Diary and music → Memory eligibility: uses memory rules
src/pages/patient/Life.tsx - Diary and music → Audio and voice: uses audio
src/pages/patient/Life.tsx - Diary and music → Cultural motifs: renders motifs
src/pages/patient/Life.tsx - App routes → Patient home: routes patient
src/pages/App.tsx - App routes → Activity games: routes games
src/pages/App.tsx - App routes → Game variants: routes games
src/pages/App.tsx - App routes → Diary and music: routes life features
src/pages/App.tsx - App routes → Safety wallet: routes wallet
src/pages/App.tsx - Activity generation → Memory eligibility: filters memories
src/services/activityGenerator.ts - Activity generation → Difficulty adaptation: uses topic selection
src/services/activityGenerator.ts - Difficulty adaptation → Memory eligibility: uses topic profiles
src/services/adaptationEngine.ts - Difficulty adaptation → Browser storage: stores feedback
src/services/adaptationEngine.ts - Memory eligibility → Cultural motifs: maps topics
src/services/memoryService.ts