gateway

command
v0.0.0-...-7ccd87f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Command gateway is the Doorbell server: a raw TCP control port plus an HTTP ingress, in one process.

It is the piece that cannot exist on Vercel, Netlify, Cloudflare Workers or Lambda — not because it is hard there, but because those platforms terminate HTTP and sleep between requests, and this process must hold a TCP socket open for hours. Zerops' lack of scale-to-zero is what makes it possible.

Request path:

internet -> :3000 /t/<id>/... -> lookup tunnel -> open a yamux stream on the
tunnel's existing socket -> ReverseProxy writes the HTTP request into the
stream -> the CLI on the developer's laptop pipes it to localhost.

Using httputil.ReverseProxy with a Transport that dials yamux, instead of hand-rolling HTTP framing, buys correct handling of chunked bodies, keep-alive and WebSocket upgrades for free.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL