Overview
The Synheart Core Dart/Flutter SDK provides a unified API for collecting HSI-compatible data, processing human state on-device, and generating focus/emotion signals in Flutter applications. Key Features:- Cross-platform support (iOS + Android)
- On-device HSI Runtime
- Real-time state updates
- Modular design (enable only what you need)
- Privacy-first architecture
Installation
Add to yourpubspec.yaml:
Platform Configuration
iOS Configuration
Add toios/Runner/Info.plist:
Android Configuration
Add toandroid/app/src/main/AndroidManifest.xml:
Basic Usage
Initialize the SDK
Subscribe to HSI Updates
The HSI (Human State Intelligence) stream emits raw JSON from the on-device runtime:Enable Interpretation Modules
Interpretation modules are optional and must be explicitly enabled:Enable Cloud Connector
Upload state snapshots (as HSI 1.0 format) to the cloud (requires user consent):Complete Example
HSI State Reference
TheHumanStateVector object contains the core human state representation:
The HSI Runtime now emits raw JSON strings via
onHSIUpdate. These internal types are used for on-device processing.Focus Module
Emotion Module
Cloud Connector
The Cloud Connector automatically uploads state snapshots (as HSI 1.0 format) to the Synheart Platform:Configuration Options
Error Handling
Privacy & Consent
The SDK enforces consent at multiple levels:Performance Considerations
- HSI updates: ~80ms latency
- CPU usage: ~1.5%
- Memory footprint: ~12MB
- Battery impact: ~0.3%/hr
API Reference
Synheart
Main SDK class.
Static Methods:
| Method | Description | Returns |
|---|---|---|
initialize() | Initialize the SDK | Future<void> |
activate(feature) | Activate a feature module | void |
deactivate(feature) | Deactivate a feature module | void |
uploadNow() | Force immediate upload | Future<void> |
flushUploadQueue() | Flush entire upload queue | Future<void> |
dispose() | Cleanup resources | Future<void> |
| Stream | Type | Description |
|---|---|---|
onHSIUpdate | Stream<String> | HSI state updates (every 30s) |
onFocusUpdate | Stream<FocusState> | Focus state estimates |
onEmotionUpdate | Stream<EmotionState> | Emotion state estimates |
Resources
- Repository: synheart-core-sdk-dart
- pub.dev: synheart_core
- API Docs: API Reference
- Issues: GitHub Issues
Related Documentation
- HSV Specification - Understand Synheart Core’s internal state model
- Architecture - Deep dive into the system
- Capability System - Access levels and permissions
Author: Israel Goytom