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

codebase-auditor

v1.0.0

Published

AI-powered codebase auditor. Scans your project with 6 specialized agents and generates a structured report with Risk and Quality scores.

Readme

Codebase Auditor

An AI-powered CLI tool that audits your codebase across six dimensions using the Anthropic API. Point it at any project and get a structured Markdown report with prioritized findings and fix suggestions.

What It Does

Codebase Auditor runs six parallel AI agents against your source files, each focused on a specific dimension:

  • Security — Hardcoded secrets, SQL injection, unsafe eval(), insecure patterns
  • Performance — Blocking sync operations, N+1 queries, memory leaks, inefficient loops
  • Test Coverage — Untested exports, missing error-path tests, weak assertions
  • Documentation — Missing JSDoc, undocumented parameters, README gaps
  • Dependencies — Vulnerable packages, abandoned libraries, license conflicts
  • Code Quality — Long functions, deep nesting, duplicate code, dead code

All six agents run simultaneously via Promise.all() and their results are merged into a single audit-report.md file.

Requirements

Installation

git clone https://github.com/your-username/codebase-auditor.git
cd codebase-auditor
npm install
cp .env.example .env
# Edit .env and add your Anthropic API key

Usage

node audit.js ./your-project

Replace ./your-project with the path to the directory you want to audit. Defaults to ./ if no path is given.

What Gets Checked

| Dimension | What the Agent Looks For | |-----------|--------------------------| | Security | Hardcoded credentials, API keys, SQL injection, eval() misuse, path traversal | | Performance | readFileSync in async functions, nested loops on large data, N+1 DB calls, memory leaks | | Tests | Exported functions with no tests, missing edge-case coverage, trivial test files | | Docs | Public functions without JSDoc, missing @param/@returns, README without usage section | | Dependencies | CVE-prone packages, unmaintained libraries (2+ years), devDependencies in wrong section | | Quality | Functions >50 lines, 4+ nesting levels, duplicated blocks, console.log in production code |

Example Output

Codebase Auditor — scanning: /home/user/my-app

Scanning files...
Found 42 files to audit.

Starting Security agent...
Starting Performance agent...
Starting Tests agent...
Starting Docs agent...
Starting Dependencies agent...
Starting Quality agent...

Security agent complete.
Performance agent complete.
...

Audit complete. 17 total findings:

  🔴 Critical: 2
  🟠 High:     5
  🟡 Medium:   7
  🟢 Low:      3

Report saved to: /home/user/my-app/audit-report.md

The generated audit-report.md contains an executive summary table and a dedicated section for each audit dimension with severity labels, affected files, descriptions, and fix suggestions.

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Make your changes and run npm test
  4. Submit a pull request with a clear description of the change