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

@vanditk2/agentvault-sdk

v0.1.0

Published

TypeScript SDK for AgentVault — the open-source trust and control layer for AI-agent payments.

Readme

@vanditk2/agentvault-sdk

TypeScript client for AgentVault — the open-source trust and control layer for AI-agent payments.

Heads up: the SDK on its own doesn't move money. It talks to an AgentVault checkpoint (the control plane that verifies the credential, enforces budgets, escalates anything unusual, and routes to the right payment protocol). Today AgentVault is self-host — to use this SDK in production you also need to be running your own checkpoint. See the main repo for the self-host quickstart.

Install

npm install @vanditk2/agentvault-sdk

Requires Node 20+.

Usage

import { AgentVault } from "@vanditk2/agentvault-sdk";

const vault = new AgentVault({
  credential: process.env.AGENT_CREDENTIAL!,   // a signed JWT issued by your AgentVault dashboard
  checkpointUrl: "https://your-checkpoint.example.com",
});

const result = await vault.pay({
  endpoint: "https://api.someservice.com/data",
  maxAmount: 0.05,
});

if (result.status === "approved") {
  // result.protocol → "x402" | "mpp" | "acp"
  // result.receipt  → vendor, amount, settled, timestamp, receiptId
  // result.trustTier
}

pay() probes the endpoint to detect which agentic payment protocol it speaks (x402 / MPP / ACP), then POSTs to your checkpoint's /checkpoint endpoint with the credential + vendor + amount + protocol + endpoint. Your checkpoint runs the full decision pipeline and either approves, escalates (and holds while a human decides), or blocks.

What the credential carries

The signed JWT encodes the spending rules the checkpoint will enforce:

{
  "agentId": "clx123abc",
  "agentName": "Research Agent",
  "walletAddress": "0x52ce…",
  "authorizedBy": "[email protected]",
  "dailyCap": 10.0,
  "perTxLimit": 0.5,
  "approvedVendors": ["exa.ai", "hyperbolic.xyz"],
  "vendorLimits": { "exa.ai": 2.0 },
  "supportedProtocols": ["x402", "mpp", "acp"],
  "issuedAt": 1748390400,
  "expiresAt": 1748476800
}

Generate these from the AgentVault dashboard's "Register agent" form. The checkpoint verifies the signature against the dashboard's JWT_SECRET — both must match.

What status values mean

| status | Meaning | |---|---| | approved | The payment passed every check and was settled by the matching protocol handler. receipt is populated with the on-chain (or mock) settlement details. | | recognized | The protocol was identified but the handler doesn't execute the payment yet (ACP today). settled: false. | | escalated | The payment was held while a human reviewed it (then resolved as approved or blocked). | | blocked | A budget, trust, vendor, or settlement check failed. reason says which. |

Direct protocol detection

If you just want to know which protocol an endpoint expects without making a payment:

import { detectProtocol } from "@vanditk2/agentvault-sdk";

const protocol = await detectProtocol("https://api.someservice.com/data");
// → "x402" | "mpp" | "acp" | "unknown"

License

MIT