Unified SDK for all Synheart features β single integration point for human-state intelligence
The Synheart Core SDK is the single, unified integration point for developers who want to compute human state on-device (HSV), optionally generate focus/emotion interpretations, integrate with Syni, and export derived HSI 1.0 snapshots to the cloud (with user consent) and other external systems.
- π Unified API: Single SDK for all Synheart features
- π§ HSV Runtime: On-device human state fusion and inference
- π± Multi-Module: Wear, Phone, Behavior, HSV, Consent, Cloud, Syni
- β‘ On-Device Processing: All inference happens locally
- π Privacy-First: Zero raw data, consent-gated, capability-based
- π Multi-Platform: Flutter/Dart, Android/Kotlin, iOS/Swift (same HSV state space, native implementations)
- π― Capability System: Core/Extended/Research modes
- π€ HSI 1.0 Export: Export HSV to cross-platform JSON format for external systems
The Core SDK is available for mobile platforms:
dependencies:
synheart_core: ^1.0.0π Repository: synheart-core-sdk-dart
dependencies {
implementation("ai.synheart:core-sdk:1.0.0")
}π Repository: synheart-core-sdk-kotlin
Swift Package Manager:
dependencies: [
.package(url: "https://github.com/synheart-ai/synheart-core-sdk-swift.git", from: "1.0.0")
]π Repository: synheart-core-sdk-swift
This repository serves as the source of truth for shared resources across all SDK implementations:
synheart-core/
βββ docs/ # Technical documentation (specs)
β βββ HSI_SPECIFICATION.md
β βββ HSV_vs_HSI.md
β βββ rfc-hsv.md
β βββ CONSENT_SYSTEM.md
β βββ CLOUD_PROTOCOL.md
βββ examples/ # Example apps
βββ scripts/ # Build and deployment scripts
βββ CONTRIBUTING.md # Contribution guidelines for all SDKs
Platform-specific SDK repositories (maintained separately):
- synheart-core-sdk-dart - Flutter/Dart SDK
- synheart-core-sdk-kotlin - Android/Kotlin SDK
- synheart-core-sdk-swift - iOS/Swift SDK
import 'package:synheart_core/synheart_core.dart';
// Initialize Core SDK
await Synheart.initialize(
userId: 'anon_user_123',
config: SynheartConfig(
enableWear: true,
enablePhone: true,
enableBehavior: true,
),
);
// Subscribe to HSV updates (core state representation)
Synheart.onHSVUpdate.listen((hsv) {
print('Arousal Index: ${hsv.meta.axes.affect.arousalIndex}');
print('Engagement Stability: ${hsv.meta.axes.engagement.engagementStability}');
});
// Optional: Enable interpretation modules
await Synheart.enableFocus();
Synheart.onFocusUpdate.listen((focus) {
print('Focus Score: ${focus.score}');
});
await Synheart.enableEmotion();
Synheart.onEmotionUpdate.listen((emotion) {
print('Stress: ${emotion.stress}');
print('Calm: ${emotion.calm}');
});
// Enable cloud upload (with consent)
await Synheart.enableCloud();import ai.synheart.core.Synheart
import ai.synheart.core.SynheartConfig
// Initialize
Synheart.initialize(
userId = "anon_user_123",
config = SynheartConfig(
enableWear = true,
enablePhone = true,
enableBehavior = true
)
)
// Subscribe to HSV updates (core state representation)
Synheart.onHSVUpdate.collect { hsv ->
println("Arousal Index: ${hsv.meta.axes.affect.arousalIndex}")
println("Engagement Stability: ${hsv.meta.axes.engagement.engagementStability}")
}
// Optional: Enable interpretation modules
Synheart.enableFocus()
Synheart.onFocusUpdate.collect { focus ->
println("Focus Score: ${focus.score}")
}
// Enable cloud
Synheart.enableCloud()import SynheartCore
// Initialize
Synheart.initialize(
userId: "anon_user_123",
config: SynheartConfig(
enableWear: true,
enablePhone: true,
enableBehavior: true
)
)
// Subscribe to HSV updates (core state representation)
Synheart.onHSVUpdate.sink { hsv in
print("Arousal Index: \(hsv.meta.axes.affect.arousalIndex)")
print("Engagement Stability: \(hsv.meta.axes.engagement.engagementStability)")
}
// Optional: Enable interpretation modules
Synheart.enableFocus()
Synheart.onFocusUpdate.sink { focus in
print("Focus Score: \(focus.score)")
}
// Enable cloud
Synheart.enableCloud()The Core SDK consolidates all Synheart signal channels:
Synheart Core SDK
β
βββ Wear Module
β (HR, HRV, sleep, motion β derived signals only)
β
βββ Phone Module
β (motion, screen state, coarse app context)
β
βββ Synheart Behavior (Module)
β (interaction patterns: taps, scrolls, typing cadence)
β
βββ HSV Runtime (On-device)
β - multimodal fusion
β - produces HSV (Human State Vector)
β - state axes & indices
β - time windows (30s, 5m, 1h, 24h)
β - 64D state embedding
β
βββ Interpretation Modules (Optional)
β βββ EmotionHead (uses synheart-emotion package)
β β (affect modeling - optional, explicit enable)
β β Powered by: synheart-emotion SDK
β βββ FocusHead (uses synheart-focus package)
β (engagement/focus estimation - optional, explicit enable)
β Powered by: synheart-focus SDK
β
βββ Consent Module
β (permissions, masking, enforcement)
β
βββ Cloud Connector
β (secure, consent-gated uploads)
β
βββ Syni Hooks
(HSV context + optional interpretations)
State Representation:
βββ HSV (Language-agnostic state representation)
β - Implemented in native types per platform
β - Dart: classes, Kotlin: data classes, Swift: structs
β - Fast, type-safe on-device processing
β
βββ HSI 1.0 (Cross-platform wire format)
- JSON validated against canonical schema
- For external systems and cross-platform communication
Each module reads capability flags from Auth:
| Module | Core | Extended | Research |
|---|---|---|---|
| Wear | derived biosignals | higher freq | raw streams |
| Phone | motion, screen | advanced app context | full context |
| Behavior | basic metrics | extended metrics | event-level streams |
| HSV Runtime | basic state | full embedding | full fusion vectors |
| Connector | ingest | extended endpoints | research endpoints |
Only Synheart apps (Syni Life, SWIP, Platform) get extended/research capabilities. External apps get core only.
- Product Requirements - Product specification and goals
- HSV + HSI Specification - HSV (internal) + HSI 1.0 (external) specifications
- RFC-0001: HSV - Normative description of HSV boundaries and properties
- RFC-0002: Consent - User permission model (alias for canonical text)
- RFC-0003: Capability - App authorization model
- RFC-0004: Access Control - Canonical access decision procedure
- Capability System - Access level enforcement
- Consent System - Permission model and enforcement
- Cloud Protocol - Secure ingestion protocol
- Contributing Guide - How to contribute (covers all SDKs)
- Changelog - Version history for all SDKs
- Zero Raw Content: No text, mic, URLs, messages
- On-Device Processing: All inference happens locally
- No Raw Biosignals: Only derived signals externally
- Consent-Gated: All cloud uploads require explicit consent
- Capability-Enforced: Feature access tied to app signature and tenant ID
- CPU: < 2%
- Memory: < 15MB
- Battery: < 0.5%/hr
- HSV Updates: β€ 100ms latency
- Cloud Upload: β€ 80ms request time
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Apache 2.0 License - see LICENSE for details.
Synheart Core depends on the following SDKs as implementation layers:
-
Synheart Emotion - Powers EmotionHead module
- Provides emotion inference from biosignals (HR/RR)
- Used by: EmotionHead for affect modeling
- Detects: Amused, Calm, Stressed states
- Schema validated against HSI specification
-
Synheart Focus - Powers FocusHead module
- Provides cognitive concentration inference
- Used by: FocusHead for engagement/focus estimation
- Outputs: Focus score, cognitive load, clarity
- Schema validated against HSI specification
-
Synheart Wear - Wearable device integration
- Used by: Wear Module for biosignal collection
- Supports: Apple Watch, Garmin, WHOOP, etc.
-
Synheart Behavior - Digital behavioral signal capture
- Used by: Behavior Module for interaction patterns
- Tracks: Taps, scrolls, typing cadence, idle patterns
Runtime Dependencies (package):
synheart-core β synheart-emotion (EmotionHead implementation)
synheart-core β synheart-focus (FocusHead implementation)
synheart-core β synheart-wear (Wear Module)
synheart-core β synheart-behavior (Behavior Module)
Schema Validation (no code dependency):
synheart-emotion β validates against HSI_SPECIFICATION.md
synheart-focus β validates against HSI_SPECIFICATION.md
Key Principle:
- synheart-emotion and synheart-focus remain standalone SDKs
- They can be used independently without synheart-core
- synheart-core uses them as implementation layers for EmotionHead and FocusHead
- Their output schemas are validated against HSI specification for compatibility
Author: Israel Goytom
Organization: Synheart AI <3