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

@zamatica/auth-cli

v0.1.2

Published

Admin + user CLI commands for the zamatica fleet-env cert auth scheme. Hosted as a library — consumers side-effect-import this package's command modules to register them with `@zamatica/bootstrap`'s commander program.

Readme

@zamatica/auth-cli

Admin + user CLI commands for the zamatica fleet-env cert auth scheme. Hosted as a library — consumers side-effect-import this package's command modules to register them with @zamatica/bootstrap's commander program.

Phase 1 commands (this lib's current surface)

| Command | Purpose | |---|---| | init-root --fleet-env <env> | Generate root keypair + CRL-signer subkey + trust bundle for a new fleet-env. Writes to ~/.<acronym>-admin/<fleet-env>/. Loud warning to MOVE the root private key offline. | | sign-user --name <user> --fleet-env <env> [--pubkey <path>] [--roles <comma-sep>] [--expires <duration>] | Issue a user cert signed by the fleet-env's root. If --pubkey is omitted, also generates a user keypair (with a loud warning about protecting it). Writes <user>@<acronym>.<fleet-env>.access.json. |

Future commands (per the auth design plan): revoke-user, publish-crl, emergency-extend, rotate-root, list-users, list-revoked, renewals-due, export-ci-cert, login, logout, whoami, remote add/list/remove/default/inspect, audit.

How a consumer registers these commands

// In your app's CLI bootstrap (e.g. apps/headless/src/cli/bootstrap.ts):
import { bootstrap as bootstrapApp } from '@zamatica/bootstrap';
import { APP_IDENTITY } from '../shared/app-manifest.js';

// Side-effect imports register every @CliCommand decorator in the lib.
import '@zamatica/auth-cli';

// Plus the consumer's own commands:
import './commands/status.js';
import './commands/install.js';

export async function runCli(argv: readonly string[]): Promise<void> {
  const { run } = bootstrapApp(APP_IDENTITY);
  await run(argv);
}

The @CliCommand decorator on each command pushes into @zamatica/bootstrap's module-singleton registry at import time. As long as the imports run BEFORE bootstrap(), commander sees them all when building the program.

fleet-env naming

The --fleet-env <env> argument is a flat string carrying a compound concept: a fleet identifier plus its target deployment environment. Examples: prod-internal, acme-staging, local-dev. Code treats it as opaque — no parsing or decomposition. The trust bundle's fleetEnv field, the cert's fleetEnv field, and the daemon's MTZ_FLEET_ENV env var all consume the same string.

Output layout

init-root --fleet-env <env> writes (relative to ~/.<acronym>-admin/<env>/):

<acronym>.<env>.private.pem               ← ROOT private key (MOVE OFFLINE immediately)
<acronym>.<env>.public.pem                ← ROOT public key (bake into daemon deploys)
<acronym>.<env>.crl-signer.private.pem    ← CRL signer (day-to-day signing happens with this)
<acronym>.<env>.crl-signer.public.pem
<acronym>.<env>.trust-bundle.json         ← roots + crl signer + roleMap; daemons load this

sign-user --name <user> --fleet-env <env> writes (when --pubkey is omitted, the keypair lives next to the cert):

<user>.<acronym>.<env>.private.pem        ← USER private key (give to the user; warn them)
<user>.<acronym>.<env>.public.pem         ← USER public key
<user>@<acronym>.<env>.access.json        ← signed cert (distribute via Slack DM, 1Password, etc.)

Development

bunx nx build auth-cli
bunx nx test auth-cli