AI-powered elderly care platform for medication adherence, health monitoring, assistive diagnosis, and caregiver collaboration.
- What AgeWell Solves
- Core Capabilities
- Product Screens
- System Architecture
- Tech Stack
- Repository Structure
- Getting Started (Local Development)
- Environment Variables
- Diagnosis Flow (Assistive Diagnosis)
- API Overview
- Deployment Notes
- Documentation Index
- Contributing
- License
AgeWell is designed for elders and caregivers who need a single system for daily wellness operations:
- medication reminders and adherence history
- vital tracking and risk signals
- lightweight symptom triage support (not a medical diagnosis)
- caregiver visibility and alerts
- prescription upload and OCR-assisted extraction
The project combines a React frontend, Flask APIs, Supabase-backed persistence, and AI service integrations.
- Large, touch-friendly interface and simplified interaction patterns
- Daily medication schedule with adherence logging
- Health check-ins and status visibility
- Emergency support actions
- Assistive diagnosis intake and report export/share
- Linked elder management
- Dashboard with recent health and medication events
- Diagnosis history visibility and follow-up support
- Medication and schedule management
- Notification and escalation context
- Structured diagnosis reports for doctor conversations
- PDF export for symptom history handoff
- History retrieval for recent sessions
Existing project images are preserved and included below.
Frontend (React + Vite)
├─ Auth context, route guards, role-aware navigation
├─ Elder and caregiver page flows
└─ API client (frontend/src/api/client.js)
│
▼ REST
Backend (Flask Blueprints)
├─ health_routes
├─ medication_routes
├─ diagnosis_routes
├─ prescription_routes
├─ linking_routes
├─ settings_routes
└─ notification/automation routes
│
▼
Supabase (PostgreSQL + Auth + RLS)
The diagnosis module combines:
- Complaint intake
- Symptom extraction + first question generation (Groq-backed with safe fallback logic)
- Yes/No follow-up sequence (max 8)
- Optional image observation (Gemini)
- Structured urgency report + share/export
| Layer | Tools |
|---|---|
| Frontend | React 18, Vite, TailwindCSS, Framer Motion, Lucide |
| Backend | Flask, Flask-CORS, SQLAlchemy, ReportLab |
| Data | Supabase PostgreSQL, Supabase Auth |
| AI Services | Groq (text triage/report), Gemini (image analysis) |
| OCR | Tesseract + pytesseract |
| Notifications | Twilio-based channels |
agewell/
├─ frontend/ # React app
│ ├─ src/
│ │ ├─ pages/
│ │ ├─ components/
│ │ ├─ contexts/
│ │ └─ api/
│ └─ public/
├─ backend/ # Flask API
│ ├─ app.py
│ ├─ routes/
│ └─ services/
├─ supabase/ # SQL and schema assets
├─ docs/ # Architecture, API, deployment docs
└─ stitch_elder_dashboard/ # Product screenshot assets
- Python 3.10+
- Node.js 18+
- Supabase project credentials
- Tesseract OCR installed on machine
cd backend
python -m venv venv
# Windows
.\venv\Scripts\activate
# macOS/Linux
# source venv/bin/activate
pip install -r requirements.txt
copy .env.example .env
python app.pyBackend runs on http://localhost:5001.
cd frontend
npm install
copy .env.example .env
npm run devFrontend runs on http://localhost:5173 by default.
Use .env.example in both frontend/ and backend/ as starting templates.
SUPABASE_URLSUPABASE_SERVICE_KEY(orSUPABASE_SECRET_KEY/SUPABASE_SERVICE_ROLE_KEY)GROQ_API_KEY(fallback when user-level key is not set)GEMINI_API_KEY(fallback when user-level key is not set)SECRET_KEYFLASK_DEBUG
VITE_API_URLVITE_SUPABASE_URLVITE_SUPABASE_ANON_KEY
User path:
- Open
/diagnosis/input - Submit raw complaint text
- Receive first yes/no question
- Continue question flow in
/diagnosis/qa - Auto-generate report at completion
- Review/export/share via
/diagnosis/reportand/diagnosis/history
Reliability behavior:
- If AI is unavailable, diagnosis still starts with a safe symptom-focused fallback first question.
- Follow-up flow can continue with deterministic dynamic fallback prompts.
- API key resolution for diagnosis uses user settings first, then request-header overrides, then environment fallback in service layer.
Base URL (local): http://localhost:5001/api
Key diagnosis endpoints:
POST /diagnosis/startPOST /diagnosis/answerPOST /diagnosis/upload-imagePOST /diagnosis/generate-reportGET /diagnosis/history/{patient_id}GET /diagnosis/export-pdf/{session_id}GET /diagnosis/audit/{session_id}POST /diagnosis/share
See full references in docs/API.md.
Deployment options and infra steps are documented in docs/DEPLOYMENT.md, including:
- Supabase configuration
- Backend deployment patterns (Railway/Render/VPS/Docker)
- Frontend static hosting
- Runtime environment setup
- Architecture
- Frontend Guide
- Backend Guide
- API Reference
- Database Schema
- Deployment Guide
- Contributing
- Graphify Notes
Please follow docs/CONTRIBUTING.md for branch strategy, code standards, and documentation expectations.
MIT License. See LICENSE if present in your checkout.











