synheart_session 0.2.0
synheart_session: ^0.2.0 copied to clipboard
Flutter SDK for live HR/HRV session tracking — typed event streams driven by pluggable biosignal and behavior providers.
Changelog #
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased #
0.2.0 - 2026-05-06 #
Initial open-source release of the Synheart Session SDK for Flutter.
The SDK runs a live session engine that consumes a BiosignalProvider
(any HR/HRV source — synheart_wear, a BLE HRM, an Apple Watch relay,
or your own implementation) and an optional BehaviorProvider, then
emits typed session events: SessionStarted, BiosignalFrame,
SessionFrame, SessionSummary, SessionError.
Public surface #
SynheartSessionfacade withliveandmockconstructors.LiveSessionEngine— Dart-side engine driving real HR data through a circular buffer with SDNN/RMSSD computed from real RR intervals.BiosignalProvider/BehaviorProviderabstractions for pluggable inputs.MockBiosignalProvider(sinusoidal BPM at 1 Hz) andMockBehaviorProvidership for local development.WatchBiosignalProviderfor relaying HR from a paired Apple Watch viaWCSession.- Configurable
ComputeProfile(window size, emit interval). - iOS plugin (
SynheartSessionPlugin.swift) and Android plugin (SynheartSessionPlugin.kt+WatchSessionRelay.kt) implement the watch relay overWCSessionand the Wearable Data LayerMessageClient.
Platform support #
- iOS 13.0+
- Android API 21+ (Android 5.0+)
- Flutter 3.22.0+