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

lazybrain

v2.0.1

Published

Deterministic capability router and orchestration engine for local AI agents

Readme

LazyBrain

Local-first capability routing for AI agent tools.

LazyBrain terminal demo

LazyBrain turns a plain-language task into the right local AI capability, workflow combo, or orchestration plan. It is useful when you have many skills, slash commands, plugins, MCP tools, and local rules, but do not want to remember every exact command name.

Current package version: 2.0.1.

What Works Now

| Surface | Status | Use it for | | --- | --- | --- | | CLI: lb / lazybrain | Ready | Manual routing, workflow lookup, stats, graph refresh | | Claude Code project hook | Ready | One-time project install, then automatic high-confidence suggestions | | MCP: lazybrain-mcp | Ready | Agent clients that can call stdio MCP tools | | Local graph/cache | Ready | Fast deterministic matching from local capability metadata | | Hosted dashboard | Not included | No cloud UI or team sync in this beta | | Automatic task execution | Not included | LazyBrain recommends and plans; your agent still executes |

Install

Requires Node.js 18 or newer.

Install from npm:

npm install -g lazybrain
lb quickstart
lb ready

npm install only installs the CLI. It does not scan your home directory. lb quickstart is the explicit first-run command that scans local capability metadata and builds ~/.lazybrain/graph.json.

Beta tag:

npm install -g lazybrain@beta

From a source checkout:

git clone https://github.com/papperrollinggery/lazy-brain.git
cd lazy-brain
npm ci
npm run build
npm link
lb quickstart
lb ready

GitHub release tarball fallback:

npm install -g https://github.com/papperrollinggery/lazy-brain/releases/download/v2.0.0/lazybrain-2.0.0.tgz

Full install, cleanup, MCP, and smoke-test instructions: docs/INSTALL.md.

First Run

Run once after install or after changing local skills/rules:

lb quickstart

This runs the same local pipeline as lb scan plus lb compile: scan supported capability metadata, then compile a local graph under ~/.lazybrain/graph.json. This compile step is not an LLM call and does not use embeddings.

Use the CLI manually when you want to ask what capability fits a task:

lb "review this PR for security issues"

Install the Claude Code hook once per project if you want automatic suggestions:

lb hook install
lb hook status

After that, you do not need to type lb for every prompt in that project. The hook stays quiet when confidence is low.

Commands

| Command | Purpose | | --- | --- | | lb "task" | Find the best matching capability | | lb combo "task" | Return a reusable workflow template | | lb orchestrate "task" | Build a multi-skill execution plan | | lb scan | Scan local capability files | | lb compile | Rebuild the local capability graph; no LLM/embedding call | | lb quickstart | Scan and compile in one first-run command | | lb stats | Show recent usage and patterns | | lb discover | Find high-value unused local capabilities | | lb config show | Print local config with secrets redacted | | lb ready / lb ready --json | Check graph and hook readiness | | lb hook plan | Show the hook change that would be made | | lb hook install | Install the project Claude Code hook | | lb hook uninstall | Remove the project hook | | lazybrain-mcp | Start the stdio MCP server |

Example:

$ lb "review this PR for security issues"

/security-review 98%
Scan code for OWASP Top 10, auth bypass, injection, and credential exposure.

Also consider:
- /code-review
- /gitnexus-pr-review

MCP

Add this to an MCP-capable client:

{
  "mcpServers": {
    "lazybrain": {
      "command": "lazybrain-mcp",
      "args": []
    }
  }
}

Source checkout variant:

{
  "mcpServers": {
    "lazybrain": {
      "command": "node",
      "args": ["/absolute/path/to/lazy-brain/dist/bin/mcp.js"]
    }
  }
}

Current MCP tools:

| Tool | Purpose | | --- | --- | | lazybrain_find | Find matching capabilities for a task | | lazybrain_orchestrate | Build an orchestration plan | | lazybrain_stats | Read recent local usage stats | | lazybrain_scan | Scan local capability sources |

Smoke test:

printf '{"jsonrpc":"2.0","id":1,"method":"tools/list"}\n' | lazybrain-mcp

Supported Sources

lb quickstart, lb scan, and lb compile read local capability metadata from common agent-tool locations, including:

  • Claude Code skills and commands
  • Codex skills
  • project .claude/commands
  • .skillshub
  • .codex/skills
  • .agents/skills
  • Cursor, Windsurf, Cline, and OpenCode rule files
  • local SKILL.md-style capability files

Empty machines still work because LazyBrain includes built-in capabilities for common development workflows.

How Recommendations Are Kept Honest

LazyBrain's hot path is deterministic:

  • no runtime LLM call for normal matching
  • no embedding dependency for normal matching
  • no runtime dependencies in the published package
  • low-confidence hook suggestions stay silent
  • golden-set tests cover 76 labeled routing cases plus negative cases
  • precision gate requires at least 88% top-match precision
  • latency gate requires average find() time under 200ms

Verification commands:

npm run lint
npm test
npm run build
npm run audit:public
npm pack --dry-run --json

Privacy

LazyBrain is local-first. It scans local capability metadata and writes local cache/history files under ~/.lazybrain. It does not upload scanned files, does not require a cloud account, and does not send telemetry.

Details: docs/PRIVACY.md.

Beta Fit

Good fit:

  • local AI power users
  • teams with many skills, prompts, rules, commands, or plugins
  • agent workflow authors
  • developers who want deterministic routing without a runtime LLM call

Not a fit yet:

  • users expecting LazyBrain to execute every step automatically
  • users needing a hosted team dashboard
  • users needing cross-machine sync
  • users needing managed cloud telemetry or analytics

Docs

Contributing

The smallest useful PR is one trigger phrase plus one golden-set case:

  1. Add the trigger/example in src/knowledge/builtin.ts.
  2. Add a labeled query in test/golden/find.test.ts.
  3. Run npm test.

Useful contribution areas: trigger phrases, combo templates, orchestration rules, scanner coverage, and benchmark cases.

License

AGPL-3.0.