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

brainofbrains

v0.1.0

Published

Scan your AI stack for token waste, efficiency leaks, and cost-reduction opportunities. Delivers a preview BIV score + actionable report. From BrainOfBrains.ai.

Readme

brainofbrains

Free local self-check for an AI-heavy project. It looks for waste, weak efficiency, frontier-heavy spend, and missing visibility. No account, no signup, nothing leaves your machine.

Fastest path

npx brainofbrains scan .

That is the whole first run. The command scans the current folder and prints a plain-English report.

What it looks for:

  • AI SDK packages in package.json
  • Cost event logs like .ai-cost-data/events.jsonl
  • Compression, efficiency, and local-vs-frontier routing signals

Example

$ npx brainofbrains scan

BrainOfBrains scan  /Users/you/my-ai-project
4/19/2026, 5:42:10 PM

Local scan only. Nothing was uploaded.

WHAT BRAINOFBRAINS SAW
  ✓ @anthropic-ai/sdk ^0.30.0
  ✓ openai ^4.70.0
  ✓ event log: .ai-cost-data/events.jsonl (42.1KB)

LAST 24 HOURS
  events:            1,204  (frontier 1,122 · local 82)
  frontier spend:    $12.40
  input tokens:      480,330
  avoidable tokens:  216,148
  compression:       0.550
  efficiency avg:    62.3/100
  local share:       6.8%

BRAIN HEALTH PREVIEW  (preview BIV score)
  62.4 / 100   (confidence: medium)

WHAT WE FOUND
  ● HIGH  Compression leak: 45% of tokens avoidable
     216,148 of 480,330 input tokens in the last 24h could have been trimmed.
  ● HIGH  $12.40/24h frontier spend, only 7% local
     Routing 40% of eligible calls to a local model would save ~$4.96/24h (~$1,810/year).

WHAT TO DO NEXT
  This stack is leaking money or signal. The good news: the fixes are usually straightforward.
  → Start with the findings above — there are 2 clear areas to tighten.
  → If you want the always-on version to keep watching this for you, visit https://brainofbrains.ai.
  → If you would rather talk first, email [email protected].

--json mode

For agents, CI, or anything that wants structured output:

npx brainofbrains scan --json

Returns the same scan result as JSON.

Why this is free

The scan is the qualification. If your stack looks healthy, you probably do not need the always-on product yet. If it looks leaky, the free report shows why.

Privacy

The scan runs entirely on your machine. Nothing is sent anywhere unless you opt in to anonymous telemetry via BRAINOFBRAINS_TELEMETRY=1. Even then, it sends a tiny summary only, not your files or event bodies.

Full product

See brainofbrains.ai for the always-on version: automatic checks, drift alerts, specialist brains, and the full install path.

License

MIT