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

@vextlabs/stoa-guard

v0.1.0

Published

Wire ANY AI into STOA in one line. Wrap a tool/function so it is gated (prove-or-permit before it runs), permit-carrying, and receipted automatically — against the open STOA API, verifiable by anyone. From Vext Labs.

Readme

@vextlabs/stoa-guard

Wire any AI into STOA in one line. Wrap a tool or function and it becomes:

  • gated — STOA proves-or-permits the action before it runs (deterministic checks: financial bounds, unscoped-SQL refusal, sandboxed code, delete safety),
  • permit-carrying — you get a short-lived signed permit the executor/vendor can verify,
  • receipted — every action leaves a tamper-proof record anyone can verify offline with @vextlabs/stoa-verifier, trusting no one.

It wraps your execution, so it works with OpenAI, Anthropic, LangChain, CrewAI, or your own code. Apache-2.0, zero dependencies.

npm install @vextlabs/stoa-guard

Get a token at https://tryvext.com/api-keys (scope: cap_call).

One line

import { createStoaGuard } from '@vextlabs/stoa-guard';

const stoa = createStoaGuard({ token: process.env.STOA_TOKEN! });

// Wrap any tool — same signature, now gated + permitted + receipted:
const safeCharge = stoa.guard(
  'urn:stoa:cap:stripe.charges.create',
  (input) => stripe.charges.create(input),
);

await safeCharge({ amount_cents: 4000, currency: 'usd' });
// Gates first. Throws StoaBlockedError if the gate refuses (e.g. a $9M charge,
// a DELETE without a WHERE). Runs your function only if the action is allowed.

More control

// Inspect the verdict + permit without running anything:
const { verdict, permit } = await stoa.check({ cap, input });

// Gate + run, and get everything back:
const { result, verdict, permit, receipt_id } = await stoa.run({ cap, input }, () => myTool(input));

// Prove what an action WOULD do, before it commits (executes nothing):
const { predicted_effect } = await stoa.simulate({ cap, input });

Modes

  • enforce (default) — a blocked action throws StoaBlockedError; an abstained one throws StoaHeldError unless you pass confirmed: true or an onAbstain handler that returns true.
  • observe — never throws on the verdict; runs the action and attaches the verdict. Dark-launch with zero behavior change, then flip to enforce.
const stoa = createStoaGuard({ token, mode: 'observe' });

Verify, trusting no one

Every permit and receipt is an ES256 JWS over a canonical payload, verifiable offline against the public key at /.well-known/stoa/jwks.json:

import { verifyPermit } from '@vextlabs/stoa-verifier';
const ok = await verifyPermit({ permit, cap, input, nowSeconds: Math.floor(Date.now() / 1000), publicJwk });

Learn more: https://stoa.tryvext.com · spec + capabilities at /.well-known/stoa/capabilities.json.