
Barbacane
The spec-driven API gateway. One spec, zero config drift.
7 followers
The spec-driven API gateway. One spec, zero config drift.
7 followers
Barbacane is an open-source API gateway that uses your OpenAPI and AsyncAPI specs as the single source of truth. No proprietary DSL, no config drift. Write your spec, compile it, deploy it- routing, validation, auth, and rate limiting just work. Built in Rust for sub-microsecond performance, extensible with WebAssembly plugins.




If you have specific plugin needs, ask about them here, I'll be happy to develop them in top priority!
I've spent years working with APIs in fintech, and one frustration kept coming back โ the gap between API specs and gateway configurations. You write a beautiful OpenAPI spec, then you rewrite half of it in your gateway's proprietary config format. They drift apart. Bugs happen. Security holes open up.
So I built Barbacane: your spec is literally your gateway config.
You annotate your OpenAPI or AsyncAPI spec with x-barbacane-* extensions, compile it into an optimized binary artifact, and deploy. Routing, validation, authentication โ everything is derived from a single source of truth.
A few things I'm proud of:
Built in Rust โ ~83ns route lookups, ~1.2ยตs full request validation
WASM plugins โ extend it in any language, fully sandboxed
Control plane + data planes โ data planes keep running even if the control plane goes down
Truly open source โ Apache 2.0, no enterprise paywall
This is v0.1.0 โ the foundation is solid, and there's a lot on the roadmap. I'd love your feedback, feature requests, and honest opinions.
๐ Website: https://barbacane.dev ๐ Docs: https://docs.barbacane.dev โญ GitHub: https://github.com/barbacane-dev/barbacane
Happy to answer any questions!