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

@oxdeai/cli

v0.2.4

Published

Protocol-focused CLI tooling for OxDeAI artifact build/verify/replay workflows

Readme

@oxdeai/cli

Protocol-oriented command-line tooling for OxDeAI.

@oxdeai/cli is a thin Node.js wrapper around @oxdeai/core verification and local state workflows. It is framework-agnostic and intended for local policy operations, artifact inspection, and deterministic verification.

Quickstart

End users

Install the CLI:

npm install -g @oxdeai/cli

Basic commands:

oxdeai --help
oxdeai --version
oxdeai verify snap
oxdeai verify envelope
oxdeai build snapshot

Local monorepo contributors

Build the package from the repo root:

pnpm -C packages/cli build

Run the CLI from the monorepo root:

pnpm oxdeai --help
pnpm oxdeai --version
pnpm oxdeai verify snap --file packages/cli/.oxdeai/snapshot.bin --json

Run it from inside packages/cli:

pnpm build
node dist/main.js --help
node dist/main.js verify snap --file .oxdeai/snapshot.bin --json

For a local global-style workflow:

cd packages/cli
npm link
oxdeai --help

Command Surface

  • oxdeai build
  • oxdeai verify
  • oxdeai replay

Legacy helper commands are still available (init, launch, state, audit, verify-audit, make-envelope, verify-envelope, snapshot-hash) for local development workflows.

Core Commands

build

Builds a canonical snapshot verification payload from state.

oxdeai build snapshot
oxdeai build --state .oxdeai/state.json --out .oxdeai/snapshot.bin --json

verify

Verifies one artifact kind at a time:

  • snapshot
  • audit
  • envelope
  • authorization

Examples:

oxdeai verify snap
oxdeai verify audit
oxdeai verify envelope
oxdeai verify auth --file authorization.json --expected-issuer oxdeai://issuer --expected-audience rp://tool-gateway --json
oxdeai verify --kind snapshot --file snapshot.bin --json
oxdeai verify --kind audit --file audit.ndjson --mode strict --json
oxdeai verify --kind envelope --file envelope.bin --trusted-keyset keyset.json --require-signature --json
oxdeai verify --kind authorization --file authorization.json --expected-issuer oxdeai://issuer --expected-audience rp://tool-gateway --json

verify auth does not assume a default file. Pass --file <authorization.json> explicitly.

replay

Protocol-aware stub in 0.1.x. It returns a clear unsupported response and points users to deterministic audit verification (verify --kind audit).

Output and Exit Codes

  • Human-readable output by default
  • Machine-readable output with --json

Exit codes:

  • 0 = verification ok / command success
  • 1 = verification invalid or malformed input/runtime failure
  • 2 = usage/flag parsing error
  • 3 = verification inconclusive

Troubleshooting

  • If oxdeai: command not found, the package is not installed or linked globally yet. Use npm install -g @oxdeai/cli or npm link from packages/cli.
  • In the monorepo, prefer pnpm oxdeai ... from the repo root or node dist/main.js ... from packages/cli. pnpm exec oxdeai is not the primary local workflow here.
  • Default local file paths are .oxdeai/state.json and .oxdeai/audit.ndjson. Pass --state, --audit, --file, or --out explicitly if you are working outside that layout.

PDP / PEP Boundary

The CLI does not replace a runtime PEP. It is intended for deterministic protocol artifact handling, validation, and local operational tooling around the OxDeAI PDP/PEP model.