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

@hai.ai/jacs

v0.10.1

Published

JACS (JSON Agent Communication Standard) - Data provenance and cryptographic signing for AI agents

Downloads

863

Readme

JACS for Node.js

Cryptographic identity, signing, and verification for AI agents from Node.js.

npm install @hai.ai/jacs

Prebuilt native bindings are included. A normal install does not require compiling Rust.

Full documentation | Quick Start

Quick start

const jacs = require('@hai.ai/jacs/simple');

await jacs.quickstart({ name: 'my-agent', domain: 'agent.example.com' });
const signed = await jacs.signMessage({ action: 'approve', amount: 100 });
const result = await jacs.verify(signed.raw);
console.log(`Valid: ${result.valid}, Signer: ${result.signerId}`);

All operations are async by default. Sync variants are available with a Sync suffix, for example signMessageSync.

Core operations

| Function | Description | |----------|-------------| | quickstart(options) | Create or load a persistent agent | | load(configPath) | Load an agent from config | | signMessage(data) | Sign JSON data | | signFile(path, embed) | Sign a file | | verify(doc) | Verify a signed document | | verifyStandalone(doc, opts) | Verify without loading an agent | | audit() | Run a security audit |

Text and image provenance

Node exposes the same inline text and image signing surface as the CLI:

import * as jacs from '@hai.ai/jacs/simple';

await jacs.load('./jacs.config.json');

// Markdown/text: append and verify an inline signature block.
await jacs.signText('README.md');
const text = await jacs.verifyText('README.md');
console.log(text.status);  // 'signed' | 'missing_signature' | 'malformed'

try {
  await jacs.verifyText('README.md', { strict: true });
} catch (err) {
  if (/MissingSignature/.test(err.message)) {
    console.log('not signed');
  } else {
    throw err;
  }
}

await jacs.verifyText('README.md', { keyDir: './trusted-keys/' });

// Images: embed and verify a signature in PNG, JPEG, or WebP metadata.
await jacs.signImage('photo.png', 'signed.png');
const image = await jacs.verifyImage('signed.png');
console.log(image.status);  // 'valid'

const payload = await jacs.extractMediaSignature('signed.png');

The same methods are available on the instance-based JacsClient for multi-agent processes. These signatures prove that an agent signed specific canonical bytes at its claimed time; they do not prove first creation or legal ownership.

Verify without an agent

import { verifyStandalone } from '@hai.ai/jacs/simple';

const result = verifyStandalone(signedJson, { keyDirectory: './keys/' });

Cross-language interop is tested on every commit. Documents signed in Rust or Python verify in Node.js, and Node-signed documents verify in the other bindings.

Framework adapters

Adapters for Vercel AI SDK, Express, Koa, LangChain.js, and MCP are available. Framework dependencies are optional peer dependencies.

Instance-based API

For multiple agents in one process:

import { JacsClient } from '@hai.ai/jacs/client';

const client = await JacsClient.quickstart({ name: 'my-agent', domain: 'example.com' });
const signed = await client.signMessage({ action: 'approve' });

See DEVELOPMENT.md for the full API reference, advanced usage, framework adapter examples, and testing utilities.

Links