npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@clawbureau/clawsig-sdk

v0.11.1

Published

Lightweight SDK for emitting verifiable proof bundles from any Node.js agent — model calls, tool receipts, side-effect receipts, human approvals, and capability negotiation.

Downloads

57

Readme

@clawbureau/clawsig-sdk

Lightweight SDK for emitting verifiable proof bundles from any Node.js agent. Five lines to go from raw LLM calls to a cryptographically signed, offline-verifiable evidence pack.

Quickstart

import { createClawsigRun } from '@clawbureau/clawsig-sdk';

const run = await createClawsigRun({
  agentDid: 'did:key:z6Mk...',       // Your agent's DID
  proxyUrl: 'https://proxy.example.com',
  keyFile: '.clawsig-key.json',       // Ed25519 JWK
});

// Record an LLM call
const response = await run.callLLM({
  model: 'claude-sonnet-4-20250514',
  messages: [{ role: 'user', content: 'Explain proof bundles' }],
});

// Finalize → signed proof bundle + URM
const bundle = await run.finalize();
console.log(bundle.path); // artifacts/poh/.../run_xxx-bundle.json

What it records

| Method | Receipt type | Coverage level | |--------|-------------|----------------| | callLLM() | Gateway receipt | M (model) | | recordToolCall() | Tool receipt | MT (model + tools) | | recordSideEffect() | Side-effect receipt | MTS (+ side-effects) | | recordHumanApproval() | Human approval receipt | MTS (+ approvals) | | finalize() | Proof bundle + URM | — |

API

createClawsigRun(options)

Creates a new proof run. Options:

interface ClawsigRunOptions {
  agentDid: string;          // Agent DID (did:key:...)
  proxyUrl: string;          // Clawsig proxy URL
  keyFile?: string;          // Path to Ed25519 JWK key file
  outputDir?: string;        // Output directory (default: artifacts/poh/<branch>/)
  branchName?: string;       // Git branch name for output path
}

run.callLLM(params)

Proxies an LLM call through the gateway and records a gateway receipt.

const response = await run.callLLM({
  model: 'claude-sonnet-4-20250514',
  messages: [{ role: 'user', content: '...' }],
  // All standard OpenAI-compatible params supported
});

run.recordToolCall(params)

Records a tool invocation as a hash-only receipt (arguments and results are digested, not stored).

run.recordToolCall({
  tool_name: 'file_read',
  args_digest: 'sha256:abc123...',    // SHA-256 of JSON-serialized args
  result_digest: 'sha256:def456...',  // SHA-256 of JSON-serialized result
  duration_ms: 42,
});

run.recordSideEffect(params)

Records a side-effect (network call, file write, external API write).

run.recordSideEffect({
  effect_class: 'network_egress',     // or 'filesystem_write', 'external_api_write'
  target_digest: 'sha256:...',        // Digest of target URL/path
  request_digest: 'sha256:...',
  response_digest: 'sha256:...',
  vendor_id: 'api.github.com',
  bytes_written: 1024,
});

run.recordHumanApproval(params)

Records a human approval decision that gates capability minting.

run.recordHumanApproval({
  approval_type: 'explicit_approve',  // or 'explicit_deny', 'auto_approve', 'timeout_deny'
  scope_hash_b64u: '...',             // Scope being approved
  plan_hash_b64u: '...',              // Hash of the proposed plan
  approver_subject: '[email protected]',
  capability_minted: true,
});

run.finalize()

Finalizes the run, signs the proof bundle, and writes all artifacts.

Returns:

interface FinalizeResult {
  path: string;           // Path to proof bundle JSON
  urmPath: string;        // Path to URM (Universal Receipt Manifest)
  trustPulsePath: string; // Path to trust pulse
  runId: string;          // Run UUID
  eventCount: number;     // Number of events in the chain
  receiptCount: number;   // Number of gateway receipts
}

Verification

Proof bundles produced by this SDK can be verified offline with:

npx @clawbureau/clawverify-cli verify proof-bundle --input run_xxx-bundle.json

Or programmatically:

import { verifyProofBundle } from '@clawbureau/clawverify-core';
const result = verifyProofBundle(bundleJson, config);
// result.status === 'PASS' | 'FAIL'

Coverage levels

The Clawsig Protocol defines three coverage levels:

  • M (Model): Gateway receipts prove which model was called
  • MT (Model + Tools): Tool receipts prove which tools were invoked
  • MTS (Model + Tools + Side-effects): Side-effect and human approval receipts prove what external effects occurred and who approved them

Learn more

Enterprise

Running AI agents in regulated environments? Claw EA provides approval gates, DLP redaction, audit trails, and compliance evidence for SOX, HIPAA, and FedRAMP.

See enterprise plans →

License

MIT