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

sideband

v0.6.2

Published

Sideband daemon CLI — run `npx sideband` to start a relay-connected daemon in seconds.

Readme

sideband

Developer CLI for Sideband. Run npx sideband to get a Quick Connect URL — any browser can open it and start calling RPC methods over E2EE.

Install

npm i -g sideband   # global install; npx/bunx work without installing

Setup

Get an API key from sideband.cloud, then save it:

sideband init --api-key sbnd_dak_...

This validates the key, saves it to ~/.sideband/config.json, and generates an Ed25519 identity keypair in ~/.sideband/identity.json (if not already present). Both files are written with 0o600 permissions.

Usage

sideband                          # start daemon
sideband --api-key sbnd_dak_...   # override saved/env API key
sideband --json                   # NDJSON output for scripting/CI
sideband init --api-key <key>     # save API key
sideband --version                # print version
sideband --help                   # show help
$ npx sideband

  Sideband daemon running
  Daemon ID: d_8f3kN2p
  Relay:     wss://relay.sideband.cloud

  Quick Connect: https://sideband.cloud/connect#qc=abcd-efgh-ijkl
  Code:          abcd-efgh-ijkl

  Scan to connect:
  ████████████████████████████████
  ██ ▄▄▄▄▄ █▀▄ █▄▀▄▀▄▄▀ █ ▄▄▄▄▄ ██
  ██ █   █ █▀▀▄█▄▄█▄▀ ▀▄█ █   █ ██
  ██ █▄▄▄█ █▀▄▀▄▀▀▄▀▄▄▄▀█ █▄▄▄█ ██
  ██▄▄▄▄▄▄▄█▄█ █▄▀▄▄█ █ █▄▄▄▄▄▄▄██
  ████████████████████████████████

  Waiting for connections...

  + Connected (8f3kN2p1) [12:34:05]
  ← echo: hello [12:34:06]
  → $sideband/info [12:34:07]
  - Disconnected (8f3kN2p1) [12:34:12]

A QR code is rendered below the Quick Connect URL when the terminal is wide enough to fit it without line-wrapping (skipped silently otherwise). In --json mode, QR rendering is disabled — use the quickConnectUrl field from the ready event instead.

API key resolution

Highest priority wins:

  1. --api-key flag
  2. SIDEBAND_API_KEY environment variable
  3. ~/.sideband/config.json

Override the config directory with SIDEBAND_HOME.

Built-in RPC methods

Two methods are always available under the reserved $sideband/ namespace:

| Method | Returns | | ---------------- | ----------------------------------------------- | | $sideband/echo | The input unchanged — validates RPC round-trip | | $sideband/info | Daemon metadata (ID, version, platform, uptime) |

JSON mode

--json emits NDJSON to stdout (one event per line). The first line is always a ready event:

{"event":"ready","daemonId":"d_8f3kN2p","cliVersion":"0.5.0","configDir":"/home/user/.sideband","relayUrl":"wss://relay.sideband.cloud","quickConnectCode":"abcd-efgh-ijkl","quickConnectUrl":"https://sideband.cloud/connect#qc=abcd-efgh-ijkl"}
{"event":"connected","peerId":"peer_abc123"}
{"event":"rpc","peerId":"peer_abc123","method":"$sideband/echo","data":"hello"}
{"event":"disconnected","peerId":"peer_abc123"}
{"event":"quick_connect","code":"mnop-qrst-uvwx","url":"https://sideband.cloud/connect#qc=mnop-qrst-uvwx","expiresAt":"2026-03-05T12:44:05Z"}
{"event":"error","message":"Quick Connect renewal failed: rate limited"}

In human mode, errors go to stderr. In --json mode, errors are emitted as { event: "error" } to stdout (authoritative for automation) and also written to stderr as a human-readable mirror.

Quick Connect renewal

QC codes expire after 5 minutes. The CLI renews automatically 30 seconds before expiry with exponential backoff on failure (1s–30s). Existing connections are unaffected by renewal failures.

License

Apache-2.0