Actual middlewares
Tollbooth2.7K

Rate limit HTTP request handler.

CORS2.7K

Easily add CORS capabilities to your API.

Limiter2.1K

Dead simple rate limit middleware for Go.

go-server-timing861

Add/parse Server-Timing header.

go-fault510

Fault injection middleware for Go.

ln-paywall151

Go middleware for monetizing APIs on a per-request basis with the Lightning Network (Bitcoin).

XFF98

Handle X-Forwarded-For header and friends.

rk-grpc75

Middleware for gRPC with logging, metrics, auth, tracing etc.

rk-gin47

Middleware for Gin framework with logging, metrics, auth, tracing etc.

formjson39

Transparently handle JSON input as a standard form POST.

client-timing24

An HTTP client for Server-Timing header.

echo-middleware15

Middleware for Echo framework with logging and metrics.

mid9

Miscellaneous HTTP middleware features: idiomatic error return from handlers; receive/respond with JSON data; request tracing; and more.