Skip to content
All features
gatewaybackends/gateway

gateway surface

TypeScript / Hono BFF, auth, tenancy, OpenAPI

Open docs
Stability
Stable
Scope
Request-scoped
Boundary
backends/gateway
gatewaybackends/gateway
Type-safe200 OKGET /v1/gateway
GET /v1/gateway

Total latency

36 ms

p50

15 ms

p95

55 ms

RPS

1.7k

Endpoints

OpenAPI 3.1
RouteStatusLatency
GET/v1/gateway20015 ms
GET/v1/gateway/:id20019 ms
POST/v1/gateway20124 ms
GET/v1/health2006 ms

Response shape

JSON
{
  "id": string,
  "slug": "gateway",
  "data": gateway[],
  "meta": { total: number }
}
backends/gatewayOpenAPI + typed routes
Usagerouter.ts
typescript
router.ts
1import { createApp } from "@nebutra/gateway-core";
2import { tenancy, rateLimit } from "@nebutra/gateway-core/middleware";
3
4const app = createApp()
5  .use(tenancy())
6  .use(rateLimit({ rps: 100 }));
7
8app.get("/v1/posts", async (c) => {
9  return c.json({ tenant: c.var.tenant.id });
10});