JavaScript SDK
The Kist SDK is a small, dependency-light client for Node 18+ and edge runtimes. It mirrors the API and handles authentication for you.
Install
npm install @peaple/kist-sdkGet started
// Node 18+ · ES modulesimport { Kist } from "@peaple/kist-sdk"; const kist = new Kist({ apiKey: process.env.KIST_API_KEY }); // Anchor a signed captureawait kist.anchor({ deviceId, imageHash, signature, captureTimestamp,}); // Verify it laterconst { verified } = await kist.verify(clientId, imageHash);
Methods
| Method | Description |
|---|---|
| anchor(input) | Anchor a signed proof on Solana |
| verify(clientId, imageHashHex) | Verify a proof against Solana |
| enrollDevice(publicKeyHex) | Register a device public key |
| credits() | Read balance and per-op costs |
| usage(limit) | Read recent metered usage |
| sha256Hex(bytes) | Hash content the Kist way |
Works at the edge
The SDK accepts a custom fetch, so it runs in Workers, Deno, and Bun unchanged.