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

dominus-platform-cli-dev

v0.1.5

Published

Agent-native CLI for the Dominus platform with 100% dominus-mcp tool parity

Readme

dominus-platform-cli

Agent-native CLI for the Dominus platform with 100% dominus-mcp tool parity (260 tools). One-shot, stateless, JSON-first: built so an AI agent with a shell can operate the platform without an MCP client.

Quickstart (agents)

export DOMINUS_USER_TOKEN=<your user token>   # or DOMINUS_TOKEN=<project PSK>
export DOMINUS_PROJECT=<project-slug>         # ambient scope (or pass --project per call)
export DOMINUS_ENV=production                 # development | staging | production

npx dominus-platform-cli context              # one-call bootstrap: auth, scope, inventory
npx dominus-platform-cli db_tables            # any of the 260 tools

Installed globally (npm i -g dominus-platform-cli) the binary is dominus.

Output contract

  • stdout: exactly one JSON document on success, exit 0.
  • stderr: { "error": { "code", "message", "tip" } } on failure, exit non-zero. The tip tells the agent how to self-recover.
  • --pretty opts into indented JSON. Never interactive, no ANSI, no prompts.

Commands

| Command | Purpose | | --- | --- | | dominus context | Bootstrap blob: auth status, resolved scope, tool count, next calls | | dominus capabilities | All 260 tools grouped by family (offline, from the shipped catalog) | | dominus <tool> [--flags] | Invoke a tool; flags are the tool's input-schema properties | | dominus <tool> --show-schema | Print a tool's input schema (offline); legacy --schema also works when the tool has no schema input | | dominus call <tool> --json '{...}' | Invoke with a JSON payload (also @file.json or - for stdin) | | dominus docs [topic] | Platform orientation docs (offline) |

See docs/usage-reference.md for the generated per-tool reference.

Auth modes

| Mode | Env var | How it executes | | --- | --- | --- | | Service | DOMINUS_TOKEN (project PSK) | SDK mints service JWTs locally; token is project-bound | | User | DOMINUS_USER_TOKEN | Exchanged once per (project, env) for a selected-scope JWT via the MCP server's POST /auth/scope-token, cached in ~/.dominus/cache.json until expiry |

Scope is resolved from --project/--env flags or DOMINUS_PROJECT/DOMINUS_ENV env vars on every call — nothing is persisted, so parallel agents never collide. select_project validates access and emits an exportable env block instead of storing state.

Architecture

  • catalog/tools.json — committed catalog refreshed from the live MCP server (npm run refresh-catalog); ships in the package so discovery works offline.
  • catalog/routing.json — per-tool routing overlay (npm run merge-routing): 199 tools call dominus-sdk-nodejs methods, 39 hit raw gateway routes (WAF-safe base64 envelope), and 22 are hand-written composites.
  • Parity gate (npm run parity-check) — CI diffs the catalog against the live tools/list (names + schemas) and fails the publish on drift.

Publish lanes

Push to a lane branch to publish via GitHub Actions (version-exists skip):

| Branch | npm package | | --- | --- | | dominus-development | dominus-platform-cli-dev | | dominus-staging | dominus-platform-cli-staging | | dominus-production | dominus-platform-cli |

Secrets per GitHub environment: NPM_TOKEN (publish), DOMINUS_USER_TOKEN (parity gate).

Development

npm ci
npm run build     # tsc -> dist/
npm test          # vitest unit tests
npm run parity-check
node scripts/generate-usage.mjs

Agent Orientation