@tailnet/tailcat
@tailnet/tailcat
Section titled “@tailnet/tailcat”Client for the tailcat CLI: WireGuard tunnels between two machines with no control plane.
bun add @tailnet/tailcatimport { Tailcat } from "@tailnet/tailcat"
const tailcat = new Tailcat()
const server = await tailcat.serve([8080])console.log(server.address) // hand this to the other side
const tunnel = tailcat.connect(server.address, 8080)await tailcat.ping(server.address)Needs the tailcat binary on PATH and the Bun runtime. Tailcat promises no
CLI stability, so pin the version you tested against.
Classes
Section titled “Classes”Interfaces
Section titled “Interfaces”- DerpNode
- GenkeyOptions
- ParsedAddress
- PingOptions
- ServeOptions
- TailcatConnection
- TailcatOptions
- TailcatServer