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

@rahul-sch/vibeguard

v1.0.1

Published

Regex-first security scanner for AI-generated code

Readme

VibeGuard

Regex-first security scanner for AI-generated ("vibe-coded") projects.

Features

  • 23 detection rules covering secrets, injection, Docker, Kubernetes, Python, Node.js
  • Fast regex scanning - no AST parsing, works on any codebase size
  • Multiple output formats - console (colored), JSON, SARIF (GitHub Code Scanning)
  • Optional AI verification - reduce false positives with LLM verification (BYOK)
  • Zero config - works out of the box with sensible defaults

Installation

npm install -g vibeguard

Usage

# Scan current directory
vibeguard

# Scan specific path
vibeguard ./src

# Show only critical issues
vibeguard --severity critical

# Output as JSON
vibeguard --json

# Output as SARIF (for GitHub Code Scanning)
vibeguard --sarif > report.sarif

# Enable AI verification
vibeguard --ai --ai-key sk-xxx

CLI Options

| Option | Description | |--------|-------------| | -s, --severity <level> | Minimum severity: critical, warning, info (default: warning) | | -f, --format <type> | Output format: console, json, sarif (default: console) | | --json | Shorthand for --format json | | --sarif | Shorthand for --format sarif | | -i, --ignore <pattern> | Additional ignore patterns (can repeat) | | --max-file-size <bytes> | Skip files larger than this (default: 1MB) | | --no-color | Disable colored output | | -v, --verbose | Show debug information | | --ai | Enable AI verification | | --ai-key <key> | API key for AI provider | | --ai-provider <name> | AI provider: openai, anthropic, groq | | -c, --config <path> | Path to config file |

Exit Codes

| Code | Meaning | |------|---------| | 0 | No issues found (or only info-level) | | 1 | Warning-level issues found | | 2 | Critical-level issues found |

Detection Rules

Secrets & Injection

  • VG-SEC-001 - Dynamic code execution (eval)
  • VG-SEC-002 - SQL string concatenation
  • VG-SEC-003 - Hardcoded secrets/credentials
  • VG-SEC-004 - Secret logged to console
  • VG-SEC-005 - Secret in API response

Python

  • VG-PY-001 - Shell command exec (shell=True)
  • VG-PY-002 - OS system call
  • VG-PY-003 - Unsafe YAML load
  • VG-PY-004 - Insecure pickle deserialization
  • VG-PY-005 - Flask debug mode enabled
  • VG-PY-006 - Disabled SSL verification

Node.js

  • VG-NODE-001 - Child process exec
  • VG-NODE-002 - Spawn with shell
  • VG-NODE-003 - Unsafe HTML rendering (React)
  • VG-NODE-004 - Disabled TLS verification
  • VG-NODE-005 - TLS reject env bypass

Docker

  • VG-DOCK-001 - Container running as root
  • VG-DOCK-002 - Docker socket exposed
  • VG-DOCK-003 - Privileged container

Kubernetes

  • VG-K8S-001 - Cluster-admin role binding
  • VG-K8S-002 - Open ingress rules (0.0.0.0/0)
  • VG-K8S-003 - Missing runAsNonRoot

Configuration

  • VG-CFG-001 - Service bound to 0.0.0.0
  • VG-CFG-002 - Public S3 bucket ACL

GitHub Actions

name: Security Scan

on: [push, pull_request]

jobs:
  vibeguard:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install VibeGuard
        run: npm install -g vibeguard

      - name: Run security scan
        run: vibeguard --sarif > results.sarif

      - name: Upload SARIF
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: results.sarif

Configuration File

Create vibeguard.config.json in your project root:

{
  "severity": "warning",
  "ignore": ["**/test/**", "**/fixtures/**"],
  "format": "console"
}

AI Verification

VibeGuard supports optional AI verification to reduce false positives. Set your API key:

export VIBEGUARD_AI_KEY=sk-xxx
vibeguard --ai

Supported providers:

  • OpenAI (default)
  • Anthropic (sk-ant-* keys auto-detected)
  • Groq (gsk_* keys auto-detected)

License

MIT