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

pi-audit-master

v0.5.1

Published

Professional multi-agent codebase auditing and automated repair engine

Readme

🛡️ pi-audit-master

Professional Multi-Agent Codebase Auditing & Automated Repair Engine

Pi Package License: MIT npm version

pi-audit-master is a high-precision quality assurance tool for Pi extensions. Instead of generic code reviews, it deploys a coordinated fleet of specialized AI agents to identify critical bugs, logical gaps, and performance bottlenecks using industry-standard analysis techniques.

🚀 Core Features

🧬 The "Specialized Five" Audit Personas

The engine dispatches five parallel agents, each with a unique mental model:

| Persona | Focus | Technique | | :--- | :--- | :--- | | Type Sentinel | Null/Undefined Safety | Taint Analysis: Tracks data from source → flow → sink. | | Logic Architect | Algorithmic Correctness | State-Machine Analysis: Finds race conditions and flow gaps. | | Performance Oracle | Efficiency & Scaling | Complexity Analysis: Identifies O(n²) loops and leaks. | | Ecosystem Integrator | Pi API Compatibility | Contract Analysis: Verifies Event and Factory patterns. | | Quality Guardian | Maintainability | Smell Detection: Finds technical debt and redundant logic. |

⚙️ Advanced Capabilities

  • Intelligent Mapping: The ProjectMapper identifies "Core Logic" files to maximize token efficiency and avoid auditing boilerplate.
  • Hybrid Reporting: Generates a professional audit-report.md for the repository and a concise summary for the chat.
  • Automated Fix-Fleet: Optionally deploys a second wave of "Fixer" agents to resolve identified issues and verifies them via the project's test suite.
  • Passive Mode: Automatically audits files after modifications (v0.4.0+)
  • AI-Powered Analysis: Uses Pi's complete() function for intelligent code review
  • Static Analysis Fallback: Works offline with pattern-based detection
  • Timeout & Progress: Configurable timeouts and progress callbacks for long audits (v0.5.0+)
  • Path Traversal Protection: Input sanitization to prevent path traversal attacks (v0.5.0+)
  • Conservative Magic Number Detection: Avoids false positives on legitimate constants (v0.5.0+)

🛠️ Usage

Installation

pi install npm:pi-audit-master

Running an Audit

Invoke the tool via natural language or the direct command:

Natural Language: "Audit this project and fix any critical bugs."

Direct Command:

/audit { 
  "path": ".", 
  "depth": "deep", 
  "format": "hybrid", 
  "fix": true 
}

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | depth | "surface" \| "deep" | "deep" | Audit depth. Surface: entry points only. Deep: full core logic scan. | | format | "chat" \| "file" \| "hybrid" | "hybrid" | Report format. Chat: summary only. File: markdown report. Hybrid: both. | | fix | boolean | false | Enable automated Fix-Fleet to resolve issues. | | timeoutMs | number | 300000 | Optional timeout in milliseconds for the entire audit operation. | | onProgress | (stage: string, progress: number, total: number) => void | undefined | Optional progress callback for UI updates. |

📈 Pipeline Flow

CommandConfigProject MappingParallel AuditChief Synthesis(Optional) Fix-FleetVerification.

📊 Version 0.5.0 Highlights

  • All console output unified through logger utility — consistent formatting, configurable log levels
  • Timeout mechanism — prevents hanging audits on large codebases
  • Progress reporting — callbacks for UI integration
  • Input sanitizationsanitizePath() prevents path traversal
  • Conservative magic number fixes — avoids false positives on years, ports, HTTP codes, etc.
  • TypeScript isolatedModules: true — eliminated TS151002 warnings

📄 License

MIT