Getting Started

Get VitalClaw running in under 5 minutes.

Prerequisites

Installation

# npm
npm install @vitalclaw/sdk

# pnpm
pnpm add @vitalclaw/sdk

# yarn
yarn add @vitalclaw/sdk

Quick Start

Step 1: Create the Engine

import { VitalClawEngine } from "@vitalclaw/sdk";

const engine = new VitalClawEngine({
  userId: "user-001",
  providers: [],
});

Step 2: Ingest Health Data

engine.ingest([
  { id: "1", userId: "user-001", metric: "heart_rate",
    value: 72, unit: "bpm", timestamp: new Date().toISOString(), source: "fitbit" },
  { id: "2", userId: "user-001", metric: "steps",
    value: 8432, unit: "steps", timestamp: new Date().toISOString(), source: "fitbit" },
]);

Step 3: Get Insights

const summary = engine.getDailySummary();
console.log(summary.wellnessScore); // 78
console.log(summary.cardiac.restingHeartRate); // 72
console.log(summary.activity.steps); // 8432

What Happens Under the Hood

StepComponentAction
1IngestionData points stored, normalized, and deduplicated
2Alert EngineEach point evaluated against threshold rules (HR > 120, SpO2 < 90, etc.)
3Summary BuilderAggregates data by category (cardiac, activity, sleep, body, stress)
4Wellness ScorerComputes composite 0-100 score from all categories

Next Steps