Documentation
¶
Overview ¶
Command api-example is a minimal TWINOS-style API service on Forge, demonstrating fabriq's data plane: commands, queries, and SSE fetch-then-subscribe. It represents a Go service behind the Rust gateway — it does NOT proxy or terminate anything itself, and its SSE responses flush explicitly so they survive reverse proxies.
Auth: the service verifies JWTs ITSELF (HS256 demo) and stamps the tenant from validated claims. It never trusts a forwarded header.
Environment:
FABRIQ_POSTGRES_DSN (required) FABRIQ_REDIS_ADDR (required for SSE) FABRIQ_JWT_SECRET (required) FABRIQ_HTTP_ADDR (default :8080)
Click to show internal directories.
Click to hide internal directories.