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

@astralbeam/cli

v0.16.0

Published

Command-line interface for AstralBeam organization admins and their coding agents

Readme

@astralbeam/cli

Manage an AstralBeam organization from the terminal: its Tenants and TenantUsers, short-lived chat and organization tokens, and test chats with its agents. Every command prints JSON with --json, so coding agents such as Claude Code can drive it too.

npx @astralbeam/cli --help

Install

Run it with npm on Node 22.12 or later, with no install step:

npx @astralbeam/cli tenants list

Or install it globally as astralbeam:

npm install --global @astralbeam/cli

Each GitHub release also attaches standalone binaries that need no Node, named astralbeam-<platform> for linux-x86_64, linux-arm64, macos-x86_64, macos-arm64, and windows-x86_64.exe. The releases/latest/download URL always serves the newest release, so rerunning the download upgrades the CLI.

curl -fsSLo astralbeam https://github.com/AstralBeamAI/astralbeam/releases/latest/download/astralbeam-macos-arm64
chmod +x astralbeam
mv astralbeam /usr/local/bin/astralbeam

NOTE: The binaries are not signed. On macOS, a binary downloaded through a browser needs xattr -d com.apple.quarantine <file> before its first run.

Sign in

Create an API key in the dashboard under API keys, then log in from the directory where you work on that organization. The prompt hides the pasted key, and piped stdin works too:

cd ~/work/acme
astralbeam auth login

login reads the organization's name and slug from the API, which also proves the key works, then binds the key to that directory and everything below it. Bindings live in ~/.config/astralbeam/config.json (%APPDATA%\astralbeam on Windows) with owner-only permissions, never in the directory itself. To manage another organization, log in again from its own directory. For a self-hosted deployment, pass its /api base:

cd ~/work/globex
astralbeam auth login --api-url https://beam.example.com/api

Every command then uses the nearest bound directory at or above where it runs, and prints that organization to stderr first, so stdout stays parseable:

▸ Acme (acme) · org 01990a5d-… · bound at ~/work/acme

A directory with no bound ancestor fails with exit code 1 instead of guessing an organization. For CI and agents, set ASTRALBEAM_API_KEY, which overrides any binding, and ASTRALBEAM_API_URL when self-hosting. API URLs must use https://, except for localhost.

Check the binding commands will use, or list them all:

astralbeam auth status
astralbeam auth list

Commands

| Command | Does | | --- | --- | | auth login, auth logout, auth status, auth list | Bind, unbind, verify, and list directory logins | | tenants list, get, create, update | Manage Tenants | | tenant-users list, get, create, update | Manage a Tenant's users | | token chat | Mint a chat JWT for a Tenant's user, as your token endpoint would | | token organization | Mint an organization-management JWT for a member | | chat | Chat with an agent as a Tenant's user | | skill, skill install | Print or install the bundled Agent Skill |

Run astralbeam <command> --help for every flag. Lists take --search, --external-id, --page-size, --page-after, --page-before, and --all.

astralbeam tenants create --external-id customer-42 --name "Acme Logistics" --metadata '{"plan":"pro"}'
astralbeam tenants list --external-id customer-42 --json
astralbeam tenant-users create <tenant-id> --external-id user-7 --name "Alex Morgan"
astralbeam chat --tenant customer-42 --user user-7 "What can you do?"

Output and exit codes

Human-readable tables and records go to stdout. With --json, stdout carries the API's JSON and stderr holds one JSON object: {"context": {...}} naming the organization on success, or {"error": {...}, "context": {...}} with the API's problem details on failure. Commands exit with 0 on success, 1 when the API or runtime fails, and 2 for invalid usage.

When a command fails unexpectedly, rerun it with --debug to log each HTTP request's method, URL, status, and duration, plus the failure's stack trace, to stderr. It never logs headers, so keys and tokens stay out of the output, but it adds lines that break the single JSON object --json writes to stderr.

Coding agents

The CLI ships an Agent Skill that teaches an agent its commands, JSON output, and safety rules. Let's install it for Claude Code in the current project:

astralbeam skill install

Pass --dir ~/.claude/skills to install it for every project, or --dir .agents/skills for agents that read that directory. Then give the agent credentials by logging in from the project directory or through ASTRALBEAM_API_KEY, never in the prompt.

The full guide is at astralbeam.ai/docs/cli/getting-started.