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

vibecurb

v0.2.0

Published

Security layer for vibe-coded apps - prevents insecure code generation

Readme


🎯 What is vibecurb?

vibecurb prevents insecure vibe coding from happening. Instead of scanning apps after they're built, it acts as a security layer that catches secrets before they reach your codebase.

"We don't scan vibe-coded apps. We prevent insecure vibe coding from happening."

✨ Features

Secret Detection (14+ Patterns)

  • API Keys - Generic, AWS, GitHub, Stripe, Google
  • Authentication - Bearer tokens, JWT, passwords, private keys
  • Database - Connection strings (MongoDB, PostgreSQL, MySQL, Redis)
  • Communication - Slack tokens, email addresses
  • Smart Filtering - Ignores test data (FAKE_ prefix) and placeholders

Network Security Scanner

Detect sensitive data exposure in:

  • 🌐 Console Logging - User objects, auth headers, API responses
  • 🌐 HTTP Requests - Hardcoded auth in fetch/axios, API keys in URLs
  • 🌐 API Responses - Full user objects, database documents, stack traces
  • 🌐 Error Handling - Raw errors exposed to clients
  • 🌐 CORS Configuration - Wildcard origins, insecure headers

Auto-Fix

  • 🔧 Extract secrets to .env files automatically
  • 🔧 Replace code with process.env references
  • 🔧 Create backups before modifying files
  • 🔧 Update .gitignore to exclude .env files

AI Integration

  • 🤖 Universal AI support - Works with Cursor, GitHub Copilot, Claude, etc.
  • 🤖 AI instructions included for all major tools
  • 🤖 Prevents secrets at generation time

🚀 Installation

# Global install
npm install -g vibecurb

# Or local install
npm install --save-dev vibecurb

📖 Usage

Scan for Secrets

# Scan current directory
vibecurb scan

# Scan specific path
vibecurb scan ./src

# Auto-fix detected secrets
vibecurb scan --fix

# Preview fixes without applying
vibecurb scan --dry-run

# Filter by severity
vibecurb scan --severity error

# JSON output for CI/CD
vibecurb scan --json

Scan Network Security

# Scan for logging/API exposure issues
vibecurb scan-network

# Scan specific directory
vibecurb scan-network ./src

# Output as JSON
vibecurb scan-network --json

Example output:

🌐 Scanning network security: ./src

❌ ERROR [logging]
   📄 api.js:15
   Console logging may expose user data
   Match: console.log(user)
   Fix: Use a structured logger with data redaction

❌ ERROR [request]
   📄 config.js:8
   Hardcoded authorization header in fetch request
   Match: fetch("/api", { headers: { Authorization: "Bearer token123" } })
   Fix: Use environment variables for tokens

⚠️ WARNING [response]
   📄 routes.js:42
   API response may expose full user object
   Match: res.json({ user: req.user })
   Fix: Select only necessary fields before sending response

📊 Summary by Category:
logging: 1
request: 1
response: 1
error-handling: 0

📊 Overall:
❌ 2 error(s) found
⚠️ 1 warning(s) found

Command Aliases

vibecurb scan      # Full name
vibe scan          # Short & memorable
vc scan            # Power user shortcut

vibe scan-network  # Short alias
vc scan-network    # Power user shortcut

🤖 AI Integration

vibecurb provides security instructions for AI coding assistants:

Supported Tools

  • Cursor - .cursorrules file
  • GitHub Copilot - .github/copilot-instructions.md
  • Claude - AI_INSTRUCTIONS.md
  • Antigravity - Via instructions file
  • Wildsurf - Via instructions file
  • Any AI - Universal instructions included

Setup

  1. Copy AI instructions to your project:
cp node_modules/vibecurb/.cursorrules ./.cursorrules
cp node_modules/vibecurb/.github/copilot-instructions.md ./.github/
  1. AI will now:
    • Use environment variables for secrets
    • Never log sensitive data
    • Suggest vibecurb before committing

🛡️ Security Checklist

Before committing code, vibecurb checks for:

Secrets:

  • [ ] No API keys in code
  • [ ] No database passwords
  • [ ] No private keys
  • [ ] No hardcoded tokens

Network:

  • [ ] No console.log of user data
  • [ ] No auth headers in logs
  • [ ] No full objects in API responses
  • [ ] No stack traces in error responses

Best Practices:

  • [ ] All secrets in .env
  • [ ] .env in .gitignore
  • [ ] No debugger statements
  • [ ] Proper CORS configuration

🧪 Testing Safe Code

Use FAKE_ prefix in tests:

// ✅ Safe - will be ignored
const apiKey = "FAKE_API_KEY_001";
const email = "[email protected]";

// ❌ Will be detected
const apiKey = "sk-live-actual-secret-key";

🏗️ Development

# Clone repository
git clone https://github.com/Mofuhidy/vibecurb.git
cd vibecurb

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run in development
npm run dev

🔧 Configuration

Create .vibecurbrc.json:

{
  "extensions": [".js", ".ts", ".jsx", ".tsx"],
  "exclude": ["node_modules", "dist", "build"],
  "severity": "all"
}

📦 NPM Package

# Install globally
npm install -g vibecurb

# Use immediately
vibecurb scan

🤝 Contributing

Contributions welcome! Please read our Contributing Guide.

📄 License

MIT © Mofuhidy

🙏 Acknowledgments