Barbacane

•
29
•

Provides a spec-driven API gateway for routing, validation, and authentication based on OpenAPI or AsyncAPI specifications.

Barbacane is a high-performance, spec-driven AI Gateway and API gateway built in Rust. It eliminates configuration drift by using your OpenAPI 3.x or AsyncAPI 3.x specification as the single source of truth for all gateway functionalities, including routing, validation, and authentication. Designed for speed and predictability, Barbacane offers a secure, memory-safe runtime, sandboxed WebAssembly (WASM) plugins for extensibility, and edge-ready stateless data plane instances with a separate control plane. It supports comprehensive observability through Prometheus metrics, structured JSON logging, and distributed tracing.

Key Features

01Extensible with custom plugins written in any WebAssembly-compatible language
02High performance and predictable latency with Rust, Tokio, and Hyper
0323 GitHub stars
04Edge-ready architecture with stateless data planes and separate control plane
05Secure by default with memory-safe runtime, TLS, and sandboxed WASM plugins
06Spec-driven configuration using OpenAPI 3.x or AsyncAPI 3.x specifications

Use Cases

01Implementing API routing, validation, and authentication based on specifications
02Building AI gateways with unified LLM routing to various providers and fallback capabilities
03Extending gateway functionality with custom WebAssembly plugins for middlewares and dispatchers