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

@vaibot/guard

v2.1.1

Published

VAIBot Guard — local policy enforcement + tamper-evident audit daemon for AI agent tool calls. The universal decision authority the codex/claudecode/openclaw plugins route through.

Readme

@vaibot/guard

VAIBot Guard — a local policy-decision + enforcement daemon with a tamper-evident audit log. It is the universal decision authority that the per-host circuit-breaker plugins (Claude Code, Codex, OpenClaw) route every tool call through, so enforcement is agent-agnostic: one guard, many hosts.

Installation

The guard is generally installed and managed by the VAIBot CLI — you don't normally install this package by hand. One command installs the vaibot CLI (macOS + Linux) and runs vaibot init, which installs and starts the guard as part of setup:

curl -fsSL https://raw.githubusercontent.com/vaibot-io/command-cli/main/install.sh | sh

Once the CLI is present you can also drive the guard directly:

vaibot init            # onboard + install the guard as part of setup
vaibot guard install   # install / manage the guard directly

Manual install (what the CLI does for you):

npm install -g @vaibot/guard

That provides two binaries: vaibot-guard (operator CLI) and vaibot-guard-service (the daemon).

What it does

A local HTTP service that gates agent tool calls and writes a tamper-evident audit log (incremental Merkle accumulator, JSONL) under .vaibot-guard/. Decisions are driven by a signed policy bundle; receipts can be anchored to the VAIBot provenance chain.

Credentials (treat as secrets)

  • VAIBOT_GUARD_TOKEN — bearer token for guard endpoints (recommended)
  • VAIBOT_API_KEY — optional: anchor receipts to VAIBot /prove

HTTP API

  • GET /health
  • POST /v1/decide/exec + POST /v1/finalize — shell exec flows
  • POST /v1/decide/tool + POST /v1/finalize/tool — tool-call gating
  • POST /v1/approvals/list + POST /v1/approvals/resolve — approve / deny
  • POST /v1/flush — checkpoint flush
  • POST /api/proof — Merkle inclusion proofs

When VAIBOT_GUARD_TOKEN is set, protected endpoints require Authorization: Bearer <token>.

Per-host enforcement (circuit-breaker plugins)

The guard makes the decisions; a per-host circuit-breaker plugin intercepts tool calls and routes them to the guard, so enforcement happens at the host boundary rather than relying on the model to behave. Wire the plugin for your agent with:

vaibot plugin add <host>   # claudecode | codex | openclaw

Each plugin ensures the guard is present, installing it only if it's missing — the CLI is the first-class installer; the plugins are the fallback.

Manual quick start (foreground, no persistence)

export VAIBOT_GUARD_HOST=127.0.0.1
export VAIBOT_GUARD_PORT=39111
export VAIBOT_POLICY_PATH=references/policy.default.json
export VAIBOT_WORKSPACE="$(pwd)"
export VAIBOT_GUARD_LOG_DIR="$VAIBOT_WORKSPACE/.vaibot-guard"
export VAIBOT_GUARD_TOKEN="<random-token>"

vaibot-guard-service                 # or: node scripts/vaibot-guard-service.mjs
curl -s http://127.0.0.1:39111/health

systemd user service

vaibot-guard install-local           # or: node scripts/vaibot-guard.mjs install-local

Writes ~/.config/systemd/user/vaibot-guard.service + ~/.config/vaibot-guard/vaibot-guard.env. The unit adds OpenClaw-gateway ordering only on OpenClaw hosts; otherwise it runs standalone. Templates live under references/systemd/.

Policy + schemas

See references/: policy.md, policy.default.json, receipt-schema.md, checkpoint-schema.md, inclusion-proofs.md, required-mode.md.

Tests

npm test    # node --test tests/*.test.mjs

Threat model

See THREAT-MODEL.md.