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

@embodot/vibeguard

v0.2.0

Published

Security guard for AI coding agents - detects secrets, blocks dangerous operations

Readme

VibeGuard

Security guard for Claude Code and Codex. Detect secrets, block dangerous operations, and keep a local audit trail.

npm version License: MIT GitHub stars


Overview

VibeGuard installs managed hooks for Claude Code and Codex. Before supported prompts, shell commands, file writes, or edits proceed, VibeGuard scans for secrets and dangerous patterns, then allows, warns, asks for confirmation, or blocks based on the active policy preset.

What It Catches

  • API keys and tokens for OpenAI, Anthropic, AWS, GitHub, GitLab, Stripe, Slack, SendGrid, NPM, PyPI, and more
  • Private keys, database URLs with passwords, generic secret assignments, JWTs, and password URLs
  • Sensitive files such as .env, SSH keys, AWS credentials, Docker/Kubernetes configs, shell history, and .netrc
  • Dangerous commands such as rm -rf /, mkfs, dd of=/dev/..., fork bombs, force push to main, pipe-to-shell, and destructive SQL

Install

npm install -g @embodot/vibeguard
vibeguard install
vibeguard doctor

By default, vibeguard install configures Claude only. Use explicit targets for Codex or both hosts:

vibeguard install --target codex
vibeguard install --target all

Claude

vibeguard install --target claude
vibeguard launch claude -- --help

Claude integration includes PreToolUse hooks for Bash|Write|Edit|Read, UserPromptSubmit secret scanning, optional MCP registration, and dashboard logging.

Codex

Codex support uses official Codex hooks. It does not use the old PTY/TUI proxy approach.

vibeguard install --target codex
vibeguard doctor --target codex
vibeguard launch codex -- --help

Codex integration includes UserPromptSubmit secret scanning, PreToolUse scanning for supported tool events such as Bash, apply_patch, Edit, and Write, and dashboard logging. Coverage follows the official Codex hook surface. If Codex asks you to review hooks, trust the VibeGuard entries from /hooks before relying on enforcement.

Policy Presets

VibeGuard defaults to balanced.

vibeguard config preset
vibeguard config preset minimal
vibeguard config preset balanced
vibeguard config preset strict
  • minimal: block critical findings only
  • balanced: block critical and high findings
  • strict: block critical, high, and medium findings

Policy is stored at ~/.vibeguard/policy.json.

Commands

vibeguard install [--target claude|codex|all]
vibeguard uninstall [--target claude|codex|all]
vibeguard doctor [--target claude|codex|all]
vibeguard launch claude -- <claude args...>
vibeguard launch codex -- <codex args...>
vibeguard config preset [minimal|balanced|strict]
vibeguard dashboard
vibeguard mcp

Dashboard

vibeguard dashboard

Open http://localhost:7847. The dashboard shows overview statistics, daily trends, filterable event history, rule browsing, and custom pattern management.

How It Works

  1. vibeguard install updates ~/.claude/settings.json idempotently.
  2. vibeguard install --target codex updates ~/.codex/hooks.json idempotently.
  3. Claude or Codex invokes the VibeGuard hook scripts before supported operations run.
  4. VibeGuard scans with built-in rules plus dashboard-managed overrides and custom patterns.
  5. Findings are logged to ~/.vibeguard/events.db.

Auto Update

VibeGuard checks for new npm versions automatically when you run CLI commands and attempts a global update when a newer version is found.

Disable this behavior if needed:

export VIBEGUARD_DISABLE_AUTO_UPDATE=1

Troubleshooting

Native module mismatch (better-sqlite3)

If vibeguard doctor reports a native module error or vibeguard dashboard returns 500 errors:

npm rebuild better-sqlite3
vibeguard doctor

If you switched Node versions, reinstall the global package in the active Node version:

npm install -g @embodot/vibeguard
vibeguard install
vibeguard doctor

Development

git clone https://github.com/dadwadw233/VibeGuard.git
cd VibeGuard
npm install
npm run build
npm test

Repo-local plugin loading is still available for Claude development and debugging, but it is not the recommended end-user install path.

claude --plugin-dir /path/to/VibeGuard

Built entrypoints:

  • dist/hooks/pre-tool-use.js
  • dist/hooks/user-prompt-submit.js
  • dist/hooks/codex-pre-tool-use.js
  • dist/hooks/codex-user-prompt-submit.js
  • dist/mcp/server.js

License

MIT