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

contrarianai-audit-report-generator

v0.1.0

Published

Consumes outputs from context-inspector, retrieval-auditor, tool-call-grader, and predictor-corrector, emits a unified audit report in markdown / HTML / JSON. The technical foundation of the Audit-in-a-Box SKU.

Readme

audit-report-generator

Consumes outputs from context-inspector, retrieval-auditor, tool-call-grader, and predictor-corrector, emits a unified Bell Tuning audit report in markdown / HTML / JSON.

This is the technical foundation of the Audit-in-a-Box SKU — a productized version of the consulting engagement that lets customers self-serve a full audit by uploading their sensor outputs.

Model

    context-inspector ─┐
    retrieval-auditor ─┤
    tool-call-grader  ─┼──► audit-report-generator ──► report.md / .html / .json
    predictor-corrector ┘

Each sensor input is optional. Sections are emitted only for inputs actually provided. An executive summary is always produced, with overall-health aggregated across sensors using worst-signal-dominates, plus top findings and recommended actions.

Install & run

cd tools/audit-report-generator
npm install           # no runtime deps; zero install
npm test              # 6 unit tests
npm run example       # end-to-end: consumes real experiment outputs, produces sample reports

The example pulls results from predictor-corrector/sim/unseen-tide/, retrieval-auditor/sim/rag-needle/, and tool-call-grader/sim/agent-cascade/ and generates sim/example-audit/outputs/report.{md,html,json}.

CLI

audit-report-generator audit-config.json
audit-report-generator audit-config.json --format html --out report.html

audit-config.json bundles the four sensor outputs:

{
  "title": "Bell Tuning Audit — Acme Corp",
  "client": "Acme Corp",
  "auditor": "contrarianAI",
  "date": "2026-04-19",
  "contextInspector":   { ... analyze_context output ... },
  "retrievalAuditor":   { ... audit_retrieval output ... },
  "toolCallGrader":     { ... grade_session output ... },
  "predictorCorrector": { ... healthReport output ... }
}

Output shape

Markdown with these sections (in order, any missing inputs are skipped):

  1. Executive Summary — overall health, regime, pathology count, top findings, recommended actions
  2. Context Window Analysis — from context-inspector
  3. Retrieval Quality — from retrieval-auditor
  4. Multi-Agent Tool Calls — from tool-call-grader
  5. Trajectory Forecast — from predictor-corrector
  6. Appendix — Raw Input Summary — compact per-sensor health + pathology list

HTML format adds minimal inline CSS so the report is presentable without a build step. JSON format returns structured data suitable for rendering in any dashboard.

Why this is the productization vehicle

The consulting engagement produces one of these reports by hand for each client — context and retrieval audited, pathologies prioritised, actions recommended. This tool automates the document-generation step. Pair it with a web uploader + API key per customer and you have Audit-in-a-Box as a SaaS SKU at the $299–$999 tier.

The Bell Tuning Cloud MVP (tools/bell-tuning-cloud) includes a "Download Report" endpoint that calls this generator on demand.

License

MIT