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

@praxis.guard/auditor-cli

v0.0.5

Published

Shared **guard runtime** for Praxis shell policy: argv parsing (`shell-quote`), `evaluateShellProposal` / `evaluateArgv` / `gateShellCommand`, JSONL audit append, and the **shell approval bridge** under `.cursor/guard/bridge`.

Downloads

431

Readme

@praxis/auditor-cli

Shared guard runtime for Praxis shell policy: argv parsing (shell-quote), evaluateShellProposal / evaluateArgv / gateShellCommand, JSONL audit append, and the shell approval bridge under .cursor/guard/bridge.

Single entry: auditor

Use one built binary for MCP stdio, Cursor hook, and diagnostics:

| Surface | Command | |--------|---------| | MCP (mcp.json) | auditor + args ["mcp"], or node …/auditor-cli/dist/cli.js mcp | | Hook (.cursor/hooks.json) | node …/auditor-cli/dist/cli.js hook before-shell (or auditor hook before-shell if auditor is on PATH) |

@praxis/guard-mcp remains as a thin shim (dist/server.js@praxis/auditor-cli/mcp) for older configs that still point at guard-mcp.

Policy source of truth

Classification rules live in @praxis/auditor-policy (loadPoliciesV1, classifyArgv, policies.v1.json via the path resolved from the built policy package). This package re-exports loadPoliciesV1 for convenience; hooks may still import classifyArgv from @praxis/auditor-policy when they need hook-specific tier handling.

Bridge directory contract

One-shot approvals for terminal execution use:

  • Directory: path.resolve(cwd, ".cursor/guard/bridge")
  • Files: ${sha256(JSON.stringify(argv))}_${uuid}.json with TTL 10 minutes (DEFAULT_SHELL_BRIDGE_TTL_MS).

Do not change this layout without updating Cursor + MCP flows that rely on it.

Python packages/auditor

The legacy Python guard under packages/auditor/ remains for existing installs; new work should target @praxis/auditor-cli and Node-based tooling. Long-term migration: shell aliases or install scripts pointing at the auditor binary (npx / workspace) instead of python3 guard.py (see AUDITOR_CLI_SOLUTION_PLAN.md).

CLI (auditor binary)

After pnpm -C packages/auditor-cli build, the auditor command is available from this package (package.json bin).

| Command | Purpose | |--------|---------| | auditor mcp | MCP stdio server (registers tool guard). Use in Cursor mcp.json as the server command. | | auditor hook before-shell | Cursor hook: stdin JSON { "command", "cwd?" } → stdout JSON { "permission", ... } (fail-closed on crash). | | auditor doctor | Prints resolved policy path, bridge dir, audit log path, Node version, and PRAXIS_GUARD_AUDIT_LOG status. | | auditor whoami | Prints uid, profile email/display name, and token source via the guardWhoAmI callable (requires auth like policies sync). | | auditor version | Package version plus git rev-parse --short HEAD when run inside a git checkout. | | auditor help | Usage summary. |

From the repo root: pnpm exec auditor doctor / pnpm exec auditor mcp (after pnpm -C packages/auditor-cli build), or node packages/auditor-cli/dist/cli.js ….