Skip to content

Quickstart

David Reed edited this page Nov 20, 2026 · 3 revisions

This page takes you from nothing to a holyWisp server on your own machine with a stream relayed through it, in about five minutes. Everything here runs on loopback. For a server other people use, read Install and run next.

1. Get a binary

Pick one. All of them give you the same holywisp server. The tarball and a source build also give you holywisp-client, the command-line client used in step 3; with the packages, install the holywisp-client package beside the server.

You have Get What you get
x86_64 or arm64 Linux with glibc 2.34 or newer, and for the server libcrypt.so.1 (libxcrypt-compat on Fedora) the release tarball holywisp, holywisp-client, README.md and an annotated holywisp.conf
Debian 12+ or Ubuntu 22.04+ (amd64), Fedora 41+ (x86_64) the .deb or .rpm the server as a sandboxed systemd service, see Install and run
Node.js 20+ on Linux, macOS or Windows npm install holywisp the server binary inside the package, see Node package
a C compiler and CMake the source both binaries, see Building from source

The release tarball for x86_64 (use linux-arm64 for arm64):

curl -fsSL https://github.com/Fracital/holyWisp/releases/download/latest/holywisp-linux-x64.tar.gz | tar xz
cd holywisp-linux-x64
./holywisp --version
holywisp 0.5.4+<commit>

A release binary reports the first 12 hex digits of the commit it was built from after the +. latest is a rolling prerelease rebuilt from every push to master. Tagged releases and SHA256SUMS are on the releases page.

From source, if you have CMake 3.20+ and GCC 12+ or Clang:

git clone https://github.com/Fracital/holyWisp.git
cd holyWisp
make release
cd build/release

The rest of this page assumes holywisp and holywisp-client are in the current directory.

On macOS or Windows, npm install holywisp in an empty directory puts a server binary at node_modules/holywisp/bin/<platform>-<arch>/: bin/darwin-arm64/holywisp on an Apple silicon Mac, bin/win32-x64/holywisp.exe on a 64-bit PC. You can run that binary directly for steps 2 and 4. The npm package does not carry holywisp-client. On a Mac, build from source to get it; there is no Windows build of it.

2. Run the server on loopback

./holywisp --host 127.0.0.1 --port 6001
2026-11-20T00:56:41.027Z [info] server: holywisp 0.5.4 starting
2026-11-20T00:56:41.028Z [info] server: listening on 127.0.0.1:6001 with 32 workers, flood protection on, reputation on

It runs in the foreground and logs to standard error. Ctrl-C (SIGINT) or SIGTERM stops it. With no --workers it starts one worker thread per CPU.

Pass --host 127.0.0.1. The binary's own default for host is empty, which listens on every interface. The tarball's holywisp.conf, the .deb/.rpm config and the Node package bind 127.0.0.1.

Check it from another terminal:

curl http://127.0.0.1:6001/health
{"status":"ok"}

http://127.0.0.1:6001/stats returns the counters as JSON, described in Stats and monitoring.

3. Open a stream with holywisp-client

holywisp-client is netcat through a Wisp server: it opens one TCP (or --udp) stream to HOST PORT through the server given with -s, then copies standard input to the stream and the stream to standard output.

To a public web server:

printf 'GET / HTTP/1.0\r\nHost: example.org\r\n\r\n' \
  | ./holywisp-client -s ws://127.0.0.1:6001/ example.org 80

The default egress policy lets streams reach public unicast addresses only. To test against something on your own machine, such as a local echo service, the server needs two flags: --allow-loopback lets streams reach 127.0.0.0/8 and ::1, and --allow-direct-ip lets a client name an IP literal instead of a hostname. Use them on loopback tests only; Security and limits explains the policy.

A complete local test with a Python echo service on port 7007:

# terminal 1: an echo service
python3 - <<'PY'
import socketserver
class Echo(socketserver.BaseRequestHandler):
    def handle(self):
        try:
            while data := self.request.recv(65536):
                self.request.sendall(data)
        except OSError:
            pass
socketserver.ThreadingTCPServer.allow_reuse_address = True
socketserver.ThreadingTCPServer(("127.0.0.1", 7007), Echo).serve_forever()
PY

# terminal 2: the server, allowed to reach loopback
./holywisp --host 127.0.0.1 --port 6001 --allow-loopback --allow-direct-ip

# terminal 3: the client
echo hello | ./holywisp-client -s ws://127.0.0.1:6001/ 127.0.0.1 7007
hello

With -v the client prints what it negotiated and each packet on standard error, and -2 asks for Wisp v2:

echo hello | ./holywisp-client -v -2 -s ws://127.0.0.1:6001/ 127.0.0.1 7007
connected: wisp-v2, window 128, 1 lane, stream credit 0, upload credit 0, stream limit 2048
[stream 1] DATA 6 bytes
hello

A quick throughput check against the same echo service (256 MiB each way):

./holywisp-client -s ws://127.0.0.1:6001/ --bench 268435456 127.0.0.1 7007
268435456 bytes echoed in 131 ms: 1954.2 MiB/s each way, checksum ok
connect 0.3 ms, first byte 2.0 ms after the start

That figure is from a 32-core workstation. Hundreds of MiB/s on loopback is normal; tens of MiB/s means something is wrong.

If the client exits with status 1 and prints nothing, the server closed the stream. Run it again with -v to see why:

connected: wisp-v1, window 128, 1 lane, stream credit 0, upload credit 0, stream limit 0
[stream 1] CLOSE host blocked (0x48)

0x48 is the egress policy: here, the server ran without --allow-loopback and the target was localhost. The server log says the same (egress: 127.0.0.1: blocked localhost:7007 (loopback)). Other close reasons are listed in Troubleshooting and Protocol.

The client's other options (WebTransport, passwords, credit, the bench modes) are in Client and benchmarks.

4. Point a browser client at it

The Wisp URL is the server's address with ws://, for example ws://127.0.0.1:6001/. The server takes a WebSocket upgrade on any path, so ws://127.0.0.1:6001/wisp/ works as well; a reverse proxy in front of it can route on the path.

The built-in web client: open http://127.0.0.1:6001/ in a browser. It is served on GET / while serve-webclient is on (the default). Its Wisp field defaults to the page's own origin. Press Connect to open a TCP stream through the relay to the target in the page (by default http://api.ipify.org/) and see the response and a per-packet trace.

wisp-js:

import { client } from "@mercuryworkshop/wisp-js/client";

const conn = new client.ClientConnection("ws://127.0.0.1:6001/");
conn.onopen = () => {
  const stream = conn.create_stream("example.org", 80);
  stream.onmessage = (data) => console.log(new TextDecoder().decode(data));
  stream.send(new TextEncoder().encode("GET / HTTP/1.0\r\nHost: example.org\r\n\r\n"));
};

epoxy, as a proxy transport for Scramjet or STomp, takes the URL as wisp:

import EpoxyTransport from "@mercuryworkshop/epoxy-transport";

const transport = new EpoxyTransport({ wisp: "ws://127.0.0.1:6001/" });

STomp passes that transport to its controller; the STomp wiki shows where it goes. libcurl-transport takes the same { wisp: url } option.

These clients work unchanged with holyWisp: it speaks Wisp v1, and Wisp v2 whenever the client sends any Sec-WebSocket-Protocol token, which epoxy does. Protocol has the details.

A page served over https:// cannot open a ws:// connection to another machine: browsers block it as mixed content. Put a reverse proxy with TLS in front and use wss://, as Reverse proxy describes.

Next steps

Clone this wiki locally