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

@kampus/fabrika-cli

v0.7.1

Published

@kampus/fabrika-cli — the deterministic verb package fabrika skills call; `fabrika <group> <verb> …` (epic #4650)

Downloads

4,295

Readme

@kampus/fabrika-cli

What it is

The deterministic verb package the fabrika skills call. fabrika <group> <verb> … dispatches to a registered verb group. fabrika is a two-layer split: deterministic work is pushed into CLI verbs, and each skill is a thin wrapper carrying only the judgment that cannot be mechanized. This package is the deterministic layer.

It is internal tooling for the kamp.us agent pipeline, not a general-purpose CLI. It ships on the public npm registry so a consumer repo can pin a version of it. For what fabrika as a whole is, read the guide.

Why it exists

  • Which copy of the binary answers an invocation, and why a copy from another repository is refused rather than delegated to: ADR 0287.
  • The GitHub credential order, and why gh is a convenience rather than a prerequisite: ADR 0315.
  • Why this package re-implements v1's work and never calls into it: ADR 0238. v1 is deleted, so that is history rather than a live constraint.

How to use it

pnpm add --global @kampus/fabrika-cli
fabrika --help

Inside a phoenix checkout you can skip the install and run the working tree: node packages/fabrika-cli/src/bin.ts --help.

Every verb that touches GitHub needs a credential in the environment — GITHUB_TOKEN, else GH_TOKEN. With neither set and gh on PATH, the credential is resolved once from an existing login before any request. A credential that resolves nowhere is a refusal naming both variables, never an anonymous call. There is no gh prerequisite: the package reaches api.github.com over HTTP (src/io/gh-api.ts), and guard no-gh check keeps it that way on every push.

This package installs into repositories that are not the one it is developed in, so neither its source nor the plugin's skills may carry a reference that only resolves here. guard portability-guard check holds that on every push: it walks claude-plugins/fabrika/ and packages/fabrika-cli/src/ and reds a ticket number, a decision-record number in either spelling, a .decisions/ path, a hosted issue or pull-request URL, and any name the repo declares under the portability key of .fabrika.jsonc. A markdown heading, a hex colour and a ticket number that is test data are not references. Neither is an @ruling <issue url> citation under packages/fabrika-cli/: a docblock here cites the ruling issue that governs it rather than a decision record, because a decision-record number means something else in the next repository (ADR 0394). Only the tag's own span is admitted, so prose sharing the line is scanned as usual, and the tag must name a URL. The bounded allow-list in portability-guard.config.json has two buckets, each entry carrying a mandatory why: exempt is a permanent per-file cap for text that is not a portability defect, and unmigrated is the sweep floor — one row per sweep unit, and it only shrinks, so a ceiling left above the count reds exactly as loudly as a new reference does.

Ordered recipes — installing, credentialing, finding a group and a verb, reading a refusal, running from a consumer repo — are in docs/running-fabrika-in-a-repo.md.

Reference

  • docs/usage-recording.md describes the shared host recording API, versioned usage envelopes, issue/run model and token summaries, native counter meanings and recovery. Claude and Codex totals report their coverage; Pi observation remains unavailable.
  • docs/verb-reference.md orients readers to command groups, retained contracts and the capture library. Group help lists verbs; each verb's --help owns its inputs, answer and exit meanings. The help index comes from src/registry.ts. The interface convention defines the shared calling rules and documentation owners.
  • docs/packaging.md — which copy of the binary serves an invocation, the delegation-outcome table, the environment variables, the two Node floors and the publishConfig rewrite.
  • .patterns/fabrika-verb-shape.md — how a verb module is put together and which services it takes.

Testing

pnpm --filter @kampus/fabrika-cli test        # vitest
pnpm --filter @kampus/fabrika-cli typecheck   # tsc
pnpm --filter @kampus/fabrika-cli build       # tsc -> dist/, for the published tarball only

The development loop has no build step: bin points at ./src/bin.ts and Node ≥ 24 strips the types natively, so an edit to src/ is live on the next invocation. build emits dist/ for the published tarball and nothing else reads it — see docs/packaging.md for the two floors and the publishConfig rewrite.