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

relayy-tunnel

v1.1.0

Published

A simple CLI for creating public URLs for local servers

Readme

relayy-tunnel

Create a public URL for your local server in seconds.

relayy-tunnel is a simple command line tool that opens a temporary public tunnel to your localhost app. It is useful for demos, webhook testing, and sharing local work without deployment.

Features

  • One-command tunnel creation
  • Human-friendly, shareable public URL
  • Temporary tunnels with automatic expiry
  • Works with any local HTTP app running on localhost
  • Lightweight CLI experience with clear terminal output

Installation

Global install

npm install -g relayy-tunnel

Run without global install

npx relayy 3000

Quick Start

  1. Start your local app on a port, for example 3000.
  2. Run the CLI:
relayy 3000
  1. Copy the public URL shown in terminal.
  2. Open the URL in a browser or use it in webhook providers.

Usage

relayy <port>

Example:

relayy 5173

When connected successfully, you will see:

  • A confirmation that the tunnel is live
  • Your generated public URL
  • Tunnel expiry time

Real Example

If your local API runs at:

  • http://localhost:3000/api/health

and the CLI gives you this URL:

  • https://relayy.up.railway.app/calm-lion-a1b2

Then this public URL will forward to your local endpoint:

  • https://relayy.up.railway.app/calm-lion-a1b2/api/health

How It Works

  1. The CLI opens a WebSocket connection to the relay server.
  2. It sends a register message with your local port.
  3. The server creates a tunnel ID and returns a public URL.
  4. Incoming public requests are forwarded to your local app.
  5. The CLI sends the local response back through the tunnel.

Requirements

  • Node.js 18+
  • A running local HTTP server on localhost
  • Internet access (CLI connects to hosted relay server)

Behavior and Limitations (Current Version)

  • Tunnel duration is temporary and expires automatically.
  • If your local app is down, requests return a generic local server error.
  • Response headers are not fully mirrored back yet.
  • This version is optimized for simple HTTP forwarding workflows.

Troubleshooting

Command not found: relayy

Use one of these:

  • Install globally: npm install -g relayy-tunnel
  • Run with npx: npx relayy-tunnel 3000

Usage shown instead of starting

The CLI needs a port argument.

relayy 3000

Tunnel created but requests fail

Check:

  • Your local app is running
  • Correct port is passed to the CLI
  • Local endpoint path exists

Tunnel expired message appears

Tunnels are temporary by design. Start a new tunnel by running the command again.

Security Notice

Do not expose sensitive local services or admin panels without authentication. Anyone with the public URL can access forwarded routes while the tunnel is active.

Contributing

Issues and improvements are welcome. If you find a bug, include:

  • Your command used
  • Node.js version
  • Expected behavior
  • Actual behavior

License

MIT