GluCoPilot

GluCoPilot - AI-Powered Diabetes Management

A comprehensive, offline-first diabetes management app combining real-time CGM data, activity tracking, food logging, and AI-powered insights to help Type 1 diabetics optimize glucose control.

For seamless development and debugging, always use the provided script:

./scripts/start_glucopilot.sh

This script: - Sets up and checks your Python/Node environments - Handles backend and frontend dependencies - Configures your local IP for mobile debugging - Starts both backend (FastAPI) and frontend (Expo) servers - Ensures a clean, reproducible dev environment

If you encounter issues, re-run the script to rule out environment/config problems before investigating code bugs.


✨ Core Features

📊 Data Ingestion

🧠 AI-Powered Analysis

📱 User Experience

🏗 Architecture

GluCoPilot/
├── backend/           # Python FastAPI server
├── frontend/          # React Native mobile app
├── ai/                # Local AI models and processing
├── database/          # SQLite schema and migrations
├── docs/              # Documentation
└── scripts/           # Utility and setup scripts

🛠 Manual Setup (Advanced/CI Only)

If you must set up manually (not recommended for dev):

  1. Clone repo: git clone https://github.com/EricSpencer00/GluCoPilot.git && cd GluCoPilot
  2. Backend: cd backend && python -m venv venv && source venv/bin/activate && pip install -r requirements.txt
  3. Frontend: cd frontend && npm install
  4. Configure env: cp backend/.env.example backend/.env (edit as needed)
  5. DB: cd backend && python -m alembic upgrade head
  6. Start backend: uvicorn main:app --reload --host 0.0.0.0 --port 8000
  7. Start frontend: cd frontend && npx expo start --clear

📊 Data Sources

Source Data Type Frequency Format
Dexcom CGM Glucose readings 5-min JSON
Apple HealthKit Heart, steps, sleep Real-time JSON
Google Fit Activity, steps Real-time JSON
MyFitnessPal Nutrition User/Sync JSON
Food/Insulin/Activity/Sleep/Mood/Med/Illness/Menstrual User/Sync JSON
Reddit r/T1D Community tips Daily JSON

� Privacy & Security

🤝 Contributing

See Contributing Guide for details.

📄 License

MIT License - see LICENSE

🙋‍♂️ Support

Open an issue or contact the dev team.


Built with ❤️ for the Type 1 Diabetes community