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

anbaric-cli

v1.20.1

Published

The Anbaric platform CLI: deploy and operate state-machine apps on Anbaric Cloud

Downloads

5,351

Readme

anbaric-cli

The command-line interface for an Anbaric platform: it authorizes a terminal, deploys and manages apps, and inspects and drives jobs. It publishes as a single bundled file that runs on plain Node with no runtime dependencies. Every interactive prompt also has a flag, so the CLI runs unattended in scripts and CI as well as interactively.

npm install -g anbaric-cli

Commands

| Command | Purpose | | --- | --- | | anbaric login | choose a platform and authorize this terminal (browser flow; keypair saved to ~/.anbaric/key.json) | | anbaric logout | revoke this terminal's key on the platform and remove it locally | | anbaric apps | list deployed apps | | anbaric app configure | create or update the app's .anbaric/app-config.json (name + internal port) | | anbaric app deploy | deploy the app; waits until it is live (prompts before replacing a running app) | | anbaric app update | deploy, replacing a running app without prompting | | anbaric app status <name> | show an app's deploy state and whether it is up | | anbaric app tail <name> | stream an app's runtime logs to stdout (Ctrl-C to stop) | | anbaric app tear-down <name> | stop and remove a deployed app (--yes to skip the prompt) | | anbaric state-machines | list registered state machines | | anbaric jobs create <state-machine-id> <start-state> [key=value ...] | create a job in the given state machine and queue it for processing | | anbaric jobs list [state-machine-id] | list jobs | | anbaric jobs stats | job counts per state and the queue size | | anbaric jobs watch <job-id> | follow a job's state live | | anbaric jobs set-state <job-id> <state> | move a job to a state and re-queue it | | anbaric jobs update <job-id> <key=value ...> | update job properties and re-queue | | anbaric jobs kill <job-id> | kill a job so it stops progressing | | anbaric jobs kill-old <age> | kill jobs not updated within <age> (e.g. 24h, 7d) |

The app configure/deploy/update commands operate on the app for the current project — they walk up from the working directory to the nearest package.json, so they run from anywhere inside it.

Flags

| Flag | Overrides | Notes | | --- | --- | --- | | -h, --help | — | print the usage screen (also shown for any unknown command or flag) | | --platform-url <url> | the platform picker | exact URL, highest precedence | | --environment <local\|staging\|production> | the platform picker | fixed domains: localhttp://localhost:8787, staginghttps://staging.cloud.anbaric.ai, productionhttps://cloud.anbaric.ai | | --tenant <tenant> | nothing (no prompt asks for a tenant) | overrides the tenant the CLI routes to; normally learned automatically at login | | --yes | app deploy's replace confirmation and app tear-down's prompt | for deploy, equivalent to app update | | --name <name> | app configure's app-name prompt | lowercase letters, numbers, -, _ | | --port <port> | app configure's internal-port prompt | 1–65535 |

Non-interactive usage (agents, CI)

anbaric app configure --name crm --port 3000
anbaric app update --environment staging --tenant internal
anbaric jobs set-state 4f1c... approved --environment staging --tenant internal

Without a TTY the CLI never prompts: prompts either take their flag value, fall back to a sensible default, or fail with a message naming the flag to pass. The one unavoidably interactive step is login itself — it opens a browser for the platform's auth flow (the URL is also printed). After that, every command authenticates non-interactively.

How authentication works

login opens <platform>/authorize-cli/<uuid>; you complete the platform's login in the browser (on Anbaric Cloud that includes picking your organization) and approve the terminal. The platform mints an Ed25519 keypair, stores the public key, and hands the private key to the CLI exactly once, together with the tenant your session belongs to — the CLI reports "Logged into tenant X" and saves both under ~/.anbaric/ (key.json, mode 600, and config.json). Every subsequent request carries a fresh 60-second EdDSA JWT signed with that key, plus an x-anbaric-tenant header that routes it to your tenant's install. logout revokes the key server-side and deletes it locally; keys can also be reviewed and revoked in the browser at <platform>/manage-keys.

A typical session is: anbaric login once, then plain anbaric app deploy --environment staging forever after — the tenant travels with the key, never with the URL.