gin-gonic/contrib — an open-source project — sits at 2.2k GitHub stars. Collection of middlewares created by the community
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Here you'll find middleware ready to use with Gin Framework. Submit your pull request, either with the package in a folder, or by adding a link to this README.md.
If adding a package directly, don't forget to create a README.md inside with author name.
If adding a link to your own repository, please follow this example:
Each author is responsible for maintaining their own code, although if you submit as a package, you allow the community to fix it. You can also submit a pull request to fix an existing package.
List of external middleware
goswag - Wrapper to create swagger docs easily from your endpoints
RestGate - Secure authentication for REST API endpoints
staticbin - middleware/handler for serving static files from binary data
gin-cachecontrol - Cache-Control middleware
gin-cors - Official CORS gin's middleware
gin-csrf - CSRF protection
gin-health - middleware that simplifies stat reporting via gocraft/health
gin-merry - middleware for pretty-printing merry errors with context
gin-revision - Revision middleware for Gin framework
gin-jwt - JWT Middleware for Gin Framework
gin-sessions - session middleware based on mongodb and mysql
gin-location - middleware for exposing the server's hostname and scheme
gin-nice-recovery - panic recovery middleware that lets you build a nicer user experience
gin-limiter - A simple gin middleware for ip limiter based on redis.
gin-limit - limits simultaneous requests; can help with high traffic load
gin-limit-by-key - An in-memory middleware to limit access rate by custom key and rate.
ez-gin-template - easy template wrap for gin
gin-hydra - Hydra middleware for Gin
gin-glog - meant as drop-in replacement for Gin's default logger
gin-gomonitor - for exposing metrics with Go-Monitor
gin-oauth2 - for working with OAuth2
static An alternative static assets handler for the gin framework.
xss-mw - XssMw is a middleware designed to "auto remove XSS" from user submitted input
gin-helmet - Collection of simple security middleware.
gin-jwt-session - middleware to provide JWT/Session/Flashes, easy to use while also provide options for adjust if necessary. Provide sample too.
goview - a lightweight, minimalist and idiomatic template library
ginvalidator - A robust and lightweight validation middleware for the Gin framework, simplifying input validation with customizable rules and error handling.
gin-redis-ip-limiter - Request limiter based on ip address. It works with redis and with a sliding-window mechanism.
gin-method-override - Method override by POST form param _method, inspired by Ruby's same name rack
gin-access-limit - An access-control middleware by specifying allowed source CIDR notations.
gin-session - Session middleware for Gin
gin-stats - Lightweight and useful request metrics middleware
gin-statsd - A Gin middleware for reporting to statsd deamon
gin-health-check - A health check middleware for Gin
gin-session-middleware - A efficient, safely and easy-to-use session library for Go.
ginception - Nice looking exception page
gin-inspector - Gin middleware for investigating http request.
gin-dump - Gin middleware/handler to dump header/body of request and response. Very helpful for debugging your applications.
gin-go-metrics - Gin middleware to gather and store metrics using rcrowley/go-metrics
ginrpc - Gin middleware/handler auto binding tools. support object register by annotated route like beego
logging - logging provide GinLogger uses zap to log detailed access logs in JSON or text format with trace id, supports flexible and rich configuration, and supports automatic reporting of log events above error level to sentry
milogo - Field selection patten for Gin
ratelimiter - Gin middleware for token bucket ratelimiter.
servefiles - serving static files with performance-enhancing cache control headers; also handles gzip & brotli compressed files
gin-brotli - Gin middleware to enable Brotli compression
gin-jwt-cognito - validate jwt tokens issued by amazon cognito
gin-pagination - A simple and customizable pagination middleware for Gin
gin-opentelemetry - Gin middleware for OpenTelemetry, you can also use OpenTelemetry via Alibaba Compile-Time Auto Instrumentation or OpenTelemetry Auto Instrumentation using eBPF without changing any code
scs_gin_adapter gin adapter for SCS HTTP Session Management
apitally - Gin middleware for API monitoring, analytics and request logging with Apitally
go-osinfo-gin - A tiny Go package that exposes system/OS information and runtime metrics.
TopGit's last sync did not record any GitHub topics for gin-gonic/contrib. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on gin-gonic/contrib?
The most recent commit recorded on gin-gonic/contrib was 9 months ago, based on the GitHub push timestamp. The repository has 278 forks — one of the better signals of community interest.
How many stars does gin-gonic/contrib have?
gin-gonic/contrib has 2.2k GitHub stars — refresh the page for the live number, or check github.com/gin-gonic/contrib. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is gin-gonic/contrib written in?
gin-gonic/contrib is written primarily in Go. GitHub's language field is based on the largest share of bytes in the default branch.
What license does gin-gonic/contrib use?
gin-gonic/contrib is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where can I see gin-gonic/contrib in action?
The project maintains a homepage at https://gin-gonic.github.io/gin/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about gin-gonic/contrib?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/gin-gonic/contrib is the definitive source.
Read full README in the tab above.
Is contrib worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of contrib.