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

@identiqube/provenant-sdk

v0.10.0

Published

Provenant client SDK — authorize, simulate, and complete agent actions through the control plane.

Readme

@identiqube/provenant-sdk

The few lines an autonomous agent adds to become governable. The SDK wraps the Provenant action gateway: authorize, simulate, and complete.

import { ProvenantClient } from '@identiqube/provenant-sdk';

const provenant = new ProvenantClient({
  baseUrl: process.env.PROVENANT_API!,
  apiKey: process.env.PROVENANT_KEY!, // per-agent key, shown once at creation
});

// 1. Ask before acting.
const decision = await provenant.authorize({
  type: 'payment.send',
  resource: 'vendor:acme',
  valueCents: 2_500,
});

// 2. Branch on the decision (a `deny` is returned, not thrown).
if (decision.status === 'authorized') {
  const externalRef = await payVendor(/* ... */);
  // 3. Report the real-world outcome.
  await provenant.complete(decision.id, { success: true, externalRef });
} else if (decision.status === 'pending_approval') {
  // held for a human — approvalId is on decision.approvalId
} else {
  console.warn('denied:', decision.decision.reason);
}

guard helper

Authorize, run, and report completion in one call:

const { authorized, result } = await provenant.guard(
  { type: 'payment.send', resource: 'vendor:acme', valueCents: 2_500 },
  async () => ({ result: await payVendor(), externalRef: 'ext_123' }),
);

Governed tools (any framework)

governTool wraps a tool's executor so every call is authorized, executed, and completed through Provenant — with no framework dependency. Drop it into the Vercel AI SDK, LangChain, OpenAI function-calling, or a plain async (args) => result.

import { ProvenantClient, governTool } from '@identiqube/provenant-sdk';
import { tool } from 'ai'; // Vercel AI SDK
import { z } from 'zod';

const pay = tool({
  description: 'Pay a vendor invoice',
  parameters: z.object({ vendor: z.string(), amountCents: z.number() }),
  execute: governTool(provenant, payVendor, {
    type: 'payment.send',
    resource: (a) => `vendor:${a.vendor}`,
    valueCents: (a) => a.amountCents,
  }),
});
// LangChain: wrap the tool's func the same way.
new DynamicStructuredTool({
  name: 'pay', description: 'Pay a vendor', schema,
  func: governTool(provenant, payVendor, { type: 'payment.send', resource: (a) => `vendor:${a.vendor}`, valueCents: (a) => a.amountCents }),
});

When policy allows, the tool runs and the outcome is reported automatically. When it denies or holds for approval, the tool never runs and the call resolves to a GovernBlocked object the model reads as the tool result:

{ "provenant": "blocked", "status": "denied", "reason": "over budget",
  "approvalId": null, "actionId": "act_2" }

The agent then explains the refusal (or that it's awaiting a human) instead of acting — a clean, on-brand deny rather than an exception.

Dry-run

const sim = await provenant.simulate({ type: 'payment.send', resource: 'vendor:acme', valueCents: 9_999 });
console.log(sim.decision.effect, sim.budgetImpact);

authorize/simulate/complete throw a ProvenantError only on auth/validation/network failures — a policy denial is a normal decision returned on the result so the agent can branch on decision.status.