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

@permission-slip/cli

v0.1.30

Published

Agent-facing CLI for Permission Slip — register, verify, and interact with Permission Slip servers

Readme

@permission-slip/cli

Agent-facing CLI for Permission Slip. All commands output compact JSON by default; pass --pretty for formatted JSON.

Setup

Set your server URL once (required — there is no default host):

export PS_SERVER=https://your-permission-slip.example.com
# or
permission-slip config set default_server https://your-permission-slip.example.com

Register and verify:

permission-slip register --invite-code <code>
permission-slip verify --code <confirmation_code>

Standing approval constraints

Standing approvals store JSON constraints that limit when auto-approve applies. The web and mobile apps edit v2 structured constraints; legacy flat maps still evaluate identically via a read adapter (no database backfill required).

Format constraints for humans

Use auto-approve format to turn stored JSON into readable text (legacy flat or v2 structured):

# JSON output: { "lines": [...], "text": "..." }
permission-slip auto-approve format \
  --constraints '{"recipient":{"$pattern":"*@acme.com"},"$meta":{"from":"[email protected]"}}'

# Plain text (one line per constraint)
permission-slip auto-approve format \
  --constraints '{"$version":2,"match":"any","groups":[...]}' \
  --text

Example plain-text output:

recipient: *@acme.com
Verified sender: [email protected]

With multiple scenarios (v2), lines are prefixed Scenario 1:, Scenario 2:, etc. Negated rules show not before the value.

Propose a new standing approval

permission-slip auto-approve request \
  --action-type email.send \
  --constraints '{"$version":2,"match":"any","groups":[{"match":"all","conditions":[{"field":"recipient","op":"matches","value":{"$pattern":"*@company.com"}}]}]}'

The proposal must be approved in the web or mobile app before it takes effect.

See docs/standing-approval-constraints.md for constraint syntax, semantics, and backward-compatibility notes.

Common commands

| Command | Purpose | |---------|---------| | capabilities | List connector actions and standing approvals | | request | Request approval for an action | | request-bulk | Bulk approval for N same-type actions | | watch | Poll a pending approval and wake the session on resolve | | pending | Heartbeat sweep for pending/recent approvals | | changelog | Show CLI updates since your last session |

Run permission-slip --help for the full command list.

Development

cd cli && npm install && npm test && npm run build

The CLI bundles @permission-slip/constraints-format from shared/constraints/ at build time via esbuild, so the published npm tarball has no monorepo-only dependencies.