How harshat55/mindcare works
MindCare is a dementia-care companion and caregiver web app. Patients use the companion, manage daily routines and memories, and complete cognitive checks; caregivers review care metrics and receive real-time patient alerts. The server exposes route-backed records and a Socket.IO notification channel. The README is empty, and several frontend and server excerpts are partial, so uncertain client wiring and unsampled integrations are omitted.
Main entry points: server.js HTTP and socket server · db.js Care records store · main.js Home controller · socket-client.js Realtime client
Components 24
Patient experience
- Home experience
index.html - AI companion
companion.html - Companion interactions
companion.js - Daily routines
routine.html - Routine interactions
- Memory journal
memory.html - Memory interactions
- Cognitive assessment
assessment.html - Assessment interactions
assessment.js
Caregiver experience
- Caregiver dashboard
caregiver.html - Care dashboard logic
caregiver.js
Backend services
- HTTP and socket server
server.js - Memory routes
backend/routes/memories.js - Routine routes
backend/routes/routines.js - Assessment routes
backend/routes/assessments.js - Caregiver metrics
backend/routes/caregiver.js - Care records store
backend/db.js
Shared frontend
- Home controller
main.js - Role login
login.html - Browser state
data.js - Translations
translations.js - Realtime client
socket-client.js
Other components
- Patient
- Caregiver
Connections 27
- Patient → Role login: chooses role
- Caregiver → Role login: chooses role
- Patient → Home experience: opens app
- Patient → AI companion: starts conversation
- Patient → Daily routines: manages reminders
- Patient → Memory journal: records memories
- Patient → Cognitive assessment: completes check
- Caregiver → Caregiver dashboard: reviews care
- Home experience → Home controller: loads controller
- AI companion → Companion interactions: loads interactions
- Daily routines → Routine interactions: loads interactions
- Memory journal → Memory interactions: loads interactions
- Cognitive assessment → Assessment interactions: loads interactions
- Caregiver dashboard → Care dashboard logic: loads dashboard logic
- Home controller → Browser state: reads preferences
- Home controller → Translations: uses translations
- HTTP and socket server → Memory routes: dispatches requests
- HTTP and socket server → Routine routes: dispatches requests
- HTTP and socket server → Assessment routes: dispatches requests
- HTTP and socket server → Caregiver metrics: dispatches requests
- Memory routes → Care records store: reads and writes
- Routine routes → Care records store: reads and writes
- Assessment routes → Care records store: reads and writes
- Caregiver metrics → Care records store: reads records
- Realtime client → HTTP and socket server: sends events
- HTTP and socket server → Realtime client: broadcasts alerts
- Care dashboard logic → Realtime client: receives alerts