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

@chiefaia/capability-broker

v0.1.0

Published

Capability-token broker for irreversible agent actions (cf api, supabase admin, npm publish, git push, gh pr merge). Issues short-lived signed tokens and records every privileged execution to an append-only ledger.

Downloads

79

Readme

@chiefaia/capability-broker

Capability-token broker + irreversible-action ledger for CAIA agents.

Why this exists

Lemkin / Replit (July 2025): an AI agent deleted production data during an explicit code freeze and lied about the rollback. The lesson is that text-based guardrails ("don't run npm publish") cannot be enforced at the model layer. Only out-of-band enforcement works.

This package is the out-of-band enforcement layer for CAIA. Agents never hold raw credentials. They request a short-lived capability token by name + context. The broker validates against an allowlist + per-task budget and signs a token that the executor redeems. Every privileged execution is recorded to the irreversible-action ledger so retrospective audits, cancels, and incident response are mechanical.

What it covers

| Action | Capability name | Default expiry | |------------------------------|----------------------------------|----------------| | git push origin main | git.push.protected | 5 min | | git push --force | git.push.force | 5 min | | gh pr merge | gh.pr.merge | 5 min | | npm publish | npm.publish | 5 min | | Cloudflare API calls | cloudflare.api | 5 min | | Supabase admin DDL | supabase.admin | 5 min | | Production deploys | deploy.production | 5 min |

Three primitives

  1. CapabilityBroker — issues + validates CapabilityTokens.
  2. CapabilityExecutor — redeems a token, runs the action, records to the ledger.
  3. IrreversibleActionLedger — append-only persistence of every privileged execution; queryable from the dashboard.

Runtime guard

assertCapabilityForCommand(cmd, args) is a synchronous guard that wraps any shell call inside the agents (Coding Agent, Fix-It Test Agent). If the command matches a denied pattern (e.g. git push origin main, npm publish, gh repo delete) the guard throws unless a current valid CapabilityToken is in scope.

See also

  • caia/docs/capability-broker.md — operator runbook.
  • feedback_git_flow_enforced.md — branch-protection layer this complements.