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

autoworker-hub-cli

v1.0.0

Published

Spec-driven CLI for the full Autoworker Hub Control API, including admin operations. Zero runtime dependencies.

Readme

autoworker-hub-cli

Spec-driven command-line client for the full Autoworker Hub Control API, including admin and control-plane operations. Pure Node.js (>= 20.12), zero runtime dependencies — every command is derived at runtime from the bundled OpenAPI spec (reference/openapi.json).

Looking for the safe, project-scoped tooling instead? See the sibling package autoworker-hub-project, which deliberately excludes admin mutations.

Install

npm i -g autoworker-hub-cli
# or run without installing
npx autoworker-hub-cli --help

Configuration

| Setting | How | | --- | --- | | Base URL | --base-url https://hub.example.com flag, or AUTOWORKER_HUB_CLI_BASE_URL env var | | Bearer token | AUTOWORKER_HUB_CLI_TOKEN env var only — never a CLI flag, never logged |

export AUTOWORKER_HUB_CLI_BASE_URL=https://hub.example.com
export AUTOWORKER_HUB_CLI_TOKEN=...   # control-plane bearer token

Usage

autoworker-hub-cli <tag> <operation> [flags]
  • autoworker-hub-cli --help lists tags (command groups).
  • autoworker-hub-cli <tag> --help lists that tag's operations.
  • autoworker-hub-cli <tag> <operation> --help shows the operation's parameters (name, location, required, description) from the spec.

Path, query, and header parameters become --kebab-case flags. Request bodies are passed as JSON via --data '<json>', --data @file.json, or --data - (stdin). Responses print as raw JSON to stdout (pretty-printed when stdout is a TTY). Non-2xx responses print ERROR: <status> <body> to stderr and exit 1.

Examples

# Liveness + version
autoworker-hub-cli system get-health
autoworker-hub-cli system get-version

# List tenants, inspect one
autoworker-hub-cli tenants list-tenants
autoworker-hub-cli tenants get-tenant --tenant-id acme

# Create a tenant (admin operation)
autoworker-hub-cli tenants create-tenant --data '{"tenantId":"acme","displayName":"Acme"}'

# Start a run and stream its Server-Sent Events
autoworker-hub-cli tenants create-tenant-run --tenant-id acme --data @run.json
autoworker-hub-cli tenants stream-tenant-run-events --tenant-id acme --run-id run-123

Command groups

The canonical spec does not declare OpenAPI tags, so groups are derived from the first URL path segment (after /v1): tenants, flavors, skills, secrets, share-groups, eval-runs, metrics, admin, config, codex-auth, autoworker-agent, agent-policy, a2a, and more. Single-operation system endpoints (healthz, readyz, version, reconcile, the schema downloads, and outbox metrics) are collapsed into the system group.

Streaming and binary responses

Endpoints whose success response is text/event-stream (for example tenants stream-tenant-run-events) print the raw SSE stream line-by-line as it arrives; no client-side event parsing or reconnect is performed. application/octet-stream responses (file downloads) are written as raw bytes to stdout — redirect to a file.

Regenerating the spec

The CLI is generated at runtime from the bundled reference/openapi.json. To refresh it from the repo's canonical api/openapi.yaml (maintainers, before publishing):

npm run sync-spec

The YAML-to-JSON conversion happens only in this build step (the yaml devDependency); the published package never parses YAML at runtime.

License

MIT