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

rulecloud

v1.1.1

Published

Real-time RuleCloud guardrails for AI coding agents

Readme

rulecloud CLI

Real-time guardrails for AI coding agents. Pulls Cloud Rulespacks from your RuleCloud workspace, watches file saves, and reports violations in the terminal (optionally syncing to the Live Agent Monitor).

Quick start

npx rulecloud@latest init
rulecloud status
rulecloud audit
rulecloud learn --mock --dry-run
rulecloud telemetry push --dry-run

Install

npm install -g rulecloud
# or run without installing:
npx rulecloud@latest init
npx rulecloud@latest watch

Develop from the monorepo cli/ folder:

npm install
npm run build
npm link

Configure

export RULECLOUD_API_URL=https://rulecloud-production.up.railway.app
export RULECLOUD_API_KEY=rc_live_...

Create API keys in the RuleCloud console.

Commands

| Command | Description | |---------|-------------| | rulecloud init | Scaffold rules/hooks + local security audit (API key optional) | | rulecloud init --no-modify-gitignore | Same, but do not append .claude/settings.local.json to .gitignore | | rulecloud watch | Live HUD: initial scan + file saves (r rescan, c clear, q quit) | | rulecloud watch --plain | No colors / no TTY shortcuts (CI) | | rulecloud watch | Cloud Sync ON automatically when RULECLOUD_API_KEY or .rulecloud.json is set | | rulecloud fix [file] | Pro AI Auto-Fix via API (f in watch) | | rulecloud check | Scan entire repo; exit 1 on high/critical violations | | rulecloud check --staged | Pre-commit scan of staged git files only | | rulecloud audit [--json] [dir] | Workspace hardening scan (hooks, MCP, allowlists, hidden unicode); exit 2 on high/critical | | rulecloud verify [--json] | Post-edit slop/structure gate; exit 2 on BLOCKED | | rulecloud status [--json] | Rules sha/count, hook parity, audit blocks, telemetry cursor, API key status | | rulecloud sync-hooks | Write .cursor/hooks.json + .claude/settings.json from rules | | rulecloud sync-hooks --check | Exit 1 when hook files drift from .guardrail/rules.yml (CI) | | rulecloud sync-hooks --cursor-plugin | Also write .cursor-plugin/plugin.json (skills/hooks/rules) | | rulecloud learn [--from-git\|--from-audit] [--mock] [--apply] [--publish] [--dry-run] | Synthesize + verify; optional fleet promote via /v1/rules/promote | | rulecloud telemetry push [--dry-run] | Upload redacted .guardrail/audit.jsonl blocks to /v1/telemetry/audit | | rulecloud sync-hooks --pull | Pull approved fleet rules, merge locally, recompile hooks |

sync-hooks embeds a SHA-256 of .guardrail/rules.yml in hook metadata and installs guard scripts. Claude hooks include onFailure: "block" so a broken guard blocks tool calls instead of failing open. Runtime hardening includes:

  • PreToolUse normalization (subshell unwrap, inline base64 decode, concat/path normalization) before pattern checks.
  • Built-in anti-tamper self-protection (disable with self_protect: false) blocking Write/Edit/MultiEdit/Bash against guardrail + hook config; Claude ConfigChange hooks fail closed.
  • PostToolUse quarantine that blocks leaked credentials and indirect prompt injection content from tool output.
  • rulecloud audit scans .cursor-plugin/plugin.json for unvetted hooks, curl | sh, sensitive paths, and unpinned MCP servers.

Ignored paths

node_modules, .git, .next, dist, venv, .venv, build, target, __pycache__