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

webtuna

v1.0.3

Published

Peer-to-peer port forwarding over WebRTC.

Downloads

9

Readme

WebTuna

Connecting machines.

Creates tunnels between computers over the web using WebRTC under the hood.

Example

To connect to port 3000 on a server behind NAT, run on the server:

npx webtuna 3000

You'll see:

To access your port 3000, run on the client machine:
  webtuna 'SomEcOnNecTIonKeY' <SOME_PORT_HERE>

Then, on your local machine, run:

npx webtuna 'SomEcOnNecTIonKeY' 3000

What It Is

A WebRTC-based port-forwarding tool that lets you share local ports over the internet using peer-to-peer connections. WebTuna enables secure, direct connections between machines without exposing your ports to the public internet or relying on a central relay.

Features

  • Peer-to-Peer: Direct connections between machines using WebRTC.
  • No Central Server: No relay server or VPN required.
  • Secure: End-to-end encrypted connections.
  • Simple: Easy command-line interface.
  • Cross-Platform: Works on any platform that supports Node.js.

Usage

WebTuna works in two modes: server (share a port) and client (connect to a shared port).

Basic Syntax

npx webtuna share <source> [destination_key]
  • If [destination_key] is not provided, a random one is generated.

Use Cases

  1. Remote Development: Share your local development server with a colleague.
  2. Database Access: Securely access a database running on another machine.
  3. Testing: Test webhooks or APIs that must be accessible from the internet.
  4. Debugging: Connect to your server's Node.js debug port in the cloud.

How It Works

  1. Server Side: WebTuna creates a WebRTC peer and listens for incoming connections. When a connection is established, it forwards traffic between the WebRTC connection and your local port.

  2. Client Side: WebTuna connects to the remote peer and creates a local TCP server that forwards traffic to the remote service.

  3. Data Transfer: All data is transmitted through the WebRTC connection, which provides end-to-end encryption.

Troubleshooting

Connection Issues

  • Ensure both machines have internet access.
  • Verify the connection key is correct.
  • Ensure the local port is not already in use.
  • Be aware that some networks may block WebRTC traffic.

Performance

  • WebRTC connections may have higher latency than direct connections.
  • Bandwidth is limited by the slower of the two connections.
  • Large file transfers may be slower than traditional methods.

Security Considerations

  • WebRTC connections are encrypted by default.
  • Keep connection keys private to prevent unauthorized access.
  • Only share ports with parties you trust.

License

ISC License

Contributing

Feel free to submit issues and enhancement requests!