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

vibeguard-scan

v0.1.3

Published

Security scanner for AI-generated code

Readme


🤔 What is VibeGuard?

AI tools like ChatGPT, Claude, and GitHub Copilot write incredible code in seconds. But just like a fast writer can make typos, AI can accidentally write security holes — hardcoded passwords, open doors to your database, or missing login checks on admin pages.

VibeGuard is your automated security guard. It reads your project's code and tells you if the AI left any accidental "unlocked doors" behind.

Think of it like Grammarly, but for security instead of grammar.

🎯 What it catches

| Problem | What it means in plain English | |--------|--------------------------------| | 🔑 Exposed Secrets | Did the AI accidentally paste a real password or API key into the code? | | 💉 SQL Injection | Did the AI write a database query that a hacker could trick into deleting everything? | | 🔓 Missing Login Walls | Did the AI create an /admin page that anyone can visit without logging in? | | 🕸️ XSS & Path Traversal | Did the AI write unsanitized dynamic scripts or file handlers? | | 💻 Command Injection & SSRF | Did the AI pass raw user input into OS commands or internal network requests? | | 🤖 AI Hallucinations | Did the AI import a package that doesn't actually exist (which hackers love to claim)? |


🧠 Advanced AST Taint Engine

VibeGuard doesn't just use simple word-matching. It features a lightweight, lightning-fast Abstract Syntax Tree (AST) Taint Analyzer.

If the AI takes an unsafe payload on line 2, passes it into a variable on line 5, and executes it on line 12... VibeGuard traces the data flow and catches the vulnerability!

(And the best part? It uses 100% JavaScript APIs. No heavy native C++ dependencies required!)


🚀 Getting Started

Run instantly — no install needed

npx vibeguard-scan scan .

Interactive Auto-Fixer 🔧

Did VibeGuard find a leaked password? Tell it to fix it!

npx vibeguard-scan fix .

VibeGuard will interactively step through the vulnerabilities and seamlessly drop environment variables into your code!

Install globally

npm install -g vibeguard-scan
vibeguard scan .

Install as a dev dependency

npm install -D vibeguard-scan

Configure your project

npx vibeguard-scan init   # Creates .vibeguard.yaml

Example config (.vibeguard.yaml):

minSeverity: low
scoreThreshold: 70
ignore:
  - "**/node_modules/**"
  - "**/dist/**"
  - "**/*.test.ts"
extensions:
  - ".js"
  - ".ts"
  - ".jsx"
  - ".tsx"
  - ".py"
  - ".env"
detectors:
  secrets: true    
  sql: true        
  auth: true       
  cmdInjection: true
  ssrf: true
  astTaint: true
outputFormat: text
showBadge: true

Inline Ignore Comments

Need to bypass a rule? Just drop this comment above the line:

// vibeguard-disable-next-line secrets:aws-access-key
const KEY = "AKIAIOSFODNN7EXAMPLE";

Git Pre-Commit Hook

Block commits that contain security issues:

npx vibeguard-scan hook install

GitHub Actions (SARIF Output)

Add .github/workflows/vibeguard.yml so VibeGuard comments directly on your Pull Requests:

name: VibeGuard Security Scan
on: [push, pull_request]

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci
      - run: npx vibeguard-scan scan . --format sarif > vibeguard-results.sarif
      - name: Upload SARIF to GitHub
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: vibeguard-results.sarif

📊 Your "Vibe Code Safety Score"

After scanning, you get a simple 0-100 safety score:

  • 🟢 90–100 — Excellent. Your code looks clean.
  • 🟡 70–89 — Good. Minor suggestions only.
  • 🟠 50–69 — Needs work. Some risks found.
  • 🔴 0–49 — Critical. Fix before shipping!

🏗️ Architecture & Tech Stack

┌──────────────────────────────────────────────────────────────┐
│                      VIBEGUARD CLI                           │
│  ┌────────────┐  ┌────────────┐  ┌────────────────────────┐  │
│  │ Commands   │  │ Core       │  │ Utilities              │  │
│  │ scan       │──│ Scanner    │──│ Config (.vibeguard.yml)│  │
│  │ init       │  │ ├── AST    │  │ Files (glob, filters)  │  │
│  │ badge      │  │ ├── SQL    │  │ Output (text, JSON,    │  │
│  │ hook       │  │ └── Auth   │  │        SARIF, badge)   │  │
│  │ fix        │  │ └── Secrets│  │                        │  │
│  └────────────┘  └────────────┘  └────────────────────────┘  │
└──────────────────────────────────────────────────────────────┘

| Layer | Technology | |-------|-----------| | Language | TypeScript 5.x (ES2022) | | Bundler | tsup (ESM, single-file) | | Testing | Vitest + V8 Coverage (100% Core coverage) | | Config Validation | Zod | | Terminal Styling | Chalk & Inquirer | | File Globbing | Globby | | AST Engine | TypeScript Compiler API |


🗺️ Roadmap

✅ Shipped (v0.1)

  • [x] Core scanner engine & Vibe Code Safety Score (0-100)
  • [x] 6 base detectors (Secrets, SQLi, Auth, CmdInjection, SSRF, XSS/Traversal)
  • [x] AST Taint Flow Tracking Engine
  • [x] AI Hallucination detector
  • [x] Interactive Auto-Fixer (fix .)
  • [x] Text / JSON / SARIF output
  • [x] .vibeguard.yaml configuration
  • [x] Git pre-commit hook
  • [x] Badge generator

🚀 Coming Soon

  • [ ] VS Code Extension (inline diagnostics + quick fixes)
  • [ ] MCP Server (Claude Code / Cursor integration)
  • [ ] vibeguard dashboard (local HTML security report)
  • [ ] SBOM generation (package vulnerability scanning)

📄 License

MIT © Mohit Baghel