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

@atbash-plugin/sdk

v0.1.4

Published

Framework-agnostic ATBASH tool-audit SDK: validate endpoint, log on-chain, query judge, verify response signature.

Readme

@atbash-plugin/sdk

TypeScript SDK that gates AI-agent tool calls against the ATBASH policy service. Use it from any Node.js host — LangChain, Vercel AI SDK, MCP, custom agents, scripts, Lambdas — to get a yes/no decision per tool call.

The agent's private key never leaves the machine. Only signed transaction bytes plus the corresponding public key are transmitted.

Install

npm install @atbash-plugin/sdk

Requires Node.js 18+.

Quickstart

A complete, runnable example. Save as quickstart.mjs and run with node quickstart.mjs:

import { createAtbashClient } from "@atbash-plugin/sdk";
import { execSync } from "node:child_process";

const client = createAtbashClient();

const toolName = "shell.exec";
const args = { cmd: "ls /tmp" };

const decision = await client.auditToolCall({
  toolName,
  args,
  context: "quickstart smoke test",
});

console.log(`Verdict: ${decision.verdict}  (allow=${decision.allow})`);
console.log(`Reason:  ${decision.reason ?? "—"}`);

if (!decision.allow) {
  process.exit(1);
}

const output = execSync(args.cmd, { encoding: "utf8" });
console.log("---");
console.log(output);

Expected output on an ALLOW:

Verdict: ALLOW  (allow=true)
Reason:  ALLOW: ...
---
file1
file2
...

createAtbashClient() reads your agent key from ~/.config/atbash/guard-client-key by default. Contact the ATBASH team to register an agent and obtain a key pair.

Get an agent key

Place the agent key pair at ~/.config/atbash/guard-client-key (the default path). The file accepts either JSON:

{
  "privKey": "your-hex-private-key-64-chars",
  "pubKey":  "your-hex-public-key-66-chars"
}

…or key=value:

privkey=your-hex-private-key-64-chars
pubkey=your-hex-public-key-66-chars

Lengths must be exact: privKey is 64 hex chars (32 bytes), pubKey is 66 hex chars (33 bytes — the compressed secp256k1 form, prefixed with 02 or 03). A short or malformed key will be rejected by the judge service with a 400.

To use a different path, pass keyPath:

createAtbashClient({ keyPath: "/etc/atbash/agent-key.json" });

For environments without a writable filesystem (Lambda, container without a mounted secret), pass the key pair inline — see In-memory key below.

Decision shape

type Decision = {
  allow: boolean;
  verdict: "ALLOW" | "HOLD" | "BLOCK" | "ERROR";
  reason?: string;
  toolCallId?: string;
};

| Verdict | allow | What it means | |---|---|---| | ALLOW | true | Approved. | | HOLD | true | Approved with advisory: your UI should ask for confirmation. | | BLOCK | false | Denied. Do not run the tool. | | ERROR | false (when failClosed) | Audit failed. Fails closed by default. |

Configuration

type AtbashClientConfig = {
  keyPath?: string;
  keyPair?: { privKey: string; pubKey: string };
  failClosed?: boolean;
  logger?: { info?: Function; warn?: Function };
};

| Field | Default | Notes | |---|---|---| | keyPath | ~/.config/atbash/guard-client-key | Path to the agent key file. Supports ~/. | | keyPair | — | Provide the key pair inline instead of reading from disk. Useful for serverless / containerised deployments. | | failClosed | true | When true, errors return { allow: false }. When false, errors return { allow: true }. Real BLOCK verdicts always block — failClosed only affects error paths. | | logger | — | Optional { info, warn } sink for telemetry. |

In-memory key

createAtbashClient({
  keyPair: {
    privKey: process.env.ATBASH_PRIVKEY!,
    pubKey:  process.env.ATBASH_PUBKEY!,
  },
});

Fail-closed behaviour

By default, every error in the audit pipeline returns { allow: false, verdict: "ERROR", reason } so the caller can skip the tool safely. Configuration mistakes throw at createAtbashClient time — wrap construction in try/catch if you want to surface them programmatically.

License

Proprietary — all rights reserved. See LICENSE. Commercial licensing inquiries: contact the Atbash team.