The Fiber middleware modules listed here are maintained by the Fiber team.
Converter for net/http handlers to/from Fiber request handlers, special thanks to @arsmn!
Basic auth middleware provides an HTTP basic authentication. It calls the next handler for valid credentials and 401 Unauthorized for missing or invalid credentials.
Compression middleware for Fiber, it supports
Enable cross-origin resource sharing (CORS) with various options.
Protect from CSRF exploits.
FileServer middleware for Fiber, special thanks and credits to Alireza Salary
Ignore favicon from logs or serve from memory if a file path is provided.
Helps secure your apps by setting various HTTP headers.
JWT returns a JSON Web Token (JWT) auth middleware.
Key auth middleware provides a key based authentication.
Rate-limiting middleware for Fiber. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
HTTP request/response logger.
Special thanks to Matthew Lee (@mthli)
Recover middleware recovers from panics anywhere in the stack chain and handles the control to the centralized ErrorHandler.
Rewrite middleware rewrites the URL path based on provided rules. It can be helpful for backward compatibility or just creating cleaner and more descriptive links.
Request ID middleware generates a unique id for a request.
This session middleware is build on top of fasthttp/session by @savsgio MIT. Special thanks to @thomasvvugt for helping with this middleware.
This package contains 8 template engines that can be used with Fiber
Based on Fasthttp WebSocket for Fiber with Locals support!
These are some additional popular middleware modules created by the community. Please open an issue if you want to see yours.
Automatically generate RESTful API documentation with Swagger 2.0.
Casbin middleware for Fiber
Introspection middleware for Fiber
Provides verifying an access token against a remote Introspection endpoint (RFC7662)
Middleware that trace requests on Fiber framework with OpenTracing API. You can use every tracer that implement OpenTracing interface
A boilerplate for the Fiber web framework
A Go library for building GraphQL servers without any fuss with Fasthttp support
fiber_limiter is implemented with delay calculate of token bucket