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

@hyperwire/client

v1.0.2

Published

A secure development tunnel client that allows you to expose your local development server to the internet through a secure WebSocket connection.

Readme

Wire Client

A secure development tunnel client that allows you to expose your local development server to the internet through a secure WebSocket connection.

Features

  • 🔐 Secure Authentication - Uses PocketBase for user authentication
  • 🌐 Public URLs - Get public HTTPS URLs for your local development servers
  • Real-time - WebSocket-based tunneling for low latency
  • 🎯 Custom Subdomains - Optional custom subdomain support
  • 📦 Easy CLI - Simple command-line interface

Installation

From Source

# Clone the repository
git clone <repository-url>
cd wire/client

# Install dependencies
npm install

# Build the project
npm run build

# Install globally (optional)
npm link

Development

# Run in development mode
npm run dev

# Build for production
npm run build

Usage

1. Login

First, authenticate with your PocketBase instance:

wire login

You'll be prompted for:

  • PocketBase URL (e.g., https://your-pocketbase-instance.com)
  • Email address
  • Password

2. Start Your Application

Important: Start your local application with the --host flag to ensure it accepts connections from all interfaces:

# For most development servers
npm start -- --host
# or
yarn start --host

3. Create a Tunnel

Create a tunnel to expose your local server:

# Basic usage - expose port 3000
wire tunnel 3000

# With custom subdomain
wire tunnel 3000 --sub myapp

# With custom server URL
wire tunnel 3000 --server https://your-wire-server.com

4. Access Your App

Once the tunnel is established, you'll get a public URL like:

  • https://random-subdomain.wishapp.io (auto-generated)
  • https://myapp.wishapp.io (with custom subdomain)

Configuration

Configuration is stored in ~/.wire/config.json and includes:

{
  "pocketbaseUrl": "https://your-pocketbase-instance.com",
  "serverUrl": "http://wire.wishapp.io",
  "token": "your-auth-token",
  "email": "[email protected]"
}

Commands

wire login

Authenticate with PocketBase and save credentials locally.

wire tunnel <port>

Create a tunnel to the specified local port.

Options:

  • --sub <subdomain> - Use a custom subdomain
  • --server <url> - Specify a custom Wire server URL (default: http://wire.wishapp.io)

How It Works

  1. Authentication: The client authenticates with PocketBase to get a secure token
  2. WebSocket Connection: Establishes a WebSocket connection to the Wire server
  3. Request Forwarding: Incoming HTTP requests are forwarded through the WebSocket to your local server
  4. Response Relay: Responses from your local server are sent back through the WebSocket

Architecture

Local App (port 3000) ←→ Wire Client ←→ WebSocket ←→ Wire Server ←→ Internet

The client acts as a bridge between your local development server and the public internet, forwarding requests and responses in real-time.

Development

Project Structure

client/
├── src/
│   ├── index.ts      # Core tunnel functionality
│   ├── cli.ts        # Command-line interface
│   ├── auth.ts       # Authentication logic
│   └── config.ts     # Configuration management
├── bin/
│   └── wire.ts       # CLI entry point
└── dist/             # Compiled JavaScript

Building

# Development build with watch mode
npm run dev

# Production build
npm run build

# Run built version
npm start

Dependencies

  • commander - CLI framework
  • ws - WebSocket client
  • node-fetch - HTTP requests
  • chalk - Terminal colors
  • readline-sync - Interactive prompts