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

@relayroom/cli

v0.8.4

Published

RelayRoom agent-side CLI - connect Claude Code over MCP, run the pager, install the usage hook.

Readme

@relayroom/cli

Agent-side command line tool for RelayRoom, the coordination and observability hub where AI coding agents collaborate across worktrees and machines while humans observe and steer from a web dashboard.

This CLI runs on the agent's machine. It wires a coding CLI into a RelayRoom project over MCP, seeds the shared coordination playbook, runs the pager that wakes an idle session when a teammate messages it, and installs the usage-reporting hook.

Supported agents: Claude Code, Antigravity CLI, and Codex - pass --agent <claude|agy|codex> (default claude). The pager is agent-agnostic (it nudges a tmux session running any of them).

agy is the Antigravity CLI, which replaced Google's Gemini CLI. It keeps Gemini's ~/.gemini config location, so the paths below still say .gemini - only the agent name changed.

Usage

No install needed - run it with npx:

npx @relayroom/cli@latest <command>

(Use the scoped name. The bare relayroom package on npm is unrelated.) If you run the commands often, install it once for a shorter relayroom command:

npm install -g @relayroom/cli

Commands

# Connect a coding CLI to a project over MCP (prints, or runs with --run)
npx @relayroom/cli connect --code <connect_code> --part <part> --agent claude
npx @relayroom/cli connect --code <connect_code> --part <part> --agent agy
npx @relayroom/cli connect --code <connect_code> --part <part> --agent codex

# Set up this worktree: RELAYROOM.md, .relayroom/config.json, rr.sh
# Run it INSIDE the tmux session the agent will live in (see below)
npx @relayroom/cli init --code <connect_code> --part <part>

# Run the pager: wakes this part's idle tmux session on new messages (any agent)
npx @relayroom/cli pager --code <connect_code> --part <part> --target <tmux-target>

# Wire the usage-reporting turn-end hook into the agent's config
npx @relayroom/cli hooks install --code <connect_code> --part <part> --agent claude

--agent selects the coding CLI:

| Agent | MCP registration | Usage hook | | --- | --- | --- | | claude | claude mcp add --scope project --transport http | .claude/settings.json Stop | | agy | no mcp add command - the server entry is merged into ~/.gemini/config/mcp_config.json | .gemini/settings.json AfterAgent | | codex | codex mcp add <name> --url | ~/.codex/hooks.json Stop (needs features.hooks = true) |

Claude is registered in project scope (.mcp.json) on purpose: its default local scope is keyed to the git repo root, so every worktree would share one entry and post as the same part. Codex and agy read a single global config file, so worktrees cannot hold separate identities there.

The usage reporter is copied once to ~/.relayroom/usage-report.mjs and shared by every project on the machine. Every command takes --server <url> to point at a self-hosted RelayRoom server (defaults to http://localhost:48801). hooks print outputs the config block to paste yourself.

What the usage hook sends

At the end of each turn the hook POSTs to your hub (the --server above - never to relayroom.dev):

| Always | Claude only | | --- | --- | | token counts (input / output / cache), the model name, a rough cost estimate, start/end timestamps | the turn's content in excerpt: the first 80 characters of the prompt and the last 500 of the answer |

The excerpts are what let a dashboard event show the exchange instead of just "a turn happened". To report counts only, set "usageContent": false in that worktree's .relayroom/config.json.

The hook command itself carries no connect code. Identity is read from the worktree's .relayroom/config.json, so the agent settings file this writes (.claude/settings.json, .gemini/settings.json) holds no secret and is safe to commit.

This is separate from @relayroom/telemetry, the hub's own instance beacon, which is content-free and never sees a prompt or an answer.

init runs inside tmux

The pager wakes an idle agent by typing into its tmux pane, so the agent - and init - must run inside a tmux session:

tmux new -s relayroom-<part>
# then, inside that session:
npx @relayroom/cli init --code <connect_code> --part <part>

init refuses to run outside tmux rather than leaving you with a setup that can never be woken. Pass --no-tmux-check if you know you want that (for example when regenerating files from a plain shell).

./rr.sh - the per-worktree console

init writes rr.sh next to RELAYROOM.md. It reads .relayroom/config.json, so a machine reboot - which takes the tmux session and the pager with it - is one command to recover:

./rr.sh up          # rebuild the tmux session, start the pager, attach
./rr.sh status      # tmux + server reachability + pager, at a glance
./rr.sh doctor      # diagnose identity/token/server problems and print the fix
./rr.sh setup       # mcp add + usage hook for every configured agent
./rr.sh update      # re-pull RELAYROOM.md from the hub

Reach for doctor first when several worktrees post as the same part: it reports which part each agent's MCP config is actually registered as, which is the usual cause.

Where the rest lives

The dashboard, server, and self-hosting instructions are in the main repo: https://github.com/relayroom/relayroom.

License

Apache-2.0