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

@xclusive/vibeshield

v1.1.0

Published

Hybrid (AST + LLM) security scanner with multi-provider support for OpenAI, Anthropic, Google Gemini, and local Ollama

Downloads

16

Readme

Vibeshield

Hybrid (AST + LLM) security scanner with multi-provider LLM support for detecting application vulnerabilities. Inspired by Vercel's deepsec.

Overview

Vibeshield uses a two-phase approach to minimize LLM API costs while maximizing detection accuracy:

  1. AST Static Scanner (zero-cost) - Fast pattern matching across source code to identify candidate vulnerability sites
  2. LLM Investigation (targeted) - Only flagged files are sent to your chosen LLM for deep security analysis

Supported LLM Providers

  • OpenAI - gpt-4o-mini, gpt-4o, gpt-4-turbo
  • Anthropic - claude-3-5-sonnet, claude-3-opus, claude-3-haiku
  • Google Gemini - gemini-1.5-pro, gemini-2.0-flash
  • Ollama - Run local LLMs without API keys

Installation

npm install -g vibeshield

Or install locally:

npm install
npm run build
vibeshield --help

Quick Start

1. Configure Your Provider

vibeshield init

Choose your preferred LLM provider and enter your API key. Configuration is saved to ~/.config/vibeshield/config.json.

2. Run the Pipeline

# Full pipeline (scan → process → triage → revalidate → report)
vibeshield scan ./your-project
vibeshield process ./your-project
vibeshield triage ./your-project
vibeshield revalidate ./your-project
vibeshield report ./your-project

Usage

Commands

| Command | Description | LLM Cost | |---------|-------------|----------| | init | Interactive configuration setup | None | | scan | AST pattern matching to find candidate sites | None | | process | AI analysis of each candidate | Medium-High | | triage | Severity classification (P0/P1/P2/LOW) | Micro-cents | | revalidate | Independent audit to reduce false positives | Low-Medium | | report | Generate Markdown/JSON/SARIF reports | None |

Configuration

View or modify your configuration:

vibeshield init                    # Reconfigure
cat ~/.config/vibeshield/config.json  # View config

CLI Flags

Override configuration at runtime:

# Use different provider
vibeshield process --provider openai --api-key sk-xxx

# Use specific model
vibeshield process --model gpt-4o-mini

# Set concurrency
vibeshield process --concurrency 10

See CONFIG.md for full configuration guide.

AST Rules

| Rule ID | Name | Description | |---------|------|-------------| | VS-001 | raw-sql | Raw SQL queries with template literals (SQL injection) | | VS-002 | missing-validation | Request body params typed as any (no input validation) | | VS-003 | unsafe-eval | Use of eval() or Function() constructor | | VS-004 | hardcoded-secret | Hardcoded passwords, API keys, tokens | | VS-005 | unguarded-endpoint | Route handlers without auth guards | | VS-006 | insecure-random | Math.random() in security-sensitive contexts |

Configuration

See CONFIG.md for comprehensive configuration guide covering:

  • All supported providers
  • Environment variables
  • Configuration file format
  • Priority/precedence rules
  • Troubleshooting

Quick Setup Examples

Using OpenAI:

vibeshield init
# Select: OpenAI
# Enter API key when prompted

Using Local Ollama:

ollama serve  # In separate terminal
vibeshield init
# Select: Ollama
# Enter: http://localhost:11434

Using Environment Variables:

export OPENAI_API_KEY=sk-xxx
vibeshield process ./src

Pipeline State

All pipeline state is stored in .vibeshield/data/<project-id>/:

  • files.json - AST scan candidates
  • findings.json - LLM investigation results
  • report.json - Final confirmed findings

State is idempotent - delete the relevant file to re-run a stage.

Report Formats

  • Markdown (report.md) - Human-readable security report
  • JSON (report.json) - Structured data for programmatic use
  • SARIF (report.sarif.json) - Standard format for GitHub/IDE integration

Extending Rules

Add new rules in src/parsers/rules/:

import { AstRule } from "../../types/index.js";

export const myRule: AstRule = {
  id: "VS-XXX",
  name: "my-rule",
  description: "Description of what this detects",
  check: (node: TSESTree.Node): boolean => {
    // Return true if this node matches the vulnerability pattern
    return false;
  },
};

Then register it in src/parsers/ast-parser.ts:

import { myRule } from "./rules/my-rule.js";

const RULE_REGISTRY: Record<string, AstRule> = {
  // ... existing rules
  "my-rule": myRule,
};

License

MIT