SDK v1: Integration Guide
Deploy deterministic guardrails and cryptographic identity anchors in your LLM pipeline.
1
Installation
# via npm
npm install @humaniskind/sdk-v1
npm install @humaniskind/sdk-v1
2
Initialize Middleware
The SDK acts as a Zero-Trust bridge. Every request must be signed against your Policy Manifest.
const { IntegrityEngine } = require(‘@humaniskind/sdk-v1’);
const engine = new IntegrityEngine({
policyId: ‘p_0x882a…’,
merkleRoot: ‘0x77f2…’ // Your source anchor
});
3
Generate Sacred Trace™
Input Data
- Raw User Query
- Deterministic Policy JSON
- Content-Addressed Corpus
Trace Receipt
HK_TRACE_v1_0x551277a…
Verified at runtime via Merkle proof.
Core API Methods
| Method | Description |
|---|---|
| .anchor() | Creates a Merkle Tree from source corpus. |
| .validate() | Compares LLM output against policy constraints. |
| .trace() | Generates the final cryptographic receipt. |