Go Middleware

Open-source Go projects categorized as Middleware

Top 23 Go Middleware Projects

  • Gin

    Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

    Project mention: 10 Most Popular Frameworks For Building RESTful APIs | dev.to | 2023-02-06

    To learn more about Gin framework, you can check out the docs here

  • Echo

    High performance, minimalist Go web framework

    Project mention: What are the most innovative and interesting frontend/backend frameworks you know? I'll use them to build my next side project. | reddit.com/r/webdev | 2023-02-07

    I'm thinking of recreating something like silverbullet using Vite, Svelte, Echo, Sqlite, anime, and web sockets. I'll host it in Docker on my mini server, access it via Tailscale and back it up with restic to Azure. I have some vague idea of building a web app that is both the editor and the app at the same time. Like a game where you build the game by playing the game, but with markdown and magic. Perfect side project fodder.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • chi

    lightweight, idiomatic and composable router for building Go HTTP services

    Project mention: go-chi create auth middleware | reddit.com/r/golang | 2023-01-27

    Take a look at the Basic HTTP auth middleware that ships with chi and adjust it to your needs: https://github.com/go-chi/chi/blob/master/middleware/basic_auth.go

  • resty

    Simple HTTP and REST client library for Go

    Project mention: Those who use an http client on top of/instead of the built in http package, what do you use and why? | reddit.com/r/golang | 2022-11-22
  • KrakenD

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

    Project mention: Share Your Code.. Share your most unique piece of Go code. | reddit.com/r/golang | 2022-10-15

    KrakenD and Lura https://github.com/krakendio/krakend-ce https://github.com/luraproject/lura

  • go-grpc-middleware

    Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.

    Project mention: Understanding gRPC Concepts, Use Cases & Best Practices | dev.to | 2023-01-15

    Supported middlewares by gRPC framework.

  • goku_lite

    A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • gin-swagger

    gin middleware to automatically generate RESTful API documentation with Swagger 2.0.

    Project mention: swaggo/swag alternative, but should generate OpenAPI 3.0 spec file | reddit.com/r/golang | 2022-08-23

    No I use this one https://github.com/swaggo/gin-swagger. It's with swagger 2.0, but I think it can be easily converted to OpenApi 3.0. I tried it once and the only thing it complained about was some simple "metadata" like contact person etc.

  • alice

    Painless middleware chaining for Go

    Project mention: Recommended http helper libraries | reddit.com/r/golang | 2022-07-01

    May I suggest using this httprouter for router and this for middleware Alice

  • secure

    HTTP middleware for Go that facilitates some quick security wins.

  • martian

    Martian is a library for building custom HTTP/S proxies

    Project mention: Mitmproxy 9: WireGuard Mode | news.ycombinator.com | 2022-10-29
  • Faygo

    Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc.

  • nosurf

    CSRF protection middleware for Go.

  • grpc-tools

    A suite of gRPC debugging tools. Like Fiddler/Charles but for gRPC.

  • IOC-golang

    一款服务于 Go 开发者的依赖注入框架,方便搭建任何 Go 应用。 A Golang depenedency injection framework, helps developers to build any go application.

    Project mention: Why Go and Not Rust? | news.ycombinator.com | 2023-01-27

    It looks like IoC frameworks do exist for Go (https://github.com/alibaba/IOC-golang for example). I'm sure the True Gosman would not use this but it exists nonetheless. It looks like there are some heretics in the community - how shall we exile these vile peoples?

  • gentleman

    Plugin-driven, extensible HTTP client toolkit for Go

  • copper

    🚀‏‏‎ ‎‏‏‎‏‏‎‎‎‎‎‎Copper is a Go toolkit complete with everything you need to build web apps. (by gocopper)

    Project mention: Copper - A Go framework for your projects | reddit.com/r/webdev | 2022-07-02
  • gin-boilerplate

    The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQL database and JWT authentication middleware stored in Redis

  • gziphandler

    Go middleware to gzip HTTP responses

    Project mention: Golang HTTP Handler With Gzip | dev.to | 2022-05-26

    Implementation of the gzip compression on Golang HTTP handler and requests might be adding a little complexity on your code, but I believe modern browser / API gateway these days can implement this easily without changing your code. Also this middleware created by NY Times can help you to minimize the effort on implementing this compression. You can find all the code used on in this article here.

  • Gearbox

    Gearbox :gear: is a web framework written in Go with a focus on high performance

  • auth

    Authenticator via oauth2, direct, email and telegram

    Project mention: Simple web app, how to do auth? | reddit.com/r/golang | 2022-11-02

    the simplest sso library I found is https://github.com/go-pkgz/auth

  • mortar

    Mortar is a GO framework/library for building gRPC (and REST) web services. (by go-masonry)

  • easytcp

    :sparkles: :rocket: EasyTCP is a light-weight TCP framework written in Go (Golang), built with message router. EasyTCP helps you build a TCP server easily fast and less painful.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-02-07.

Go Middleware related posts


What are some of the best open-source Middleware projects in Go? This list will help you:

Project Stars
1 Gin 66,123
2 Echo 24,835
3 chi 13,242
4 resty 7,261
5 KrakenD 5,399
6 go-grpc-middleware 5,185
7 goku_lite 2,958
8 gin-swagger 2,799
9 alice 2,740
10 secure 2,073
11 martian 1,815
12 Faygo 1,580
13 nosurf 1,372
14 grpc-tools 1,114
15 IOC-golang 990
16 gentleman 975
17 copper 905
18 gin-boilerplate 859
19 gziphandler 818
20 Gearbox 703
21 auth 672
22 mortar 643
23 easytcp 553
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives