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

repo-audit

v1.0.0

Published

A multi-step codebase health audit workflow that scans any Node.js or JavaScript project and produces a structured health report. Detects dead exports, large files, circular dependencies, missing JSDoc coverage, high-complexity functions, and unused depen

Downloads

23

Readme

RepoAudit

A fast, zero-dependency codebase health audit tool for JavaScript and Node.js projects. Detect dead exports, circular dependencies, unused packages, and code quality issues without external APIs.

Features

  • Dead Export Detection — Find unused exports across your codebase
  • Large File Analysis — Identify bloated modules exceeding size thresholds
  • Circular Dependency Detection — Spot dependency cycles that cause maintenance headaches
  • JSDoc Coverage — Measure documentation completeness
  • Complexity Analysis — Flag high-complexity functions
  • Unused Dependencies — Remove packages you're not actually using
  • Zero External Dependencies — Runs entirely offline, no API keys needed

Installation

npm install -g repoaudit

Or use directly:

npx repoaudit

Quick Start

Run an audit on your current project:

repoaudit

Scan a specific directory:

repoaudit ./src

Usage Examples

Basic audit with terminal output

repoaudit

Audit with custom thresholds

repoaudit --max-file-size 50kb --complexity-threshold 15

Generate JSON for CI pipelines

repoaudit --format json --output report.json

Fail on health issues (for CI/CD)

repoaudit --fail-on-issues

Exclude directories

repoaudit --ignore node_modules,dist,build

Output

The free version generates a detailed terminal report showing:

  • Health score (0-100)
  • Issue breakdown by category
  • File-by-file analysis
  • Actionable recommendations

Premium Features

  • HTML Reports — Interactive charts and visualizations
  • CSV/JSON Export — Integrate with dashboards and tracking tools
  • CI/CD Integration — Automated health gates with exit codes
  • Trend Tracking — Monitor health metrics over time

FAQ

Q: Does RepoAudit require internet?
A: No. It runs completely offline with zero external API calls.

Q: What Node.js versions are supported?
A: Node.js 14.0.0 and above.

Q: Can I use this in CI/CD pipelines?
A: Yes. Use --fail-on-issues to fail builds when health thresholds aren't met.

Q: How long does an audit take?
A: Most projects complete in seconds. Large codebases (10k+ files) may take 30-60 seconds.

Q: Does it support monorepos?
A: Yes. Run audits on individual packages or the entire workspace.

Q: Can I customize which checks run?
A: Yes. Use flags like --skip-complexity, --skip-jsdoc, etc.


Support: [email protected]
Built with AI by Craftpipe

Pro Features

Upgrade to Pro for:

  • html report
  • json csv export
  • ci integration

Get it at: https://craftpipe.gumroad.com

Set PRO_LICENSE=<your-key> to unlock.