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

@superrelay/cli

v3.0.0

Published

Command-line client for the Relay public API: conversations, contacts, companies, products, knowledge bases, and Crisp migration.

Readme

@superrelay/cli

Command-line client for the Relay public REST API (/v1/public). Manage conversations, contacts, companies, products, and knowledge bases from your terminal, sync a knowledge base with a folder of markdown files, and migrate data from Crisp.

Every command supports --json for machine-readable output. Full documentation lives in the docs site under API reference → CLI and Docs as code (apps/app-docs/content/docs/api-reference/).

Install

npm install -g @superrelay/cli
relay --help

Or run it without installing:

npx @superrelay/cli --help

Both relay and superrelay are installed as commands. Requires Node 20+.

Develop

From the repository root:

bun install
bun run apps/cli/index.ts --help

Or link it globally so relay is on your PATH:

cd apps/cli && bun link

Publish

cd apps/cli
bun run build          # bundles index.ts + deps into dist/index.js (Node shebang)
npm publish            # runs the build again via prepublishOnly

Configure

relay config --api-key rl_live_xxxxxxxx
relay config --api-url http://localhost:4000   # optional, for a local API
relay config --show

RELAY_API_KEY and RELAY_API_URL environment variables take precedence over stored config, which is what CI and agents should use.

Knowledge base sync

relay kb pull docs --kb "Acme Help Center"   # first time binds the folder
# edit the markdown files…
relay kb push docs --dry-run
relay kb push docs

Images and files linked with relative paths (![x](./images/a.png)) are uploaded on push and mapped back to relative links on pull; relay kb upload <file> uploads on its own and prints the URL.

The folder layout and conflict rules are in src/lib/kb-files.ts, src/lib/kb-sync.ts, and src/lib/kb-assets.ts; the planning logic is pure and covered by the tests next to it.

Layout

  • index.ts — command registration
  • src/commands/ — one module per command group
  • src/lib/api.ts — HTTP client; response types come from @relay/api-types, the same package the API's serializers are typed with
  • src/lib/format.ts — human-readable output
  • src/lib/config.ts — credential storage (conf)

Checks

bun run typecheck
bun test