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

sbe-cli

v0.4.0

Published

Native Rust semantic graph CLI for code impact, change simulation, and focused context retrieval.

Downloads

897

Readme

SBE npm CLI

This package installs the sbe command for Software Brain Engine.

It is a Node.js wrapper around the native Rust engine. The wrapper downloads the correct prebuilt binary from GitHub Releases on install or first run, caches it under ~/.sbe/bin/<version>/, and forwards commands to the Rust executable.

SBE indexes TypeScript, TSX, and Python projects. Python support is provided by the built-in Python language plugin.

Install

npm install -g sbe-cli

Or run without a global install:

npx sbe-cli scan .

Commands

sbe scan .
sbe update .
sbe graph createUser --json
sbe impact saveUser
sbe context createUser --budget 4000 --json
sbe simulate modify createUser
sbe simulate delete createUser --max-depth 6 --record
sbe simulate replace createUser --json
sbe explain "jwt to passport" --json

sbe explain <flow> maps to the Rust CLI command sbe analyze-change <flow>.

sbe update incrementally refreshes changed files in an existing .sbe index. sbe impact <symbol> prints affected symbol count, affected file count, and traversal depth; use --json for the detailed report.

sbe context <symbol> compiles a deterministic, budgeted context pack for future AI tools without calling an AI model.

sbe simulate <modify|delete|replace> <symbol> predicts the blast radius before code is edited. It traverses dependencies and callers, scores risk, detects affected entry-point flows, recommends connected existing tests, and compiles a context pack. Add --record to save the JSON report under .sbe/reports/.

SBE analysis is deterministic and graph-based. It does not call AI, execute project code, or claim compiler-grade TypeScript or Python type resolution.

Supported Platforms

  • Linux x64
  • macOS x64
  • macOS arm64
  • Windows x64

Safety

  • Does not compile Rust during npm install.
  • Does not require Rust on the user's machine.
  • Downloads only from GitHub Releases.
  • Validates SHA256 checksums from checksums.txt.
  • Supports SBE_SKIP_DOWNLOAD=1 to skip postinstall download and retry on first run.
  • Supports SBE_CORE_PATH=/path/to/sbe for local development.