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

@darrenjcoxon/vibeoptimise

v1.0.5

Published

πŸš€ VibeOptimise β€” The ultimate codebase optimisation scanner. Find dead code, duplication, circular deps, bundle bloat & more. Get OPTIMISE.md for AI agents to fix everything.

Readme

πŸš€ VibeOptimise

The ultimate codebase optimisation scanner for AI-assisted development.

Scan your codebase for dead code, duplication, circular dependencies, bundle bloat, inefficient queries, and more β€” then get an AI-actionable OPTIMISE.md for Claude Code, Cursor, or any AI agent to fix everything.

By the creator of Vibeguard β€” the security scanner for vibe coders.

Quick Start

npx @darrenjcoxon/vibeoptimise

That's it. Run it from the root of any JS/TS project.

What It Scans

VibeOptimise runs 10 parallel scanners that cover every dimension of codebase efficiency:

| # | Scanner | What It Finds | Tool | |---|---------|---------------|------| | 1 | Knip | Unused files, exports, dependencies, types | knip | | 2 | JSCPD | Copy/pasted code blocks across the codebase | jscpd | | 3 | Madge | Circular dependencies & orphaned modules | madge | | 4 | Depcheck | Unused & missing npm packages | depcheck | | 5 | BundlePhobia | Heavy deps with lighter alternatives | bundlephobia | | 6 | ESLint Perf | Import cycles, barrel file bloat, unused imports | eslint | | 7 | Source Map Explorer | Bundle composition analysis | source-map-explorer | | 8 | Regex Safety | ReDoS-vulnerable patterns & catastrophic backtracking | Built-in | | 9 | CSS Efficiency | Unused CSS, duplicate selectors, !important overuse | Built-in | | 10 | Query Efficiency | N+1 patterns, unbounded queries, overfetching | Built-in |

Output: OPTIMISE.md

The report is structured for AI agents to work through systematically:

# OPTIMISE.md β€” Codebase Optimisation Report

## πŸ”΄ Critical β€” Immediate Performance Impact
- Circular dependencies causing bundle bloat
- ReDoS-vulnerable regex patterns
- N+1 query patterns

## 🟠 High β€” Significant Optimisation Opportunities
- Unused dependencies (12 packages, ~45MB savings)
- Unbounded database queries

## 🟑 Medium β€” Recommended Improvements
- Duplicated code blocks (with file pairs + line ranges)
- Heavy deps with lighter alternatives

## πŸ”΅ Low β€” Nice to Have
- Unused exports, console.log statements
- CSS shorthand opportunities

Usage

# Scan current directory
npx @darrenjcoxon/vibeoptimise

# Scan a specific project
npx @darrenjcoxon/vibeoptimise /path/to/project

# Quiet mode β€” just generate the report
npx @darrenjcoxon/vibeoptimise --quiet

# JSON output (for CI/CD integration)
npx @darrenjcoxon/vibeoptimise --json

# Include test files in analysis
npx @darrenjcoxon/vibeoptimise --include-tests

# Exclude specific patterns
npx @darrenjcoxon/vibeoptimise --exclude "legacy/**" "vendor/**"

AI Agent Workflow

  1. Run npx @darrenjcoxon/vibeoptimise
  2. Feed OPTIMISE.md to your AI agent
  3. Tell it: "Read OPTIMISE.md and implement all fixes, starting from Critical"
  4. Re-run VibeOptimise to verify improvements

Works with Claude Code, Cursor, GitHub Copilot, Windsurf, and any AI coding assistant.

CI/CD Integration

VibeOptimise exits with code 1 when critical or high findings exist β€” perfect for CI quality gates:

# GitHub Actions
- name: Check codebase optimisation
  run: npx @darrenjcoxon/vibeoptimise --quiet

ORM Support

The Query Efficiency scanner understands:

  • Supabase β€” .from() without .select() or .limit()
  • Prisma β€” Unbounded findMany(), deeply nested includes
  • Drizzle β€” Queries without .limit()
  • Mongoose β€” find({}) without limit, missing .lean()
  • Raw SQL β€” SELECT *, missing LIMIT

Companion Tool: Vibeguard

Use VibeOptimise alongside Vibeguard for complete coverage:

npx @darrenjcoxon/vibeguard      # Security scanning β†’ FIXES.md
npx @darrenjcoxon/vibeoptimise   # Optimisation scanning β†’ OPTIMISE.md

License

MIT β€” Free for everyone. Built for the vibe coding community. πŸ€™

Made by Darren Coxon