GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

lura

Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation

  • 语言Go
  • 默认分支master
  • 大小1.8 MB
  • 更新3 天前
  • Issues7
在 GitHub 打开
avatarluraproject

项目介绍

luraproject/lura 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 Other 许可证,目前获得 6.8k 个 Star、577 次 Fork。

仓库全名
luraproject/lura

README 摘要

The Lura Project framework An open framework to assemble ultra performance API Gateways with middlewares; formerly known as KrakenD framework, and core service of the KrakenD API Gateway. Motivation Consumers of REST API content (specially in microservices) often query backend services that weren't coded for the UI implementation. This is of course a good practice, but the UI consumers need to do implementations…

完整内容见 GitHub 原始 README 或本页 。

常见问题

lura 用什么语言开发?

主要使用 Go 编写,采用 Other 许可证,目前有 6.8k 个 Star。

lura 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 lura 的源码?

可以直接克隆仓库:git clone https://github.com/luraproject/lura.git,默认分支为 master;安装与运行步骤见仓库 README。

lura 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 7 个未关闭 Issue;Star 数为 6.8k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

avelino/awesome-go avatar
awesome-goavelino
3 天前
192.9k
13.3k
6

一份精选的 Go 框架、库和软件列表

golanggolang-librarygo+3
Go
12.5 MB
0
详情
ollama/ollama avatar
ollamaollama
1 天前
186.5k
19.0k
4.6k

快速上手并运行 Kimi、GLM、MiniMax、DeepSeek、gpt-oss、Qwen、Gemma 及其他模型。

deepseekgemmaglm+11
Go
95.0 MB
1
详情
golang/go avatar
gogolang
10 小时前
139.8k
20.7k
9.9k

Go 编程语言

gogolanglanguage+1
Go
456.1 MB
0
详情
kubernetes/kubernetes avatar
kuberneteskubernetes
1 小时前
128.9k
44.0k
1.9k

生产级容器调度与管理

cncfcontainersgo+1
Go
1.5 GB
0
详情
JuliusBrussee/caveman avatar
cavemanJuliusBrussee
14 小时前
118.5k
6.9k
73

为什么几个 token 能搞定却要用很多 token。一个爆火的技能 + 编码代理的代理,像穴居人那样说话,可削减 65% 的 token。

aianthropiccaveman+7
Go
21.2 MB
0
详情
fatedier/frp avatar
frpfatedier
4 天前
110.5k
14.9k
35

一个快速的反向代理,帮助你将 NAT 或防火墙后的本地服务器暴露到互联网。

proxyreverse-proxytunnel+7
Go
32.4 MB
0
详情
infiniflow/ragflow avatar
ragflowinfiniflow
3 小时前
93.9k
11.3k
1.3k

RAGFlow 是一款领先的开源检索增强生成(RAG)引擎,将前沿 RAG 与 Agent 能力融合,为 LLM 构建卓越的上下文层

agent-harnessagent-native-databaseagentic-ai+13
Go
188.1 MB
0
详情
gohugoio/hugo avatar
hugogohugoio
8 小时前
90.4k
8.3k
181

世界上用于构建网站的最快框架。

gohugostatic-site-generator+4
Go
150.1 MB
0
详情

关于

api-gatewayapisbackend-servicesgatewaygateway-apigogolangkrakendload-balancermicroservicemiddlewareproxiesrouter
  • Other
  • 6.8k Stars
  • 577 Forks
  • 111 Watching

简要分析

热度分
8067
价值分
4265
活跃状态
活跃
GitHub

语言占比

Go
Makefile

Release

  • v3.0.11 周前
  • v3.0.01 周前
  • v2.14.11 周前
  • v2.14.01 周前
  • v2.13.02025年10月30日

贡献者

kpachakpachataik0taik0dhontecillasdhontecillasalombartealombartethedaethedaedeepsource-autofix[bot]deepsource-autofix[bot]dependabot[bot]dependabot[bot]foxcoolfoxcoolaldidanaaldidanalennard-brinkhauslennard-brinkhausanivanovicanivanovicobokaman-comobokaman-com

The Lura Project framework

Go Report Card GoDoc CII Best Practices Slack Widget FOSSA Status

An open framework to assemble ultra performance API Gateways with middlewares; formerly known as KrakenD framework, and core service of the KrakenD API Gateway.

Motivation

Consumers of REST API content (specially in microservices) often query backend services that weren’t coded for the UI implementation. This is of course a good practice, but the UI consumers need to do implementations that suffer a lot of complexity and burden with the sizes of their microservices responses.

Lura is an API Gateway builder and proxy generator that sits between the client and all the source servers, adding a new layer that removes all the complexity to the clients, providing them only the information that the UI needs. Lura acts as an aggregator of many sources into single endpoints and allows you to group, wrap, transform and shrink responses.

Lura not only supports HTTP(S), but because it is a set of generic libraries you can build all type of API Gateways and proxies, including for instance, an RPC gateway.

Practical Example

A mobile developer needs to construct a single front page that requires data from 4 different calls to their backend services, e.g:

1) api.store.server/products
2) api.store.server/marketing-promos
3) api.users.server/users/{id_user}
4) api.users.server/shopping-cart/{id_user}

The screen is very simple, and the mobile client only needs to retrieve data from 4 different sources, wait for the round trip and then hand pick only a few fields from the response.

What if the mobile could call a single endpoint?

1) lura.server/frontpage/{id_user}

That’s something Lura can do for you. And this is how it would look like:

Gateway

Lura would merge all the data and return only the fields you need (the difference in size in the graph).

Visit the Lura Project website for more information.

What’s in this repository?

The source code for the Lura project framework. It is designed to work with your own middleware and extend the functionality by using small, independent, reusable components following the Unix philosophy.

Use this repository if you want to build from source your API Gateway or if you want to reuse the components in another application.

If you need a fully functional API Gateway you can download the KrakenD binary for your architecture or build it yourself.

Library Usage

The Lura project is presented as a Go library that you can include in your own Go application to build a powerful proxy or API gateway. For a complete example, check the KrakenD CE repository.

Of course, you will need Go installed in your system to compile the code.

A ready to use example:

    package main

    import (
        "flag"
        "log"
        "os"

        "github.com/luraproject/lura/v3/config"
        "github.com/luraproject/lura/v3/logging"
        "github.com/luraproject/lura/v3/proxy"
        "github.com/luraproject/lura/v3/router/gin"
    )

    func main() {
        port := flag.Int("p", 0, "Port of the service")
        logLevel := flag.String("l", "ERROR", "Logging level")
        debug := flag.Bool("d", false, "Enable the debug")
        configFile := flag.String("c", "/etc/lura/configuration.json", "Path to the configuration filename")
        flag.Parse()

        parser := config.NewParser()
        serviceConfig, err := parser.Parse(*configFile)
        if err != nil {
            log.Fatal("ERROR:", err.Error())
        }
        serviceConfig.Debug = serviceConfig.Debug || *debug
        if *port != 0 {
            serviceConfig.Port = *port
        }

        logger, _ := logging.NewLogger(*logLevel, os.Stdout, "[LURA]")

        routerFactory := gin.DefaultFactory(proxy.DefaultFactory(logger), logger)

        routerFactory.New().Run(serviceConfig)
    }

Visit the framework overview for more details about the components of the Lura project.

Configuration file

Lura config file

Benchmarks

Check out the benchmark results of several Lura components

Contributing

We are always happy to receive contributions. If you have questions, suggestions, bugs please open an issue. If you want to submit the code, create the issue and send us a pull request for review.

Read CONTRIBUTING.md for more information.

Want more?

  • Follow us on Twitter: @luraproject
  • Visit our Slack channel
  • Read the documentation

Enjoy Lura!

License

FOSSA Status

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
5.2万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。