@agevine/wearables
v0.2.0
Published
The open-source Agevine Wearables SDK for IoT integration
Readme
@agevine/wearables
The official Node.js SDK for streaming smartwatch and IoT health data into the Agevine platform.
Installation
npm install @agevine/wearablesUsage
Use this SDK to push Apple Watch, Fitbit, or Garmin health vitals directly into your Agevine dashboard in real-time.
import { AgevineClient, OuraAdapter } from '@agevine/wearables';
const client = new AgevineClient({
endpoint: 'http://localhost:3001' // Your Agevine API Gateway URL
});
// 1. Sync Vitals via REST
await client.syncVitals({
patientId: 1,
heartRate: 72,
steps: 3500,
bloodOxygen: 98
});
// 2. Stream Vitals via WebSockets (60Hz)
client.startStream(1, () => {
client.streamData({ patientId: 1, heartRate: 75 });
});
// 3. Connect 3rd Party Clouds
const oura = new OuraAdapter();
// oura.fetchVitals(token)...Native Modules
For native mobile applications, you can link the included swift/kotlin modules directly into your Xcode/Android Studio projects:
- iOS:
import AgevineHealthKit - Android:
import com.agevine.wearables.AgevineHealthConnect
License
MIT
