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

@hesohq/sdk

v0.4.3

Published

The compliance layer for AI agents (Node) — verify heso Action Receipts, gate agent actions against policy, and push receipts to the cloud.

Downloads

1,010

Readme

@hesohq/sdk

The compliance layer for AI agents, for Node. Verify heso Action Receipts, enforce a minimum trust level, gate a Node agent's actions against policy, and push receipts to the cloud outbox — with the native verifier bundled (zero crypto in TypeScript).

You hold the signing keys. heso's cloud can verify and mirror receipts but can never forge one — so anyone (a customer, an auditor, a court) can check exactly what your agent did, and that it was authorized, without trusting heso at all.

npm install @hesohq/sdk      # or: pnpm add @hesohq/sdk   (Node 18+)

The native verifier (@hesohq/node) is pulled in automatically — verification runs locally and offline. A cloud API key is needed only for the cloud client (pushReceipt, pollApproval, and friends).

Verify a receipt

import { gate } from '@hesohq/sdk'

const result = gate(receipt, { minTrust: 'L1' })
// → { verdict: 'Valid', trust: 'L1', ... }   re-runs hash + signature math locally

Throw on anything below your bar:

import { assertGate } from '@hesohq/sdk'

assertGate(receipt, { minTrust: 'L1' })   // raises unless Valid and ≥ L1

Or branch on the decision:

import { isDecisionAllowed } from '@hesohq/sdk'
import type { ActionReceipt } from '@hesohq/sdk'

if (isDecisionAllowed(receipt)) { /* ... */ }

Gate a Node agent

import { wrap, pushReceipt } from '@hesohq/sdk'

const guarded = wrap(agentClient, {
  onReceipt: async (receiptJson) => {
    await pushReceipt(JSON.parse(receiptJson))   // server re-verifies before mirroring
  },
})

There are also thin adapters for the AI SDK (aiSdk) and Mastra (mastra), all built on the same engine.gate core.

Push to the cloud outbox

import { configure, pushReceipt } from '@hesohq/sdk'

configure(process.env.HESO_API_KEY!, 'https://api.heso.ca')

const result = await pushReceipt(receipt)   // server re-verifies, then mirrors

pushReceipts takes an array for batches. The cloud holds no signing keys — it only verifies and mirrors what you've already signed.

Trust model

heso proves an action was authorized under policy, and at L1 that an authorized human approved or blocked it. It does not prove the action's outcome was truthful — that's unprovable from the artifact. Trust grades are L0 (operator) and L1 (operator + human approver). The receipt format is specified in ACTION-RECEIPT-1.0.


Proprietary. See heso.ca for licensing and the hosted console.