Skip to content

Commit 5d2c64f

Browse files
authored
Add Barbacane API gateway (#696)
1 parent 41efb00 commit 5d2c64f

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

src/content/tools/barbacane.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Barbacane
3+
description: Spec-driven API gateway that compiles OpenAPI specs into portable artifacts with WASM middleware plugins for validation, authentication, rate limiting, and more.
4+
categories:
5+
- gateways
6+
- data-validators
7+
link: https://github.com/barbacane-dev/Barbacane
8+
repo: https://github.com/barbacane-dev/Barbacane
9+
languages:
10+
rust: true
11+
oaiSpecs:
12+
oas: true
13+
overlays: false
14+
arazzo: false
15+
oasVersions:
16+
v2: false
17+
v3: true
18+
v3_1: true
19+
v3_2: true
20+
---
21+
22+
## Overview
23+
24+
Barbacane is a spec-driven API gateway that compiles OpenAPI 3.x specifications into portable `.bca` artifacts. The compiled artifact contains routes, validation schemas, and WASM middleware plugins, making the OpenAPI spec the single source of truth for gateway behavior.
25+
26+
## Features
27+
28+
- Compiles OpenAPI 3.x specs into self-contained gateway artifacts
29+
- Request validation against JSON Schema (body, path, query, headers)
30+
- WASM plugin system with 21 built-in plugins (auth, rate limiting, caching, CORS, CEL/OPA authorization, and more)
31+
- AsyncAPI 3.x support with Kafka and NATS dispatchers
32+
- Compile-time safety checks (route conflicts, schema complexity, circular refs)
33+
- Distributed tracing (OpenTelemetry) and Prometheus metrics
34+
- Control plane with PostgreSQL for fleet management
35+
36+
## Usage
37+
38+
```bash
39+
# Compile an OpenAPI spec into a gateway artifact
40+
barbacane compile --spec api.yaml -m barbacane.yaml -o api.bca
41+
42+
# Serve the compiled artifact
43+
barbacane serve --artifact api.bca
44+
```

0 commit comments

Comments
 (0)