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

@vensofts-integration-testkit/authz-cli

v0.1.4

Published

Command-line interface for the Authorization Contract SDK: init, validate, plan, run, explain, doctor.

Readme

@vensofts-integration-testkit/authz-cli

Test your API's authorization against a written contract. You describe who may do what (roles, tenants, grants, states) in a small contract; authz turns it into allow/deny/forbid cases, runs them against your real HTTP app, and tells you exactly which request leaked data or refused a legitimate user. MIT.

Part of the NodeSDK Authorization Contract SDK. Node.js 22 or newer.

Install

npm install --save-dev @vensofts-integration-testkit/authz-cli @vensofts-integration-testkit/authz-core

Quick start

npx authz init        # writes contract.mjs and authz.config.mjs (never overwrites without --force)
npx authz validate    # checks the contract, world and bindings
npx authz plan        # compiles the cases and shows how many obligations they cover
npx authz run         # runs every case against your app and writes a JSON report

init creates a working example you edit for your app:

  • contract.mjs: the rules, e.g. "members of a tenant may read its notes".
  • authz.config.mjs:
    • the world: the test users and records that exist in your test database;
    • the bindings: which HTTP request performs each operation, such as GET /notes/{resource.id};
    • the runtime: where your app runs and how each test user logs in.
$ npx authz plan
plan sha256:fd2d1253…
cases 3, obligations declared 8, runnable 8, unsatisfied 0

Ask why a decision comes out the way it does:

$ npx authz explain --operation note.read --actor outsider --resource note1
decision: DENY (default-deny)
rule members-read [allow] not matched
  ✗ all
    ✗ sameTenant — resource.tenant=org-1
    ✓ actorState — actor.state=active

Commands

| Command | What it does | | ------------------------------------------------- | ------------------------------------------------------------------------------- | | init | Create a small, compilable config and sample contract | | validate | Validate the contract, world and bindings | | plan [--out plan.json] | Compile the obligations and print how many are runnable | | run [--format …] [--out-dir dir] | Execute the plan against your app and write reports | | explain --operation --actor --resource [--time] | Explain one decision rule by rule | | inventory --openapi api.json | List API operations that have no binding yet | | doctor | Check Node, configuration, app reachability, identity controls and license | | sensitivity (Pro) | Find blind spots: contract mistakes your current test data cannot detect | | review --base <module> (Pro) | Show the concrete allow/deny changes of a contract edit; check an approval file |

Global options: --config <file> (default authz.config.mjs), --json for machine-readable output and errors, --help.

Every deny case is paired with an identity control (the user really is logged in) and an allow control (the same user succeeds on a request they are allowed to make), so a broken login can never pass as "access denied".

In CI

npx authz run --out-dir reports

Exit codes: 0 pass, 1 violation, 2 invalid configuration, 3 unresolved obligations, 4 environment or budget, 5 unlicensed. A plan that cannot run all its obligations never passes.

Free and Pro

Everything above is free, including run with JSON reports. A NodeSDK Pro license adds:

  • Reports: run --format json,html,junit,sarif,md writes an accessible HTML report, JUnit for test dashboards, SARIF for GitHub code scanning and a Markdown job summary.
  • Lifecycle scenarios: revoked grants, role downgrades, suspensions, tenant moves and stale sessions.
  • sensitivity and review (see the table above).

The Pro features are in @vensofts-integration-testkit/authz-pro, whose page shows more screenshots from a real run.

Pro HTML report showing 62 failed authorization checks out of 1060

Install it next to the CLI and pass your license with --license license.json or license: { file: 'license.json' } in the config. Without a license, Pro options stop with exit code 5 before any work starts; they never silently run a smaller test.

Pricing: a free 14-day trial, then USD 299 per year per organization; see the price table. Email [email protected] to buy a license or ask a question.