Skip to content

v0.1.5

Choose a tag to compare

@KeeganAI KeeganAI released this 15 Apr 18:05
· 13 commits to main since this release

Reverse-proxy mode, blackout lever, train-wifi profile.

Added

  • Reverse-proxy mode. A single upstream via --target http://host:port, or several via repeatable --route PORT=URL. Pick the mode from the flags: --target/--route → reverse, otherwise forward (as in 0.1).
  • Listen-port convention for reverse mode: prefix the upstream port with 1 (3000 → 13000, 5173 → 15173, 8080 → 18080). Falls back to a free random port — with a clear log line — when the derived port is out of range, taken, or duplicated across routes.
  • blackout lever. Periodic windows where the proxy stops forwarding: existing connections are torn down, new requests get 504 Gateway Timeout (still after the profile's latency, so the blackout feels like a real stall). Configurable as { everySeconds, durationSeconds }.
  • train-wifi profile: 500ms ± 400ms latency, 2% drop, 4s blackout every 60s.
  • --port auto as an explicit shortcut for the single-target reverse mode (same as omitting --port).

Changed

  • The 501 message emitted on CONNECT now points at reverse-proxy mode as the near-term workaround instead of just deferring to v0.2.

Known limits

  • Still HTTP only. HTTPS (and the trust subcommand) remains scheduled for v0.2.
  • No external YAML config, admin API, UI, bandwidth throttling, or failure injection yet.

Install: npm i -g flapwire@0.1.5