AI-Powered Memory Companion & Care Platform for Seniors
A compassionate, intelligent platform designed to preserve memories, enhance cognitive health, and connect elderly users with their caregivers and healthcare providers.
SageLink is a comprehensive eldercare platform that combines artificial intelligence with human-centered design to support seniors in preserving their memories, maintaining cognitive health, and staying connected with loved ones. The platform serves three distinct user roles: Elders, Caregivers, and Clinicians, each with tailored interfaces and features.
- Voice-Enabled Memory Entry - Record memories hands-free using speech recognition
- Photo Memory Uploads - Attach images to memories for visual preservation
- Smart Categorization - AI automatically tags and categorizes memories (stories, people, events, medication, routines, preferences)
- Memory Wall - Beautiful visual gallery of all recorded memories
- Memory Timeline - Chronological life journey visualization
- Conversational AI - Chat with an empathetic AI companion that remembers your stories
- Memory-Aware Responses - AI references your past memories in conversations
- Voice Interaction - Full text-to-speech and speech-to-text support
- Emotional Understanding - AI adapts tone based on conversation context
- Natural Language Questions - Ask questions about your own memories
- AI-Powered Search - Gemini AI finds relevant memories and generates warm, friendly answers
- Text-to-Speech Playback - Listen to answers instead of reading
- Question History - Review all past questions and answers
- Memory Matching Games - Brain training games with difficulty levels (Easy/Medium/Hard)
- Daily Cognitive Prompts - AI-generated prompts to stimulate memory recall
- Cognitive Health Dashboard - Track cognitive patterns and trends over time
- Adaptive Questions - AI generates personalized memory exercises
- People Scanner - Camera-based face recognition using TensorFlow.js
- Face Registration - Register family members and friends with names/relationships
- Real-time Recognition - Instantly identify people and display relationship information
- Privacy-First - All face data stored locally and encrypted
- Daily Mood Check-ins - Simple emoji-based mood logging
- Mood History - Visualize mood patterns over time
- Caregiver Alerts - Notify caregivers of concerning mood patterns
- Future Message Creation - Record messages for loved ones' future milestones
- Event Scheduling - Set delivery for graduations, weddings, birthdays, anniversaries
- Multi-Media Support - Text, voice, and video messages
- Automated Delivery - Messages delivered automatically on the scheduled date
- Emergency Panic Button - One-touch SOS alert to caregivers and emergency contacts
- 3-Second Countdown - Prevents accidental triggers with cancel option
- Location Sharing - Share location during emergencies
- Alert Notifications - Instant push notifications to all linked caregivers
- Video Calls with Clinicians - Built-in Jitsi video conferencing
- Appointment Scheduling - Book consultations with healthcare providers
- Consultation History - Track past and upcoming appointments
- Family Messages - Receive messages and updates from family members
- Photo Sharing - View photos shared by caregivers
- Activity Sharing - Share daily activities with loved ones
- Large Text Mode - Adjustable font sizes (Normal/Large/Extra-Large)
- High Contrast Mode - Enhanced visibility for visual impairments
- Voice Navigation - Full voice control support
- Simple Interface - Large buttons, minimal complexity
- Elder Monitoring - View linked elder's memories, questions, and activities
- Real-time Updates - Live updates via Supabase real-time subscriptions
- Multi-Elder Support - Manage multiple elders from one account
- Activity Tracking - Monitor elder's daily activities and engagement
- Cognitive Patterns - View trends in memory and cognitive exercises
- Mood Alerts - Receive notifications for mood changes
- Engagement Metrics - Track platform usage and interaction levels
- Memory Analytics - Charts showing memory recording frequency
- Question Patterns - Analysis of questions asked over time
- Wellness Indicators - Health-related behavioral signals
- Weekly Reports - AI-generated summaries of elder's week
- Email-Based Linking - Connect to elders using their email
- Secure Verification - Verified linking process
- Relationship Management - Define caregiver-elder relationships
- Memory Highlights - Curated view of significant memories
- Conversation Insights - Key themes from AI companion chats
- Progress Tracking - Monitor cognitive exercise completion
- Patient Grid View - Overview of all elderly patients
- Search & Filter - Find patients by name or ID
- Alert Management - View and respond to patient alerts
- Comprehensive View - Full patient history and data
- Memory Access - Review patient's recorded memories
- Behavioral Analysis - Detailed behavioral signal history
- Consultation Notes - Add and view clinical notes
- Pattern Detection - AI-assisted cognitive decline detection
- Risk Assessment - Early warning indicators
- Trend Analysis - Long-term cognitive trend visualization
- 3D Brain Model - Interactive Three.js brain visualization
- Health Heatmaps - Visual representation of health metrics
- Health Timelines - Chronological health event tracking
- Appointment Calendar - Manage consultation schedules
- Video Consultations - Conduct remote consultations
- Patient Queue - Manage consultation waiting list
| Technology | Purpose |
|---|---|
| React 19 | UI Framework |
| TypeScript | Type Safety |
| Vite | Build Tool |
| Tailwind CSS | Styling |
| Framer Motion | Animations |
| shadcn/ui | UI Components |
| React Router | Navigation |
| TanStack Query | Data Fetching |
| Three.js | 3D Visualizations |
| Technology | Purpose |
|---|---|
| Supabase | Backend-as-a-Service |
| PostgreSQL | Database |
| Supabase Auth | Authentication |
| Supabase Storage | File Storage |
| Supabase Realtime | Live Updates |
| Technology | Purpose |
|---|---|
| Google Gemini API | NLP & Question Answering |
| Groq API | Fast LLM Inference |
| TensorFlow.js | Face Recognition |
| face-api.js | Face Detection Models |
| Hugging Face | Additional ML Models |
| Technology | Purpose |
|---|---|
| Jitsi | Video Conferencing |
| Resend | Email Notifications |
| Web Speech API | Voice Recognition |
| Speech Synthesis | Text-to-Speech |
SageLink/
├── app/ # Next.js API Routes
│ └── api/
│ ├── memories/ # Memory CRUD operations
│ ├── questions/ # Question answering
│ ├── summaries/ # Daily summary generation
│ ├── memory-images/ # Image upload handling
│ ├── caregivers/ # Caregiver management
│ ├── health/ # Health check endpoint
│ └── support/ # Support email sending
├── src/
│ ├── components/
│ │ ├── elder/ # Elder-specific components
│ │ │ ├── ElderDashboard # Main elder interface
│ │ │ ├── MemoryCompanion # AI chatbot
│ │ │ ├── MemoryWall # Photo gallery
│ │ │ ├── MemoryTimeline # Life timeline
│ │ │ ├── PeopleScanner # Face recognition
│ │ │ ├── CognitiveGames # Brain games
│ │ │ ├── MoodTracker # Mood logging
│ │ │ ├── TimeCapsule # Future messages
│ │ │ ├── PanicButton # Emergency SOS
│ │ │ └── DailyPrompts # AI prompts
│ │ ├── caregiver/ # Caregiver components
│ │ │ ├── CaregiverDashboard
│ │ │ ├── CaregiverInsights
│ │ │ ├── HealthDashboard
│ │ │ └── CognitiveJournal
│ │ ├── clinician/ # Clinician components
│ │ │ ├── CommandCenter
│ │ │ ├── DiagnosticAI
│ │ │ ├── BrainModel3D
│ │ │ └── HealthHeatmap
│ │ ├── teleconsultation/ # Video call components
│ │ │ ├── VideoRoom
│ │ │ ├── ConsultationScheduler
│ │ │ └── UpcomingConsultations
│ │ └── ui/ # Reusable UI components
│ ├── contexts/ # React contexts
│ │ ├── AuthContext # Authentication state
│ │ ├── DemoContext # Guest mode state
│ │ └── TourContext # Onboarding tour
│ ├── hooks/ # Custom hooks
│ │ ├── useSpeech # Voice I/O
│ │ └── useEmergency # Emergency alerts
│ ├── lib/ # Utilities
│ │ ├── ai.ts # AI functions
│ │ ├── face-recognition.ts # Face detection
│ │ └── utils.ts # General utilities
│ ├── pages/ # Page components
│ │ ├── Index # Landing page
│ │ ├── Auth # Login/Register
│ │ ├── Elder # Elder portal
│ │ ├── Caregiver # Caregiver portal
│ │ ├── Clinician # Clinician portal
│ │ └── Support # Help center
│ └── integrations/
│ └── supabase/ # Supabase client
├── supabase/
│ ├── migrations/ # Database schema
│ └── functions/ # Edge functions
└── SageLink-Mobile/ # React Native mobile app
| Table | Description |
|---|---|
profiles |
User profiles with roles (elder/caregiver/clinician) |
memories |
Memory entries with text, type, tags, image URLs |
questions |
Questions asked and AI-generated answers |
daily_summaries |
AI-generated daily summaries |
behavioral_signals |
Activity and behavioral data |
caregiver_elder_links |
Caregiver-elder relationships |
alerts |
Emergency and notification alerts |
teleconsultations |
Video call appointments |
mood_entries |
Daily mood check-ins |
time_capsules |
Future message scheduling |
known_faces |
Face recognition data |
- Node.js 18+
- npm, yarn, pnpm, or bun
- Supabase account
- Google Gemini API key (optional)
-
Clone the repository
git clone https://github.com/yourusername/elder-ai.git cd elder-ai -
Install dependencies
npm install # or bun install -
Configure environment variables
Create a
.envfile:# Supabase VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_PUBLISHABLE_KEY=your_supabase_anon_key SUPABASE_URL=your_supabase_url SUPABASE_SERVICE_ROLE_KEY=your_service_role_key # AI (Optional - enables enhanced features) GEMINI_API_KEY=your_gemini_api_key VITE_GEMINI_API_KEY=your_gemini_api_key GROQ_API_KEY=your_groq_api_key VITE_GROQ_API_KEY=your_groq_api_key # Email (Optional) RESEND_API_KEY=your_resend_api_key # Face Recognition (Optional) VITE_HUGGINGFACE_API_KEY=your_huggingface_key
-
Set up Supabase
- Create a new project at supabase.com
- Run migrations from
supabase/migrations/ - Create storage bucket
memory-imageswith public access - Enable realtime for required tables
-
Start development server
npm run dev # or bun run dev
| Endpoint | Method | Description |
|---|---|---|
/api/memories |
GET | Fetch memories with filters |
/api/memories |
POST | Create new memory |
/api/memory-images |
POST | Upload memory image |
| Endpoint | Method | Description |
|---|---|---|
/api/questions |
GET | Get recent questions |
/api/questions/answer |
POST | Get AI answer to question |
| Endpoint | Method | Description |
|---|---|---|
/api/summaries |
GET | Fetch summaries |
/api/summaries/daily |
POST | Generate daily summary |
| Endpoint | Method | Description |
|---|---|---|
/api/caregivers/link-elder |
POST | Link caregiver to elder |
/api/current-elder |
GET | Get linked elder info |
| Endpoint | Method | Description |
|---|---|---|
/api/support/send-email |
POST | Send support email |
/api/health |
GET | System health check |
- Automatic Tag Extraction - AI extracts people, places, and events from memories
- Memory Categorization - Smart classification of memory types
- Semantic Search - Find relevant memories using natural language
- Context-Aware Responses - AI uses full memory context for answers
- Warm, Friendly Tone - Responses optimized for elderly users
- Fallback System - Keyword matching when AI is unavailable
- Empathetic Conversations - Emotionally intelligent responses
- Memory Prompts - AI suggests memory-triggering questions
- Personalization - Learns from user's memory history
- Pattern Recognition - Detects cognitive decline indicators
- Behavioral Analysis - Analyzes activity patterns
- Risk Scoring - Early warning system for clinicians
- Row-Level Security - Database-level access control
- Encrypted Storage - Secure data at rest
- HIPAA Considerations - Designed with healthcare privacy in mind
- Local Face Data - Face recognition data never leaves device
- Secure Authentication - Supabase Auth with JWT tokens
npm run build
vercel --prodSet all .env variables in your deployment platform's dashboard.
A React Native mobile app is available in the SageLink-Mobile/ directory, providing native iOS and Android experiences with the same features.
This is a private project. For questions or collaboration inquiries, please contact the maintainer.
All Rights Reserved - Private Project
- shadcn/ui - UI Components
- Google Gemini - AI/ML
- Supabase - Backend Infrastructure
- Jitsi - Video Conferencing
- TensorFlow.js - Face Recognition
Made with care for elderly users and their families
by Vaibhav Verma