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

vibecop

v0.4.3

Published

AI code quality toolkit — deterministic linter for the AI coding era

Readme

vibecop

license TypeScript Node.js CI Playground

AI code quality toolkit — deterministic linter for the AI coding era. 35 detectors catch the bugs AI agents introduce: god functions, N+1 queries, unsafe shell exec, unpinned LLM models, and more. Runs automatically inside Claude Code, Cursor, Codex, Aider, and 7 other AI tools. Also available as an MCP server.

Built on ast-grep for fast, tree-sitter-based AST analysis. No LLM required — every finding is deterministic and reproducible.

Documentation | Playground

Install

npm install -g vibecop    # or: bun add -g vibecop

Quick Start

vibecop scan .                         # Scan current directory
vibecop scan src/ --format json        # JSON output
vibecop scan . --diff HEAD             # Only changed files
vibecop init                           # Auto-setup agent integration
vibecop serve                          # Start MCP server

Agent Integration

vibecop runs inside your AI coding agent. Every edit triggers a scan — the agent reads findings and self-corrects.

npx vibecop init    # Auto-detects tools, generates configs

| Tool | Integration | |------|-------------| | Claude Code | PostToolUse hook | | Cursor | afterFileEdit hook + rules | | Codex CLI | PostToolUse hook | | Aider | Native --lint-cmd | | GitHub Copilot | Custom instructions | | Windsurf | Rules file | | Cline/Roo Code | .clinerules | | Continue.dev / Amazon Q / Zed | MCP server (vibecop serve) |

Agent writes code → vibecop hook fires → Findings? Agent fixes → Clean? Continue.

MCP Server

{
  "mcpServers": {
    "vibecop": {
      "command": "npx",
      "args": ["vibecop", "serve"]
    }
  }
}

Four tools: vibecop_scan, vibecop_check, vibecop_explain, vibecop_context_benchmark.

Context Optimization (Beta)

Beta: This feature is under active testing. Re-run vibecop init --context after upgrading vibecop or reinstalling dependencies.

Reduce token consumption by ~35% on Read tool re-reads. When Claude Code reads a file it's already seen, vibecop intercepts the Read and serves a compact AST skeleton instead of the full file. Unchanged files get smart-limited to 30 lines + skeleton context.

Requires bun runtime (uses bun:sqlite for zero-dependency caching). Claude Code only.

vibecop context benchmark  # See projected savings for your project
vibecop init --context     # Configure hooks (Claude Code only)
vibecop context stats      # View actual token savings after sessions

How it works:

  1. First read — full file passes through, skeleton is cached
  2. Re-read (unchanged) — smart-limited to 30 lines + skeleton injected via additionalContext
  3. Re-read (changed) — full file passes through with "file changed" note

Skeletons include imports, function signatures, class outlines, and exports — enough for Claude to understand file structure without re-reading the full implementation.

Benchmarks

All numbers are real — run vibecop scan on any repo to reproduce.

Established projects:

| Project | Density | |---------|--------:| | fastify (65K stars) | 1.7/kLOC | | date-fns (35K stars) | 3.1/kLOC | | TanStack/query (43K stars) | 4.4/kLOC | | express (66K stars) | 5.8/kLOC |

Vibe-coded projects:

| Project | Density | |---------|--------:| | dyad (20K stars) | 8.0/kLOC | | bolt.diy (19K stars) | 13.6/kLOC | | context7 (51K stars) | 14.0/kLOC | | browser-tools-mcp (7K stars) | 49.6/kLOC |

Median: established 4.4/kLOC vs vibe-coded 14.0/kLOC (3.2x higher).

GitHub Action

- uses: bhvbhushan/vibecop@main
  with:
    on-failure: comment-only
    severity-threshold: warning

Detectors (35)

4 categories: Quality (16), Security (7), Correctness (4), Testing (8).

Catches: god functions, N+1 queries, unsafe shell exec, SQL injection, hardcoded secrets, trivial assertions, empty tests, unpinned LLM models, hallucinated packages, and more.

Full detector reference →

Roadmap

  • [x] Phase 1: Core scanner — 7 detectors, 5 output formats
  • [x] Phase 2: PR Gate GitHub Action, 15 new detectors
  • [x] Phase 2.5: Agent integration (7 tools), 6 LLM/agent detectors, vibecop init
  • [x] Phase 3: Test quality detectors, custom YAML rules (28 → 35)
  • [x] Phase 3.5: MCP server with scan/check/explain tools
  • [x] Phase 4: Context optimization — Beta (Read tool interception, AST skeleton caching)
  • [ ] Phase 5: VS Code extension, cross-file analysis

Links