Treeship
SDK & Bridges

@treeship/sdk

TypeScript SDK for Treeship. Embeds WASM core, zero subprocess.

The SDK is currently in development. Track progress at github.com/zerkerlabs/treeship.

Install

npm install @treeship/sdk

Usage

import { ship } from '@treeship/sdk';

const s = await ship();

// Attest any action
const { artifactId } = await s.attest.action({
  action: 'openai.chat.completion',
  meta: { model: 'gpt-4o', tokens: 1247 },
});

// Verify it
const result = await s.verify.verify(artifactId);
console.log(result.outcome); // "pass"

// Push to Hub
const { hubUrl } = await s.dock.push(artifactId);
console.log(hubUrl); // https://treeship.dev/verify/art_xxx

Key design rules

Zero subprocess

Embeds @treeship/core-wasm. No child_process.execFile.

Works everywhere

Node, Deno, Bun, and browser environments.

Never stores sensitive content

Hash payloads, not content.

Graceful degradation

Treeship failures never surface as errors to your code.