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

@getagents/cli

v0.1.0-rc.1

Published

GetAgents marketplace CLI — install, manage, and publish Claude Code plugins, skills, agents, and MCP servers.

Downloads

169

Readme

@getagents/cli

Command-line client for the GetAgents marketplace.

  • Buyers install purchased Claude Code plugins, skills, agents, and MCP servers.
  • Sellers validate and publish products.

Status: in active development against the walking-skeleton API. Not yet on npm. See docs/cli/design.md for the binding design and tickets #019#025 for the implementation slices.

Local install

cd cli-command
npm install
npm run build
npm link            # makes the `getagents` binary available globally

Iterate without rebuilding

tsx is in devDependencies. Run the TypeScript source directly, no dist/ build between edits:

cd cli-command
npx tsx src/bin/getagents.ts --help

Same code path the linked binary uses, useful while modifying CLI source.

Pointing the CLI at local dev

For a round trip against your docker-compose API instead of production, source the activation script:

source cli-command/scripts/dev-env.sh

It sets:

  • GETAGENTS_API_URL=http://localhost — your local Laravel API.
  • GETAGENTS_CONFIG_DIR=$HOME/.config/getagents-local — a separate vault so the dev session doesn't touch your prod auth or installed products.

Inside the activated session:

  • getagents-dev-status — show current env + auth state.
  • getagents-dev-deactivate — restore the env you had before; your prod credentials become active again.

Override the defaults by exporting GETAGENTS_DEV_API_URL or GETAGENTS_DEV_CONFIG_DIR before sourcing. For a deeper walkthrough including seeded test fixtures, see the local development runbook.

Commands

| Command | Purpose | |---|---| | getagents auth login | Device-code sign-in. Prompts a verification URL + code; polls until confirmed. | | getagents auth logout | Revoke this machine's token and clear local credentials. | | getagents auth status | Show signed-in account, machine name, days until expiry. | | getagents sync | Reconcile the local vault against your entitlements. Idempotent. | | getagents install <slug> | Pull a purchased product into the vault and (for plugins) tell Claude Code about it. | | getagents uninstall <slug> | Remove a product from the vault. | | getagents list [--json] | Show installed products. | | getagents update [<slug>] | Update one or all installed products. | | getagents validate [--path <dir>] [--strict] | Schema + structure check against a product directory. | | getagents publish [--path <dir>] [--dry-run] | Validate, bundle, upload to GetAgents. | | getagents init [--non-interactive --config <file>] | Scaffold a new product directory. |

Global flags (root command, before subcommands):

  • --json — line-delimited JSON envelopes to stdout. No ANSI, no spinners.
  • --no-color — strip ANSI. NO_COLOR env var is also honoured.
  • --verbose — log API requests/responses to stderr (Authorization redacted).
  • --vault-dir <path> — override the config dir (default: $XDG_CONFIG_HOME/getagents). For tests and air-gapped users.

Vault layout

~/.config/getagents/                       chmod 0700
  local.vault/                             chmod 0700, registered with Claude Code
    .claude-plugin/marketplace.json
    plugins/<slug>/   skills/<slug>/   agents/<slug>/   mcp/<slug>/
  manifest.lock                            authoritative install state
  entitlements.json                        last server snapshot
  auth                                     bearer token, chmod 0600
  install-id                               per-machine UUID, chmod 0600

Tests

npm test                  # Vitest unit suite, no external deps
npm run test:integration  # Needs GETAGENTS_API_URL + Laravel app at APP_ENV=testing
npm run typecheck         # tsc strict
npm run lint              # eslint + prettier

Integration tests require:

  1. A Laravel app running with APP_ENV=testing (so the test-only POST /test/confirm-device route is registered).
  2. The CliFixturesSeeder seeded so [email protected] exists.
  3. Either GETAGENTS_API_URL set to its base URL, or RUN_INTEGRATION=1.

CI bootstraps both — see .github/workflows/e2e.yml.

Layout

src/
  bin/getagents.ts            entry, parses argv
  cli.ts                      commander + global flags + error handling
  commands/                   one file per user-facing subcommand
  api/                        fetch wrapper + response types
  config/                     XDG paths, auth file, install id
  vault/                      atomic writes, lockfile, marketplace.json,
                              tar extract, watermarking, Claude Code shim
  sync/                       sync engine
  manifest/                   schema + offline validator + structure
  bundle/                     tar.gz builder
  output/                     human + JSON output
  util/                       errors, claude-version detection
tests/
  unit/                       fast, no-network
  integration/                hits a real Laravel app
  e2e/shims/claude            bash shim used by CI E2E to stand in for Claude Code
scripts/
  copy-assets.js              postbuild — copies schema.json into dist/
  sync-schema.js              fetches the live API schema and overwrites
                              src/manifest/schema.json (CI freshness gate)
  dev-env.sh                  source to flip the CLI to localhost API +
                              a separate vault dir; defines deactivate fn

Conventions

CLI conventions live in the project CLAUDE.md. Highlights:

  • Every command supports --json mode via Logger.jsonEvent().
  • Tests that touch the config dir always call setConfigDirOverride() first.
  • API calls go through ApiClient so install_id and Claude-version headers are always set.