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

@sundaysf/tunnel

v1.0.0

Published

Tunnel SDK for exposing local servers to the internet

Readme

@sundaysf/tunnel

A tunneling SDK that exposes your local servers to the internet, similar to ngrok.

Installation

npm install -g @sundaysf/tunnel

Getting Started

1. Get an API Key

First, you need to get an API key from the Dolphin Tunnel dashboard:

  1. Go to http://localhost:3000
  2. Sign up or log in
  3. Navigate to Dashboard > API Tokens
  4. Create a new API token
  5. Copy the token (it will only be shown once!)

2. Authenticate

Set up your API key with the stun CLI:

stun auth YOUR_API_KEY

This saves your API key locally for future use.

3. Create a Tunnel

Now you can create tunnels to expose your local servers:

stun http 3000

This will create a tunnel from a public URL to your local server running on port 3000.

CLI Commands

Authentication

# Set your API key
stun auth YOUR_API_KEY

# Check current user
stun whoami

# Log out (clear credentials)
stun logout

Tunnel Management

# Create HTTP tunnel
stun http 3000

# With custom subdomain
stun http 3000 -s myapp

# Forward to specific host
stun http 3000 -h 192.168.1.100

# List all your tunnels
stun list

Configuration

# Show current configuration
stun config --show

# Set custom server URL
stun config --set-server https://api.example.com

# Reset all configuration
stun config --reset

Command Options

  • http <port> - Start an HTTP tunnel to the specified port
  • -s, --subdomain <subdomain> - Request a specific subdomain
  • -h, --host <host> - Local host to forward to (default: localhost)
  • -t, --token <token> - API token for authentication

Programmatic Usage

const { TunnelClient } = require('@sundaysf/tunnel');

const client = new TunnelClient({
  serverUrl: 'https://api.tunnel.dolphintech.io',
  apiToken: 'your-api-token'
});

async function startTunnel() {
  const tunnel = await client.connect({
    port: 3000,
    host: 'localhost',
    subdomain: 'myapp',
    protocol: 'http'
  });

  console.log(`Tunnel URL: ${tunnel.url}`);

  tunnel.on('request', (req) => {
    console.log(`${req.method} ${req.path}`);
  });

  tunnel.on('error', (error) => {
    console.error('Tunnel error:', error);
  });
}

startTunnel();

Features

  • Fast WebSocket-based tunneling
  • Custom subdomain support
  • Real-time request logging
  • Automatic reconnection
  • Request/response forwarding
  • Support for various content types

License

MIT