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

@f0rsak3n1598/zara-tunnel

v1.0.3

Published

High-performance, secure multiprotocol tunneling for the Bun era. Built for developers who need speed and simplicity.

Readme

ZARA: Multi-Protocol Tunneling

ZARA is a fast and secure multi-protocol tunneling system built for Bun. It allows you to expose local HTTP and TCP services to the internet through a secure binary relay.


📦 Features

  • Interactive TUI: A clean terminal dashboard with keyboard navigation and request replay.
  • CORS Support: Simple CORS bypass (--cors) for local frontend development.
  • Multi-Protocol Support: Tunnel HTTP services, static folders, or generic TCP (DBs, SSH).
  • Security:
    • Self-Signed TLS: Automatic certificate provisioning for secure local connections.
    • Identity Verification (OTP): Protect your links with a professional OTP portal.
    • Relay Authentication: Secure your relay with shared authentication tokens.
  • Load Balancing: Connect multiple agents to one ID for automatic round-robin distribution.
  • Protocol Compression: Automatic Gzip compression for efficient data transfer.

⚡ Quick Install

ZARA is optimized for Bun. Install it globally:

bun install -g @f0rsak3n1598/zara-tunnel

🚀 Usage

1. Expose a Local Web Service

# Expose port 3000 with a custom name and OTP protection
zara expose 3000 --name my-app --otp

2. Expose a TCP Service (DB, SSH, etc.)

zara tcp 5432 --name local-db

3. Share a Static Directory

zara share ./dist --name my-site

4. Start your own Relay (Self-Hosted)

# Start a relay with a secret token and custom RPS limit
zara relay --token my-secret-token --max-rps 300

🛠️ Advanced Options

  • --name <subdomain>: Request a specific subdomain (e.g., my-sub.zara.dev).
  • --token <secret>: Authenticate with a secured relay server.
  • --otp: Enable one-time password protection for web tunnels.
  • --cors: Enable automatic CORS bypass headers.
  • --relay <url>: Connect to a custom ZARA relay (default: wss://localhost:6969/_ws).
  • --debugPort <number>: Custom port for the debugger UI (default: 4040).

Relay Server Options

  • --port <number>: Port to listen on (default: 6969).
  • --token <secret>: Shared secret for agent authentication.
  • --max-rps <number>: Rate limit per agent connection (default: 150).
  • --max-otp <number>: Max failed OTP attempts before lockout (default: 5).
  • --brand <name>: Custom brand name for the UI.
  • --theme <dark|light>: UI theme color scheme.
  • --key <path>, --cert <path>: Custom SSL certificate files.

🧩 Local Middleware (zara.config.ts)

ZARA supports local middleware that allows you to intercept and modify traffic directly on your machine. Create a zara.config.ts in your project folder:

export default {
  // Modify incoming requests before they reach your local server
  async onRequest(req) {
    req.headers['x-zara-custom'] = 'true';
    return req;
  },
  // Modify outgoing responses before they are sent back to the relay
  async onResponse({ status, headers, body }) {
    headers['x-powered-by'] = 'ZARA';
    return { status, headers, body };
  }
};

🐳 Docker

ZARA is container-ready. Use our high-performance images:

# Run the entire stack via Docker Compose
docker-compose up --build

🧱 Technical Architecture

ZARA uses a high-concurrency binary multiplexing protocol built on WebSockets.

graph TD
    V[Visitor Client] -->|HTTPS| R[Relay Server]
    R <-->|Binary WS Multiplex| A[Local Agent]
    A <-->|HTTP/TCP| LS[Local Service]

Tech Stack

  • Runtime: Bun
  • Encryption: Automatic 4096-bit Certs
  • Compression: Native Gzip
  • Protocol: Custom Binary Framing

💻 Development & Open Source

Contributions are welcome!

git clone https://github.com/f0rsakeN-afk/zara-tunnel.git
cd zara-tunnel
bun install
bun run build

License: MIT