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

wisp-wt

v0.1.1

Published

WebTransport (HTTP/3) transport binding for Wisp with automatic WebSocket fallback, dual-stack Rust relay, and unkernel NetBackend adapter.

Readme

wisp-wt

wisp-wt lets Linux and WebAssembly apps running in a browser tab make real network requests over HTTP/3 (WebTransport) instead of getting stuck behind WebSocket bottlenecks.

Why this exists

Browser tabs cannot open raw TCP or UDP sockets, so in-browser VMs and Wasm runtimes (like unkernel) tunnel their network traffic through a relay server. Traditionally, that tunnel is a single WebSocket (wss://). When one download or packet stalls on a WebSocket, every other connection in the VM freezes behind it. wisp-wt replaces that single-lane tunnel with WebTransport over HTTP/3, and automatically falls back to WebSocket if UDP is blocked on the user's network.


The Payoff

1.9x–3.1x faster tail latency under packet loss

Measured in a Linux container with simulated packet loss (tc netem, ~60 ms round-trip time) running 2 concurrent 4 MiB bulk downloads + 24 interactive 4 KiB RPCs over the same session:

| Packet Loss | Wisp-WS (WebSocket) p99 | Wisp-WT (WebTransport) p99 | Speedup | | :--- | ---: | ---: | :--- | | 0% | 374.2 ms | 194.2 ms | 1.9x faster | | 1% | 643.9 ms | 237.6 ms | 2.7x faster | | 2% | 932.6 ms | 341.3 ms | 2.7x faster | | 3% | 1119.1 ms | 356.9 ms | 3.1x faster |

Why? No Head-of-Line (HoL) Blocking

Think of a WebSocket like a single-lane highway: if one truck (a bulk download) drops a crate and stops, every sports car (API calls, SSH keystrokes, RPCs) behind it is stuck until that crate is picked up. WebTransport (built on HTTP/3 and QUIC) is a multi-lane highway where each connection gets its own independent lane—a dropped packet in one download never stalls your interactive requests.

Secretless Auth Proxy

Your browser agent or guest VM can call authenticated APIs (like GitHub or OpenAI) without ever holding your API key. The relay injects credentials server-side on the way out, so secrets never enter browser memory or guest RAM.


How It Works

+-----------------------------------+          HTTP/3 (WebTransport / QUIC)          +-------------------------------+
|  Browser Tab (unkernel / Wasm)    |  ===========================================>  |  wisp-wt-relay (Rust)         |
|                                   |    Stream 1: Bulk download (4 MiB)             |                               |
|  - Guest VM / App                 |    Stream 2: Interactive RPC (4 KiB)           |  - Injects API keys (Auth     |
|  - wispWtBackend ("wisp-wt")      |    Stream 3: Auth Proxy -> GitHub API          |    Proxy)                     |
|                                   |  - - - - - - - - - - - - - - - - - - - - - ->  |  - Blocks private IPs (SSRF)  |
+-----------------------------------+    Auto-fallback to WebSocket (wss://) if      +-------------------------------+
                                         UDP/443 is blocked                                        |
                                                                                                   v
                                                                                       Real Internet / Origin APIs

Try It in 30 Seconds

Run the local HTTP/3 + WebSocket Rust relay and the interactive Alpine Linux browser demo with a single command:

bun install && bun run dev

You can also pass extra relay flags (for example, Secretless Auth Proxy routes):

bun run dev -- --auth-proxy-config examples/auth-proxy.example.json

What you'll see: Open the printed local URL in Chrome/Edge. The page boots Alpine Linux in unkernel over local WebTransport, lets you run real network commands from the browser, and includes a live "Simulate UDP/443 blocked" toggle to watch automatic WebSocket fallback in action.


Copy-Paste unkernel Integration

Install wisp-wt:

npm install wisp-wt

Drop wispWtBackend into unkernel to get HTTP/3 transport, automatic WebSocket fallback, and Secretless Auth Proxy support:

import { createKernel } from "unkernel";
import { wispWtBackend } from "wisp-wt/unkernel";

const net = wispWtBackend({
  url: "https://relay.example.com/",
  mode: "auto", // WebTransport primary, automatic WebSocket fallback
});

const vm = await createKernel({ net });

Inside the guest VM, any Secretless Auth Proxy routes advertised by the relay (e.g. github.wisp.internal) are automatically mapped via internal DNS (198.18.0.0/15), so curl http://github.wisp.internal/user works with zero secrets in guest RAM.


Plain-English Glossary

  • Wisp: A lightweight protocol for multiplexing multiple TCP/UDP streams over a single browser-compatible connection.
  • WebTransport: A modern browser API that sends data over HTTP/3 (QUIC) instead of TCP, giving each stream its own independent lane.
  • QUIC: The UDP-based transport protocol underneath HTTP/3 that eliminates cross-stream Head-of-Line blocking and speeds up connection setup.
  • Head-of-Line (HoL) blocking: A traffic jam where one lost packet on a shared connection stalls every other independent request behind it.
  • unkernel: A browser-based Linux/Wasm runtime that uses a NetBackend adapter (like wisp-wt/unkernel) to give guest apps network access.
  • Secretless Auth Proxy: A relay feature (EXT_ID.AUTH_PROXY / 0x11) that attaches API tokens on the server so browser code and guest VMs never see your credentials.

Deep Dive: Architecture, Repo Layout & Build

Exports (src/index.ts)

  • wisp-wt: WispClient, WispWebTransportSession, WispWebSocketSession, protocol encoders/decoders (encodeControlFrame, decodeInfo, encodeHttpProxyConnectHeader, etc.), and TypeScript types.
  • wisp-wt/unkernel: wispWtBackend (WispWtBackend, UnkernelNetBackend).

Repo Layout

  • src/ — Zero-dependency TypeScript client (WispClient, WispWebTransportSession, WispWebSocketSession) and unkernel adapter (wisp-wt/unkernel).
  • relay/ — HTTP/3 + WebSocket Rust relay (wtransport 0.7 + tokio-tungstenite 0.30) with Origin allow-listing, token auth, rate limiting, and SSRF/private-IP blocking.
  • demo/ — Interactive browser demo booting Alpine Linux via unkernel over local WebTransport + live UDP/443-blocked fallback toggle.
  • bench/ — Real-kernel Linux tc netem Docker benchmark comparing Wisp-WS vs. Wisp-WT under 0–3% packet loss (RESULTS.md).
  • deploy/ — Production Dockerfile.relay, fly.toml, and systemd unit (deploy/).
  • SPEC.md — Full wire protocol specification, relay evaluation, and unkernel integration notes (SPEC.md).

Packaging & Build

bun install
bun run typecheck
bun run build
bun test
npm pack --dry-run

Publishing & Releases

Manual First Publish (npm)

Before automated OIDC Trusted Publishing is configured on npm, perform the initial publish manually:

npm login && npm publish --access public

Automated v* Tag Releases

Pushing a version tag (e.g., v0.1.0) triggers .github/workflows/release.yml:

  • Verify: Runs TypeScript (typecheck, build, test) and Rust (fmt, clippy, test) checks.
  • GitHub Release: Builds wisp-wt-relay binaries for x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, and aarch64-apple-darwin (with .sha256 checksums) plus the npm tarball, and attaches them to the GitHub Release.
  • GHCR Docker Image: Builds and pushes multi-arch (linux/amd64, linux/arm64) images to ghcr.io/<owner>/wisp-wt-relay:<tag> and :latest.
  • npm: Publishes wisp-wt with --provenance --access public (via OIDC Trusted Publishing or NPM_TOKEN).
  • crates.io: Publishes wisp-wt-relay when CARGO_REGISTRY_TOKEN is configured.