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

@benkei-ai/cli

v0.1.7

Published

The benkei command-line interface — inspect agent templates, walk processes, browse memory sections, run eval suites, verify event chains. Ships the implementation dashboard (browser UI) as a built-in HTTP server.

Readme

@benkei-ai/cli

The benkei command-line tool. Inspect agent templates, walk processes step-by-step, browse memory sections (namespaces), run eval suites, verify event chains, and serve the implementation dashboard (browser UI) from any catalog repo.

Install

Local devDep (recommended — one entry in your repo, pnpm viz script):

pnpm add -D @benkei-ai/cli

Or invoke ad-hoc without installing:

bunx @benkei-ai/cli admin --template ./dist/index.js --open

Quick start — visualise a catalog

From inside any @benkei-ai/* / @cryptobenkei/* / @benkei-templates/* package (e.g. @benkei-ai/templates, @cryptobenkei/hulahoop, your own catalog):

pnpm build                                          # produce dist/index.js
bunx @benkei-ai/cli admin --template ./dist/index.js --open

The dashboard opens in your browser with three things to explore:

  • Agent tree — the manager + every child blueprint (managers, leaves) in declaration order, with role badges, default-child marker, and lifecycle state list.
  • Processes — every process the catalog ships, rendered step-by-step: node type (human / llm / action / branch / flow / collect_documents), step prompt, the JSON slice it fills (produces.path + schema tree), outgoing transitions and their conditions.
  • Memory — declared namespaces per agent (= the wiki/section layout the agent will own), with introspected Zod schemas.

Plus, per agent: full prompt + per-lifecycle-state instructions, the resolved capability requirements (joined with the @benkei-ai/core capability catalog: scope, side effects, cost class, error codes, identity bindings), and the Zod I/O contracts for each capability.

Multiple catalogs at once

Pass --template multiple times (or point at a workspace directory that contains several catalog packages — every @benkei-ai/* / @cryptobenkei/* / @benkei-templates/* package under it is discovered):

bunx @benkei-ai/cli admin \
  --template ./catalogs/standard/dist/index.js \
  --template ./catalogs/private/dist/index.js \
  --open

Flags

| Flag | Default | Purpose | |------|---------|---------| | --template <path> | (required, repeatable) | Built catalog file (dist/index.js) or a workspace/package directory | | --port <n> | random free port | HTTP port | | --host <h> | 127.0.0.1 | Bind interface | | --open | off | Open the dashboard in your default browser |

What does discovery look for?

A package is treated as a catalog when its package.json name matches one of:

  • @benkei-templates/* (legacy)
  • @benkei-ai/*
  • @cryptobenkei/*
  • or its package.json has "benkeiCatalog": true (opt-in for any other scope)

Inside each candidate, every export with the shape of a BlueprintContract ({ manager, childTemplates }) is loaded, deduped by manager identity. ProcessTemplates (anything with slug + nodes[] + edges[]) are collected from the same modules and resolved against blueprint references.

Other commands

benkei logs <agentDir>                   # summarise an agent's event log
benkei verify <agentDir>                 # verify the signed event chain
benkei dashboard <rootDir> <rootDid>     # tenant-wide activity dashboard
benkei export <agentDir> <bundleDir>     # write a portable agent bundle
benkei import <bundleDir> <agentDir> <did>
benkei eval <suite.yaml> [--run --template <path>]

All commands operate against on-disk agent state (no network). The verify, logs, dashboard, export, import paths use SQLite via better-sqlite3, which is loaded lazily — you only need to install it if you run those commands:

pnpm add -D better-sqlite3

The admin (dashboard) command never opens a real agent store, so better-sqlite3 is not required for catalog visualisation.

Links

License

ISC