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

highspot-cli

v0.2.1

Published

Agent-first CLI for the Highspot API

Readme

highspot-cli

highspot-cli is an unofficial CLI client for the Highspot REST API.

It is designed for both humans and agents:

  • default output: JSON on stdout
  • script-stable output: --plain
  • diagnostics/errors: stderr

Install

npm install -g highspot-cli

Run without global install:

npx highspot-cli --help
bunx highspot-cli --help
deno run -A npm:highspot-cli --help

Auth

Set credentials with environment variables:

export HIGHSPOT_API_KEY_ID=hs_key_id_xxx
export HIGHSPOT_API_KEY_SECRET=hs_key_secret_xxx

Or provide a precomputed Basic auth header directly:

export HIGHSPOT_BASIC_AUTH="Basic <base64(id:secret)>"

Optional:

export HIGHSPOT_API_ENDPOINT=https://api.highspot.com/v1.0
export [email protected]

HIGHSPOT_HS_USER (or --hs-user) is optional impersonation context. It is not implied by the API key:

  • API key (HIGHSPOT_API_KEY_ID + HIGHSPOT_API_KEY_SECRET) authenticates the caller.
  • hs-user sets an explicit user context for requests where impersonation is needed.
  • CLI flag precedence still applies, so --hs-user overrides HIGHSPOT_HS_USER.

Auth precedence:

  • HIGHSPOT_BASIC_AUTH is used directly when set.
  • Otherwise, HIGHSPOT_API_KEY_ID + HIGHSPOT_API_KEY_SECRET are used to compute Authorization: Basic ....

Config Files

Config precedence (highest to lowest):

  1. CLI flags
  2. Environment variables
  3. Project config: .highspot-cli.json
  4. User config: ~/.config/highspot-cli/config.json
  5. System config: /etc/highspot-cli/config.json

Example .highspot-cli.json:

{
  "endpoint": "https://api.highspot.com/v1.0",
  "hsUser": "[email protected]",
  "maxRetries": 3,
  "retryDelayMs": 1200,
  "timeoutMs": 30000,
  "basicAuth": "Basic <base64(id:secret)>",
  "apiKeyId": "hs_key_id_xxx",
  "apiKeySecret": "hs_key_secret_xxx"
}

Commands

highspot search <query>
highspot get <item-id>
highspot me

Global flags:

  • -h, --help
  • --version
  • --json (default output mode)
  • --plain (line-based stable output)
  • --dry-run (print request and exit)
  • --hs-user <value>
  • --endpoint <url>
  • --timeout-ms <n>
  • --max-retries <n>
  • --retry-delay-ms <n>
  • --quiet
  • --verbose
  • --no-input
  • --no-color

get command flags:

  • --format <value>
  • --start <value>
  • --meta-only (skip content download)
  • -o, --output <path> (explicit file path)
  • --output-dir <path> (directory for auto-saved binary files)
  • -f, --force (overwrite existing output file)

Exit codes:

  • 0 success
  • 1 API/runtime failure
  • 2 invalid usage or missing configuration

Examples

highspot search "GoGuardian Teacher" --limit 10
highspot search "Beacon" --sort-by date_added --plain
highspot get it_abc123 --meta-only
highspot get it_abc123 --format text/plain --plain
highspot get it_abc123
highspot get it_abc123 --output ./custom-filename.pdf
highspot get it_abc123 --output-dir ./downloads
highspot me --json
highspot search "Fleet" --dry-run

Behavior notes:

  • Prompts are not used; --no-input is accepted for automation consistency.
  • Primary data goes to stdout, errors go to stderr.
  • get always fetches /items/{id} metadata first, then fetches /items/{id}/content unless --meta-only is set.
  • Binary content is automatically saved to disk using Highspot content_name (canonical filename) when available.
  • Use --output to force a specific filename/path, or --output-dir to control where auto-saved binaries are written.

Development

npm install
npm run build
npm run check
npm run format
node dist/bin/highspot.js --help

Publish (npm)

For advait/highspot-cli:

npm version patch
npm publish --access public

Then tag/push your release in GitHub.