Your Personal Health Data Sanctuary for the Future of Personalized Medicine
v0.9.0 β Tests 325+ pass / 2 fail (99.4%+) β
| Clean Architecture Coverage: 17/25 (68%) full + 4/25 (16%) near-complete = 84% with all 4 layers | Offline-first AI β
| On-device TTS β
| Audio Recording β
| Secure Storage β
| Environment Config β
| Lazy Loading β
| 23/25 features have all 4 Clean Architecture layers β
Full coverage details:
coverage_report.md
OrionHealth is a privacy-first, local-first health assistant that enables individuals to own and control their complete health data history. Built with Flutter and powered by on-device AI, it creates a secure "Digital Health Sheet" that integrates medical records, sensor data (Apple HealthKit, Google Health Connect), and AI-powered insightsβall without compromising your privacy.
OrionHealth follows Clean Architecture with 4 layers:
lib/
βββ core/ # Shared infrastructure
β βββ config/ # Environment & build config
β β βββ environment.dart # Runtime environment (dev/staging/prod)
β β βββ build_config.dart# Build-time flavor config
β βββ di/ # Dependency injection (GetIt + injectable)
β βββ services/ # Core services
β β βββ audio/ # AudioPlayerService, AudioRecorderService
β β βββ tts/ # TTS adapters (SherpaOnnx, System)
β β βββ app_logger.dart # Structured logging
β β βββ secure_storage_service.dart # Encrypted storage
β βββ theme/ # App theme (dark mode)
β βββ utils/ # Utilities (cache, error handler, lazy_router)
β βββ widgets/ # Shared widgets (error_boundary)
βββ features/ # Feature modules (Clean Architecture)
β βββ auth/ # Authentication + DID/VC
β βββ meditation/ # Offline-guided meditation
β βββ voice_chat/ # AI voice chat with TTS/ASR
β βββ ... # 21+ additional features
βββ l10n/ # Localization (Spanish)
βββ main.dart # App entry point
| Decision | Choice | Rationale |
|---|---|---|
| State Management | flutter_bloc | Predictable, testable, scalable |
| DI | get_it + injectable | Compile-time code gen, no runtime reflection |
| TTS | sherpa_onnx (on-device) | Privacy-first, no cloud dependency |
| Audio | just_audio + record | Lightweight, native platform integration |
| Storage | flutter_secure_storage | Encrypted at rest, Keychain/Keystore backed |
| FHIR | fhir_dstu2 + fhir_r4 | Industry standard for health data |
| ObjectBox | isar_agent_memory | Embedded vector database for AI memory |
| Logging | AppLogger | Structured, level-based, release-mode silent |
- Flutter 3.10+ / Dart 3.10+
- Android Studio or VS Code with Flutter extension
- Git LFS (for large model files)
# Clone the repository
git clone https://github.com/iberi22/OrionHealth.git
cd OrionHealth
# Install dependencies
flutter pub get
# Run code generation (DI, JSON serialization, etc.)
dart run build_runner build --delete-conflicting-outputs
# Run on device
flutter runOrionHealth supports three build flavors:
# Development (debug)
flutter run --flavor dev --dart-define=flavor=dev
# Staging (profile)
flutter run --flavor staging --dart-define=flavor=staging
# Production (release)
flutter build apk --flavor prod --dart-define=flavor=prod
flutter build ios --flavor prod --dart-define=flavor=prod# Run all tests
flutter test
# Watch mode
flutter test --watch
# Coverage report
flutter test --coverage
genhtml coverage/lcov.info -o coverage/html- π Privacy-first: All processing on-device, no cloud dependency
- π£οΈ Voice AI Chat: Natural conversation with on-device TTS/ASR
- π§ Offline Meditation: Guided sessions with breathing exercises
- π₯ FHIR Integration: Medical records via standard FHIR R4
- π Secure Storage: Encrypted data at rest with platform keychain
- π― Personalized AI: Local agent memory for context-aware responses
- π Health Metrics: Sync with Apple HealthKit & Google Health Connect
- π DID/VC: Self-Sovereign Identity for health data sharing
- Fork the repository
- Create a feature branch (
git checkout -b feat/your-feature) - Commit changes (
git commit -m "feat: add amazing feature") - Push to the branch (
git push origin feat/your-feature) - Open a Pull Request
| Label | Purpose |
|---|---|
jules |
Tasks for automated AI agent |
bug |
Bug reports |
enhancement |
Feature requests |
dependencies |
Dependency updates |
- Repository: github.com/iberi22/OrionHealth
- Docs: iberi22.github.io/OrionHealth
- Bug Reports: Issues
Built with β€οΈ by SouthWest AI Labs