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

@datacules/agent-identity-cli

v0.13.0

Published

CLI for @datacules/agent-identity — audit chain verification, compliance reports, credential resolution testing

Readme

@datacules/agent-identity-cli

CLI for @datacules/agent-identity. Verify audit chain integrity, generate SOC 2 / GDPR / HIPAA compliance reports, and test credential resolution — all from the command line.

Part of the agent-identity monorepo by Datacules LLC.

Installation

npm install -g @datacules/agent-identity-cli

or run without installing:

npx @datacules/agent-identity-cli audit verify --file ./audit.jsonl

Prerequisites

  • Node.js ≥ 20
  • @datacules/agent-identity-compliance installed in the same project (peer dependency)

Commands

audit verify

Verify the SHA-256 hash chain of a JSONL audit log produced by HashChainAuditLogger.

# Verify an entire log
agent-identity-cli audit verify --file ./audit.jsonl

# Verify only entries within a date range
agent-identity-cli audit verify --file ./audit.jsonl --from 2026-01-01 --to 2026-03-31

Output on success:

✓ Audit chain intact
  Entries verified : 14872
  Root hash        : a3f9c21e84b72d19…

Output on failure:

✗ Audit chain BROKEN
  Entries checked  : 14872
  Broken at index  : 8431
  Reason           : Entry 8431: hash mismatch — entry data appears to have been modified

Exit code 0 = intact, 1 = broken or error.


report <soc2|gdpr|hipaa>

Generate a compliance report from a JSONL audit log.

# SOC 2 CC6 report — JSON to stdout
agent-identity-cli report soc2 --file ./audit.jsonl --from 2026-01-01 --to 2026-03-31

# GDPR Article 30 report — Markdown format
agent-identity-cli report gdpr --file ./audit.jsonl --format markdown

# HIPAA §164.312 report — write to directory
agent-identity-cli report hipaa --file ./audit.jsonl --output ./compliance-reports/

Flags:

| Flag | Default | Description | |------|---------|-------------| | --file <path> | required | JSONL audit log file | | --from <date> | start of current month | ISO 8601 date (e.g. 2026-01-01) | | --to <date> | now | ISO 8601 date | | --format | json | json or markdown | | --output <dir> | stdout | Directory to write the report file |


health

Check if the agent-identity server (Next.js dashboard or Docker sidecar) is running.

agent-identity-cli health
agent-identity-cli health --url http://localhost:3001   # sidecar

resolve

Test credential resolution against the running server. Useful for verifying routing rules.

agent-identity-cli resolve --provider openai --user user-123
agent-identity-cli resolve --provider anthropic --user user-456 --url http://localhost:3001

Output on success:

{
  "resolvedFor": "user-123",
  "credentialId": "cred-openai-prod",
  "provider": "openai"
}

Typical compliance workflow

# 1. Your agent runs. The HashChainAuditLogger writes JSONL to a file.

# 2. At quarter end, verify the log is untampered:
agent-identity-cli audit verify --file /var/log/agent-identity/audit.jsonl \\
  --from 2026-01-01 --to 2026-03-31

# 3. Generate the compliance report:
agent-identity-cli report soc2 --file /var/log/agent-identity/audit.jsonl \\
  --from 2026-01-01 --to 2026-03-31 \\
  --output ./compliance-reports/

# 4. Attach the report to your SOC 2 audit package.

Producing a JSONL audit log

import { createWriteStream } from 'node:fs';
import { HashChainAuditLogger } from '@datacules/agent-identity-compliance';
import { createRouterFromStore } from '@datacules/agent-identity';

// Write one JSON object per line to a file
const stream = createWriteStream('/var/log/agent-identity/audit.jsonl', { flags: 'a' });
const fileSink = { log: (e: unknown) => stream.write(JSON.stringify(e) + '\n') };

const auditLogger = new HashChainAuditLogger(fileSink);
const router = createRouterFromStore(store, rules, auditLogger);

Architecture note

All CLI I/O is injected via function closures (readFile, fetch, writeFile) so every public function (parseArguments, runAuditVerify, runReport, runHealth, runResolve) can be unit-tested without a live server or filesystem. The test suite covers 14 cases across 5 suites in packages/cli/src/cli.test.ts.

License

Datacules Open Source License — permissive, commercial-friendly.