Welcome to the most ambitious dementia care assistant ever built in a student project. CarePlus is an AI-powered companion that blends emotional support, practical reminders, medication tracking, and natural voice interaction into one intelligent system.
This solution was created for the Semester 2 Innovation Project at Sunway College Kathmandu.
This repo is a powerful monorepo containing four major systems:
- Unified AI Server (
hardwares/bot_1/): The brain of the operation. A FastAPI-based engine that runs local AI with Gemma, manages a knowledge retrieval system, and powers speech via Piper TTS. - Backend Orchestrator (
server/): A modern Bun + TypeScript backend that handles user accounts, data sync, and cloud persistence. - Mobile App (
application/): A React Native client built for reminders, notifications, and caregiver support on the go. - Web Dashboard (
client/): A Next.js control center for remote monitoring, history review, and system oversight.
Use this guide to get the entire environment running end-to-end.
Install the following before you begin:
- Node.js: v22.11.0 or higher
- Bun: Latest stable release (
curl -fsSL https://bun.sh/install | bash) - Python: v3.10 or higher
- Ollama: For local LLM inference (ollama.com)
- MongoDB: Local instance or MongoDB Atlas URI
- Git
CarePlus depends on Ollama for private, on-device AI processing.
- Install Ollama and make sure the daemon is running using
ollama serve. - Pull the model:
If you choose a different model, update the default in
ollama pull gemma4:e2b
hardwares/bot_1/app/services/llm.py.
This server is the heart of CarePlus: speech, reasoning, and context management.
-
Go to the directory:
cd hardwares/bot_1 -
Create and activate a Python virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the project dependencies:
pip install -r requirements.txt
-
Configure Piper TTS: Piper makes CarePlus speak naturally. Choose one:
- Option A (quick install):
pip install piper-tts
- Option B (manual install): Download the standalone binary from Piper GitHub, extract it, and either add
piperto your PATH or setPIPER_BIN.
Nepali TTS models are already included in
hardwares/bot_1/models/. - Option A (quick install):
-
Initialize the local database:
python -m app.database.db
-
Launch the AI server:
python main.py
The service will start on
http://localhost:3000.
The orchestrator coordinates user management and data persistence.
- Change to the server folder:
cd server - Install Bun dependencies:
bun install
- Set environment variables:
export MONGO_URI="mongodb://localhost:27017/careplus" export PORT=3001
- Run the backend:
bun run dev
This app handles reminders, notifications, and mobile caregiver tools.
- Open the application folder:
cd application - Install dependencies:
npm install
- Run the app:
- Android:
npm run android(requires Android Studio/emulator) - iOS:
bundle install && cd ios && pod install && cd .. && npm run ios(requires macOS/Xcode)
- Android:
This dashboard is the command hub for monitoring and managing CarePlus remotely.
- Enter the dashboard folder:
cd client - Install dependencies:
npm install
- Start the web app:
npm run dev -- -p 3002
| Component | Technology |
|---|---|
| AI / LLM | Ollama (Gemma), RAG |
| Speech | Web Speech API (STT), Piper (TTS) |
| Core API | FastAPI (Python 3.10+) |
| Orchestrator | Bun, TypeScript |
| Mobile | React Native |
| Dashboard | Next.js |
| Database | SQLite (local), MongoDB (cloud) |
Built for Sunway College Kathmandu. All rights reserved. git --version