Tor in the browser
Gateway server for tor-js — enabling real Tor circuits built locally in your browser using WebAssembly. All cryptography runs on your machine. The gateway never sees your traffic or knows your destination — it just relays encrypted bytes.
WebSocket Relay
Bridges browser connections to raw TCP sockets on the Tor network. Your client builds circuits and negotiates keys — the gateway only forwards opaque, encrypted data.
WebRTC Relay
Data channel transport as an alternative to WebSocket. Harder to fingerprint and block — looks like regular video call traffic to network observers.
Fast Bootstrap
All the directory data your client needs in a single brotli-compressed download. No multi-step directory protocol, no round trips to authorities — just one fetch, natively decompressed by the browser.
Connect to a Tor relay
Open a socket to any consensus relay. The gateway automatically picks the best transport (WebRTC, WebSocket, or direct TCP):
Only addresses advertised in the current Tor consensus are allowed. The gateway rejects connections to non-relay or private IPs.
Bootstrap from this gateway
Download and parse the Tor consensus directly in the browser: