XRAPH/Work/Gateway extension
Go · since 2026

Bastion

The same idea as Octopus, but as a Forge extension for teams who want the gateway inside their own Go process. HTTP, WebSocket, SSE and gRPC proxying, per-target circuit breakers, traffic splitting for canary and shadow releases, and an admin dashboard written in ForgeUI.

Language
Go
Category
Gateway extension
Since
2026
Stars
0
Repository
01

Anatomy

3 modules
01

Edge

In-process gateway for Forge applications.

02

Aggregation

Composes several internal calls into one response.

03

Manifests

Consumes the same FARP declarations as Octopus.

02

Why it exists

Design notes

#What it is

Bastion turns a Forge application into a full reverse proxy. It is the in-process counterpart to Octopus: same FARP-derived routing, no additional deployment.

#What it does

  • Multi-protocol proxying across HTTP, WebSocket, SSE and gRPC, including streaming.
  • Automatic route generation from FARP manifests, alongside static routes from config or the admin API.
  • Load balancing: round-robin, weighted, random, least-connections, consistent hash.
  • Per-target three-state circuit breakers, active HTTP probes and passive failure tracking.
  • Token-bucket rate limiting, global or per-route or per-client, and retries with exponential, linear or fixed backoff plus a retry budget.
  • Traffic splitting for canary, blue-green, A/B and shadow releases.
  • Response caching with per-route policies that respect Cache-Control.
  • Upstream TLS and mTLS with automatic certificate reload.
  • OpenAPI aggregation across all upstream services, with Swagger UI and per-service specs.
  • An admin dashboard built in ForgeUI, plus a full REST admin API and hot config reload.

#The aggregation trick

Because every service's spec already arrives in its FARP manifest, the unified OpenAPI document is a by-product rather than something anyone maintains. That single fact has removed more documentation drift than any process I have tried.

03

Signals

GitHub
Stars
0
Language
Go
Since
2026
Adopters
00

Shipping something on Bastion? Nobody is listed here yet. Tell me what you built and you will be the first.

Get listed