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

@xcraftmind/mastermind

v2.1.1

Published

Local codegraph and verifiable workflow for AI coding agents — project maps, change and test impact, MCP queries, Vue SFC indexing, and diff-backed implementation audits. Prebuilt binaries for macOS, Linux, and Windows.

Readme

See the consequences behind the diff

A diff tells you what changed. Mastermind shows what the change reaches: downstream callers, architecture boundaries, candidate tests, ownership, security findings, runtime evidence, and repository policy.

One local snapshot powers the CLI, 30 bounded MCP tools, the read-only Lens UI, SARIF output, and a standalone review package.

Your first review in three commands

Requires Node.js 24+. The package selects a prebuilt native binary for macOS, Linux, or Windows. Rust is not required.

npm install -g @xcraftmind/mastermind

cd your-repository
mastermind index .
mastermind impact --since main
mastermind brief --role executor --since main --budget-tokens 2000
mastermind concept "payment retry handler" --top 10
mastermind ui --since main

index writes a local graph to .mastermind/mmcg.db. Lens binds to loopback, reads the index without mutating it, and loads no remote frontend resources. brief gives a planner, executor, or auditor one revision-bound packet. Its budget includes the final MCP transport envelope; repository source bodies, declaration signatures, literal/default values, and history excerpts are never included.

concept retrieves a small deterministic candidate set from normalized symbol names, repository paths, and declaration shapes. It uses local SQLite FTS5, with no embeddings, model calls, network access, source bodies, or comments.

One graph, five useful surfaces

| Job | Surface | |---|---| | Review a branch | Changed symbols → downstream reach → boundary crossings → candidate tests | | Audit a codebase | Components, entry points, cycles, centrality, ownership concentration, and hotspots | | Guard architecture | Policy checks with text, JSON, and SARIF output | | Ground an agent | Bounded MCP queries over the same local graph | | Share the result | Standalone offline Lens, SARIF, summary, and revision/evidence manifest |

Mastermind keeps uncertainty visible. Stale indexes, repository drift, work limits, truncation, unavailable analysis, and partial evidence are result states, not footnotes hidden behind a clean badge.

Bring your existing evidence

mastermind ui --since main \
  --sarif semgrep.sarif --sarif codeql.sarif \
  --coverage lcov.info --coverage cobertura.xml \
  --junit junit.xml --otel traces.json

Lens correlates exact returned trace files with SARIF, LCOV/Cobertura, JUnit, OpenTelemetry, CODEOWNERS, Git churn, specs, ADRs, audits, lessons, and imported facts. Provenance and completeness survive the join.

Runtime evidence may corroborate an exact structural edge. It never silently creates graph topology.

Export a portable review

mastermind review export --since main --out mastermind-review

The output contains standalone HTML, SARIF, a bounded Markdown summary, a revision/evidence manifest, and a pinned GitHub Actions workflow. The reviewer does not need Mastermind installed.

Connect your coding agent

mastermind install --client all --profile core
mastermind setup cursor --scope user --write
mastermind setup continue --scope user --write
mastermind doctor --workflow --client all
mastermind workflow audit --root . --json

Fresh installs default to core (15 portable skills, including product intake). frontend installs 20, security installs 18, and full installs all 26. Every profile keeps the complete Claude subagent set; only portable skill discovery is narrowed. Updates preserve each client's installed profile unless --profile explicitly changes it. Legacy schema-v1 manifests migrate as full. Older installers reject the schema-v2 manifest without replacing managed files, so use the current package for later updates. Install and update reject symbolic links at managed workflow paths instead of following them into another directory.

workflow audit is read-only. It graphs only repository-owned source workflow files or artifacts listed by an installed ownership manifest, then reports missing MCP scope/registration, invalid runtime bounds, optional skill closure, writer conflicts, unreachable tools, and componentized context estimates.

Mastermind supports Claude Code, Codex, Cursor, Continue, and generic MCP stdio clients. Setup previews changes unless --write is present. The MCP server exposes 21 non-destructive queries that may refresh the managed derived index, 8 read-only tools, and one additive write to the local gitignored scratchpad.

Supported stack

  • Languages: Python, TypeScript/TSX, JavaScript/JSX, Vue SFC, Rust, C#, Go, Java, PHP, and C/C++.
  • Platforms: macOS arm64/x64, Linux glibc and musl arm64/x64, Windows x64.
  • Evidence: SARIF, LCOV/Cobertura, JUnit, OTLP JSON, CODEOWNERS, Git, SCIP, and signed declarative facts.

The default Tree-sitter graph is syntactic and toolchain-free. Optional SCIP adds compiler-resolved definitions and references. Dynamic dispatch, reflection, generated code, dependency injection, re-exports, overloads, and cross-language calls may be incomplete. Candidate tests and unreferenced symbols are review inputs, not authorization to skip tests or delete code.

Measured performance

On the published synthetic Rust benchmark, an Apple M3 Pro indexed 1,000 files and 20,000 functions in a 310 ms median cold run. An unchanged scan took 41 ms. A 10,000-file, 200,000-function corpus took 3.20 s cold and 353 ms unchanged.

These are measurements on one machine, not portable guarantees. See the methodology, ranges, and reproduction command.

Documentation

| I want to… | Go here | |---|---| | Understand the product | Product README | | Run my first review | Getting started | | Look up a command, limit, or MCP tool | CLI and MCP reference | | Connect an AI client | Client integrations | | Use the delivery workflow | Review workflow | | Import external evidence safely | Fact-ingestion SDK |

The same binary is available from crates.io as mmcg. npm installs it as both mastermind and mmcg.

License

MIT — source and license.