GluCoPilot

CI

GluCoPilot - AI-Powered Diabetes Management

GluCoPilot is a comprehensive, privacy-focused diabetes management platform. It combines real-time CGM data, activity tracking, food logging, and AI-powered insights to help people with diabetes optimize glucose control. The project now supports both a modern native iOS app (SwiftUI) and a React Native app, powered by a FastAPI backend.

🚀 Quick Start

1. Backend (FastAPI)

cd backend
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env  # Edit as needed
uvicorn main:app --reload --host 0.0.0.0 --port 8000

2. iOS App (SwiftUI, iOS 18+)

cd new-frontend
open Package.swift  # Or open in Xcode
# Build and run on device/simulator (iOS 18+ required)

✨ Core Features

🔐 Authentication & Privacy

📊 Data Integration

🧠 AI-Powered Analysis

📱 User Experience

🏗 Architecture

GluCoPilot/
├── backend/         # FastAPI Python backend
├── new-frontend/    # SwiftUI iOS app (iOS 18+)
├── frontend/        # React Native app (legacy)
├── ai/              # Local AI/insights engine
├── docs/            # Documentation
└── scripts/         # Utility/setup scripts

🛠 Manual Setup (Advanced)

  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. SwiftUI iOS: cd new-frontend && open Package.swift (build/run in Xcode)
  4. React Native: cd frontend && npm install && npx react-native run-ios
  5. Configure env: cp backend/.env.example backend/.env (edit as needed)
  6. DB: cd backend && python -m alembic upgrade head
  7. Start backend: uvicorn main:app --reload --host 0.0.0.0 --port 8000

📊 Data Sources

Source Data Type Frequency Format
Dexcom CGM Glucose readings 5-min JSON
Apple HealthKit Heart, steps, sleep, nutrition Real-time JSON
MyFitnessPal Nutrition User/Sync JSON
Manual Entry 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