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

@privateclaw/privateclaw-relay

v0.1.7

Published

Blind WebSocket relay for PrivateClaw encrypted sessions with local CLI startup and optional Tailscale Funnel or Cloudflare Tunnel exposure

Readme

@privateclaw/privateclaw-relay

@privateclaw/privateclaw-relay is the standalone relay package for PrivateClaw.

It starts the local blind WebSocket relay used by the PrivateClaw provider and app, and it can optionally expose that local relay to the public internet with one command through:

  • Tailscale Funnel
  • Cloudflare quick tunnels

Install

npm install -g @privateclaw/privateclaw-relay

Or run it directly without a global install:

npx @privateclaw/privateclaw-relay

Usage

Start a local relay with the default 127.0.0.1:8787 binding:

privateclaw-relay

If the default local port 8787 is already occupied, the CLI automatically retries the next free port and prints the final listening URL.

Start the relay and serve the bundled PrivateClaw website from the same process:

privateclaw-relay --web

With --web, the relay serves the marketing homepage at /, the web chat at /chat/, and keeps the relay WebSocket endpoints on /ws/* unchanged.

Override the bind address or Redis URL:

privateclaw-relay --host 0.0.0.0 --port 8787
privateclaw-relay --redis-url redis://127.0.0.1:6379

Expose the local relay to the internet through Tailscale Funnel:

privateclaw-relay --public tailscale

Expose the local relay through a temporary Cloudflare quick tunnel:

privateclaw-relay --public cloudflare

You can combine --web with public exposure so the public tunnel opens both the website and the relay on one origin:

privateclaw-relay --web --public cloudflare
privateclaw-relay --web --public tailscale

If the required tailscale or cloudflared CLI is missing, privateclaw-relay prints platform-aware install commands. In an interactive terminal it can also offer to run the supported install/setup commands for you before retrying the tunnel startup. After the relay gets a public URL, it also prints the exact openclaw commands needed to point PrivateClaw at that relay. If openclaw is installed locally, the CLI can offer to run the local provider install-or-update/enable/config flow, restart the OpenClaw gateway, verify that privateclaw is now registered, and then optionally start a new group pairing. When --web is enabled, it can open the bundled web chat with the fresh invite prefilled.

Tunnel notes

Tailscale Funnel

  • Requires the tailscale CLI to be installed and authenticated locally.
  • Requires Funnel to be enabled for your tailnet.
  • The CLI uses tailscale funnel --bg <port> and prints the detected public URL when available.
  • If this CLI created the Funnel endpoint itself, it will try to disable it again on shutdown with tailscale funnel off.
  • If tailscale is missing, the CLI can offer Homebrew / winget / Linux installer guidance and, on supported setups, run the install flow interactively before retrying Funnel startup.

Cloudflare Tunnel

  • Requires the cloudflared CLI to be installed locally.
  • Uses a temporary quick tunnel with cloudflared tunnel --url http://127.0.0.1:<port>.
  • Quick tunnels use a random trycloudflare.com URL and are intended for temporary sharing and testing.
  • If cloudflared is missing, the CLI prints platform-aware install guidance and can offer an interactive install on supported setups such as Homebrew or winget.

Environment variables

The relay still reads its runtime config from the process environment:

  • PRIVATECLAW_RELAY_HOST
  • PRIVATECLAW_RELAY_PORT
  • PRIVATECLAW_SESSION_TTL_MS
  • PRIVATECLAW_FRAME_CACHE_SIZE
  • PRIVATECLAW_RELAY_INSTANCE_ID
  • PRIVATECLAW_REDIS_URL
  • REDIS_URL
  • PRIVATECLAW_FCM_SERVICE_ACCOUNT_JSON
  • PRIVATECLAW_FCM_PROJECT_ID
  • PRIVATECLAW_FCM_CLIENT_EMAIL
  • PRIVATECLAW_FCM_PRIVATE_KEY

See the repository root README.md for the larger deployment story, Docker images, Railway configs, and Redis-backed HA notes.