An extendable, simple and stateless high-performance API Gateway framework
open sourceApache-2.0self-hostablefree
Lura is a Go framework for assembling your own API gateway or proxy, formerly called the KrakenD framework and now a Linux Foundation project; it's the core of the KrakenD gateway. You describe endpoints in a configuration file, and Lura's router layer (adapters for gin, net/http mux, gorilla, chi, httptreemux and negroni) hands each request to a stack of proxy middlewares that fan it out to one or more backends, merge the responses, filter and reshape fields, balance load, retry and apply timeouts before returning a single response. It's a set of reusable packages (config, router, proxy, encoding, logging, service discovery) rather than a ready-to-run binary, so you import it in your own Go program and add your own middleware; for a finished gateway its README points to KrakenD.
Problems it solves
- build our own API gateway in Go instead of configuring an off-the-shelf one
- aggregate several backend responses into one endpoint inside a Go service
- a Go library that proxies requests to several backends and merges the JSON responses
- filter and rename fields from backend responses so the mobile app gets only what it needs
- add custom middleware to a Go reverse proxy with fan-out, timeouts and load balancing
- reuse the engine behind KrakenD in our own gateway product
- plug a gateway's routing into the Go HTTP framework we already use, such as gin or chi
Features
- config package defining the service and endpoints, with a viper-based file parser
- router adapters for gin, net/http mux, gorilla, chi, httptreemux and negroni
- proxy middlewares: load balancing, concurrent requests, logging, merging (fork and join) and HTTP
- response manipulation: grouping, wrapping, field filtering and renaming
- service discovery, encoding and logging helpers
- stateless design: every request processed in its own request-scoped context
Limitations
- Isn't a ready-to-run gateway binary: it's a Go library, and its README points to KrakenD for a working API gateway1
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what Lura does.
- Kong Gateway The API and AI Gateway
- KrakenD High-performance, stateless, declarative API Gateway written in Go
- Apache APISIX The Cloud-Native API Gateway and AI Gateway
- Tyk Open Source API and AI Gateway supporting REST, GraphQL, TCP, gRPC and MCP (Model Context Protocol)
- Envoy Gateway Manages Envoy Proxy as a Standalone or Kubernetes-based Application Gateway
- Amazon API Gateway Create, maintain, and secure APIs at any scale
