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

@monkeyhub/cli

v0.2.1

Published

Command-line access to MonkeyHub powered by [`@monkeyhub/sdk`](../typescript).

Downloads

293

Readme

@monkeyhub/cli

Command-line access to MonkeyHub powered by @monkeyhub/sdk.

Install

npm install -g @monkeyhub/cli

Or run it with npx:

npx @monkeyhub/cli --help

The binary name is:

monkey

Authentication

The CLI resolves credentials in this order:

  1. --api-key / --base-url
  2. MONKEYHUB_API_KEY / MONKEYHUB_BASE_URL
  3. Saved local profile
  4. SDK default API base URL

Profiles are stored in:

~/.monkeyhub/config.json

Set up a default profile:

monkey auth login
monkey auth show

Or set a profile non-interactively:

monkey auth set default --api-key mk_live_your_api_key --base-url http://localhost:3010
monkey auth show

Common auth commands:

monkey auth list
monkey auth use staging
monkey auth remove staging

Global Flags

These flags work on executable commands:

--profile <name>
--api-key <key>
--base-url <url>
--json

--json prints exact machine-readable output. Without it, the CLI prints human-readable summaries/tables.

Structured Input

Commands that accept complex payloads use --input:

# Inline JSON
monkey queue push email-sends --input '{"payload":{"to":"[email protected]"}}'

# JSON file
monkey db query users --input @query.json

# stdin
cat payload.json | monkey db save users --input -

Collections

# List collections
monkey db list

# Save one item
monkey db save users \
  --config '{"key":{"hashKey":"id"},"indexes":["email"]}' \
  --input '{"id":"user_1","email":"[email protected]"}'

# Get one item
monkey db get users user_1

# Query
monkey db query users --input '{"hashKey":"user_1"}'

# Semantic search
monkey db search docs --input '{"text":"deploy the API","topK":5}'

# Remove
monkey db remove users user_1

Queues

# Push a job
monkey queue push email-sends --input '{"payload":{"to":"[email protected]"}}'

# Get a job
monkey queue get email-sends job_123

# Query jobs
monkey queue query email-sends --input '{"status":"queued","limit":10}'

# Cancel a job
monkey queue cancel email-sends job_123

Buckets

# Upload a file
monkey bucket put uploads ./logo.png --input '{"visibility":"public","contentType":"image/png"}'

# Get a file URL
monkey bucket url uploads logo.png

# Fetch metadata
monkey bucket meta uploads logo.png

# Query files
monkey bucket query uploads --input '{"ext":"png","limit":20}'

# Remove a file
monkey bucket remove uploads logo.png

Boxes

# Create and inspect
monkey box create --input '{"name":"runner","image":"default"}'
monkey box list
monkey box get box_123

# Lifecycle
monkey box pause box_123
monkey box resume box_123
monkey box set-idle-timeout box_123 1800
monkey box destroy box_123

# Execute commands
monkey box exec box_123 "npm test"
monkey box exec box_123 "npm test" --input '{"cwd":"/app","timeout":30000}'

# File transfer
monkey box upload box_123 ./local.txt /app/local.txt
monkey box download box_123 /app/output.txt ./output.txt
monkey box download box_123 /app/output.txt -

# URL
monkey box url box_123

# Mounts
monkey box mount add box_123 --input '{"source":"monkeyhub://uploads","target":"/mnt/uploads"}'
monkey box mount list box_123
monkey box mount remove box_123 /mnt/uploads

Exit Codes

  • 0: success
  • 1: SDK/API/runtime failure
  • 2: CLI usage or input/config error