Skip to content

iberi22/OrionHealth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

743 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

OrionHealth πŸ₯

Your Personal Health Data Sanctuary for the Future of Personalized Medicine

License: AGPL v3 Flutter CI Stars Last Commit Privacy First Docs Dart SDK Code Size


πŸ“Š Project Status

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


🌟 Vision

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.


πŸ—οΈ Architecture

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

Key Design Decisions

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

πŸš€ Getting Started

Prerequisites

  • Flutter 3.10+ / Dart 3.10+
  • Android Studio or VS Code with Flutter extension
  • Git LFS (for large model files)

Setup

# 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 run

Build Flavors

OrionHealth 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

πŸ§ͺ Testing

# Run all tests
flutter test

# Watch mode
flutter test --watch

# Coverage report
flutter test --coverage
genhtml coverage/lcov.info -o coverage/html

πŸ› οΈ Key Features

  • πŸ” 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

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/your-feature)
  3. Commit changes (git commit -m "feat: add amazing feature")
  4. Push to the branch (git push origin feat/your-feature)
  5. Open a Pull Request

Issue Labels

Label Purpose
jules Tasks for automated AI agent
bug Bug reports
enhancement Feature requests
dependencies Dependency updates

πŸ“„ License

AGPL-3.0 β€” see LICENSE


πŸ“ž Contact


Built with ❀️ by SouthWest AI Labs

About

Privacy-first, local-first health assistant. Flutter app with on-device SSI (AnonCreds, DID, W3C VCs), clinical AI (symptom analysis, drug interactions), offline medical standards (ICD-10, LOINC, RxNorm, SNOMED CT), and offline health wallet.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors