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

cmux-relay-agent

v0.2.10

Published

Stream cmux terminal sessions to your phone — real-time monitoring for AI coding agents

Readme

cmux-relay-agent

Stream your cmux terminal sessions to any device in real-time. Monitor AI coding agents (Claude Code, Codex CLI, Gemini CLI) from your phone.

Quick Start

npx cmux-relay-agent

That's it. The agent will:

  1. Open your browser to a pairing page
  2. Sign in with GitHub (first time only)
  3. Redirect to your live terminal dashboard

On subsequent runs, the saved token is reused — just run and go.

Access your terminal from any device at https://cmux.gateway.myaddr.io

Requirements

CLI Options

npx cmux-relay-agent [options]

| Flag | Env Variable | Default | Description | |------|-------------|---------|-------------| | --relay-url <url> | CMUX_RELAY_URL | wss://relay.gateway.myaddr.io/ws/agent | Relay server URL | | --token <token> | CMUX_RELAY_TOKEN | — | API token (auto-saved after pairing) | | --local | — | — | Run in local mode (direct WebSocket, no relay) | | --port <port> | CMUX_RELAY_PORT | 8080 | Local mode server port | | --host <host> | CMUX_RELAY_HOST | 0.0.0.0 | Local mode bind address | | --socket <path> | CMUX_SOCKET_PATH | ~/Library/Application Support/cmux/cmux.sock | cmux Unix socket path | | --tls-cert <path> | CMUX_RELAY_TLS_CERT | — | TLS certificate file | | --tls-key <path> | CMUX_RELAY_TLS_KEY | — | TLS private key file |

Local Mode

Run without any cloud relay — works within your LAN:

npx cmux-relay-agent --local --port 8080

Then open ws://<your-mac-ip>:8080 in a browser on the same network.

Self-Hosted Relay

Point the agent to your own relay server:

npx cmux-relay-agent --relay-url wss://your-relay.example.com/ws/agent

See the full repository for relay server setup instructions.

Features

  • Real-time streaming — Terminal output via WebSocket + PTY capture
  • P2P data transfer — WebRTC DataChannel connects directly to the browser. Relay server only handles signaling.
  • Automatic fallback — Seamless fallback to relay-forwarded WebSocket if P2P fails (NAT/firewall)
  • Bidirectional input — Send commands from any device
  • End-to-end encryption — Terminal data encrypted with AES-256-GCM via ECDH key exchange. The relay server cannot read your terminal content.
  • Multi-workspace — Switch between all cmux workspaces
  • Split pane layout — Pixel-perfect cmux pane positioning
  • Mobile optimized — Touch-friendly terminal with tab navigation
  • Notifications — In-app toasts for agent events
  • Auto-reconnect — Exponential backoff with session recovery

Security

Terminal input and output are encrypted end-to-end between the agent and your browser:

  • AES-256-GCM — All terminal data encrypted before leaving your Mac
  • DTLS — WebRTC DataChannel encrypted with DTLS for P2P connections
  • ECDH P-256 — Session keys established via key exchange; never sent in plaintext
  • Zero knowledge relay — The relay server only sees encrypted blobs (or nothing at all in P2P mode), never your terminal content
  • No stored keys on server — Encryption keys exist only on your Mac and in your browser session

The relay cannot decrypt your data — not now, not ever. Full source code is open for audit.

License

MIT