Fiber is an Express inspired web framework built on top of Fasthttp , the fastest HTTP engine for Go. Designed to ease things up for fast development with zero memory allocation and performance in mind.
A curated list of awesome Fiber middlewares, boilerplates, recipes, articles and tools.
List of middlewares that are included within the Fiber framework.
Adaptor - Converter for net/http handlers to/from Fiber request handlers.
BasicAuth - Basic auth middleware provides an HTTP basic authentication. It calls the next handler for valid credentials and 401 Unauthorized for missing or invalid credentials.
Encrypt Cookie - Encrypt middleware which encrypts cookie values.
EnvVar - Expose environment variables with providing an optional config.
ETag - ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed.
Expvar - Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format.
Favicon - Ignore favicon from logs or serve from memory if a file path is provided.
FileSystem - FileSystem middleware for Fiber, special thanks and credits to Alireza Salary.
Helmet - Helps secure your apps by setting various HTTP headers.
Idempotency - Idempotency middleware for Fiber allows for fault-tolerant APIs where duplicate requests.
Keyauth - Key auth middleware provides a key based authentication.
Limiter - Rate-limiting middleware. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
Rewrite - 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.
Idan-Fishman/fiber-bind - Request schema validator middleware that validates sources such as the request body, query string parameters, route parameters and even form files.
rodrigoodhin/fiper - FiPer is a library that provides Fiber with Role Based Access Control (RBAC) using JWT and with database persistence using two ORM libraries are supported: Gorm and Bun.
zeiss/fiber-goth - Simple middleware to integrate authentication to your Fiber applications.
zeiss/fiber-authz - A middleware to secure routes in Fiber with a defined RBAC model.
GalvinGao/gofiber-template - A production-ready, container-first opinionated gofiber project template. Config by envvars, DI by go.uber.org/fx, Database by uptrace/bun, with out-of-the-box MVC folder structure and CI/CD support.
ingeniousambivert/fiber-bootstrapped - A toolkit for Go projects embracing a service-centric architecture, inspired by the principles of FeathersJS.
sebajax/go-vertical-slice-architecture - Vertical Slice Architecture code archetype using Fiber and Uber dig. A maintainable, and scalable code organization.