Awesome Fiber Overview
✨ A curated list of awesome Fiber middlewares, boilerplates, recipes, articles and tools.
🏠 Home · 🔥 Feed · 📮 Subscribe · ❤️ Sponsor · 😺 gofiber/awesome-fiber · ⭐ 738 · 🏷️ Back-End Development
Awesome Fiber 
Fiber is an Express (⭐68k) inspired web framework built on top of Fasthttp (⭐23k), 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.
Contents
⚙️ Middlewares
Where to discover Fiber middlewares.
🧬 Core
List of middlewares that are included within the Fiber framework.
- Adaptor (⭐38k) - Converter for net/http handlers to/from Fiber request handlers.
- BasicAuth (⭐38k) - Basic auth middleware provides an HTTP basic authentication. It calls the next handler for valid credentials and 401 Unauthorized for missing or invalid credentials.
- Cache (⭐38k) - Intercept and cache responses.
- Compress (⭐38k) - Compression middleware for Fiber, it supports
deflate,gzipandbrotliby default. - CORS (⭐38k) - Enable cross-origin resource sharing (CORS) with various options.
- CSRF (⭐38k) - Protect from CSRF exploits.
- Earlydata (⭐38k) - Early data support for Fiber.
- Encrypt Cookie (⭐38k) - Encrypt middleware which encrypts cookie values.
- EnvVar (⭐38k) - Expose environment variables with providing an optional config.
- ETag (⭐38k) - 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 (⭐38k) - Serves runtime exposed variants in JSON format via its HTTP server.
- Favicon (⭐38k) - Ignore favicon from logs or serve from memory if a file path is provided.
- FileSystem (⭐38k) - Provides file system access for Fiber with special thanks and credits to Alireza Salary.
- Helmet (⭐38k) - Helps secure your apps by setting various HTTP headers.
- Idempotency (⭐38k) - Enables fault-tolerant APIs when duplicate requests occur.
- Keyauth (⭐38k) - Key auth middleware provides a key based authentication.
- Limiter (⭐38k) - Rate-limiting middleware. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
- Logger (⭐38k) - HTTP request/response logger.
- Monitor (⭐38k) - Reports server metrics, inspired by express-status-monitor.
- Pprof (⭐38k) - Serves runtime profiling data in the format expected by the pprof visualization tool.
- Proxy (⭐38k) - Allows you to proxy requests to a multiple servers.
- Recover (⭐38k) - Recovers from panics anywhere in the stack chain and hands control to the centralized ErrorHandler.
- Redirect (⭐38k) - Handles HTTP redirects in Fiber.
- RequestID (⭐38k) - Adds a requestid to every request.
- Rewrite (⭐38k) - Rewrites the URL path based on provided rules for backward compatibility or cleaner links.
- Session (⭐38k) - Provides session management. NOTE: This middleware uses our Storage package.
- Skip (⭐38k) - Skips a wrapped handler when a predicate is true.
- Timeout (⭐38k) - Adds a max time for a request and forwards to ErrorHandler if it is exceeded.
🔗 External
List of externally hosted middleware modules and maintained by the Fiber team.
- storage (⭐312) - Premade storage drivers that implement the Storage interface, designed to be used with various Fiber middlewares.
- template (⭐301) - This package contains 8 template engines that can be used with Fiber v1.10.x Go version 1.13 or higher is required.
💻 Contrib
List of third party middlewares and maintained by the Fiber team and community.
- casbin (⭐277) - Provides Casbin authorization middleware for Fiber.
- circuitbreaker (⭐277) - Circuit Breaker middleware for Fiber.
- fiberi18n (⭐277) - Middleware for i18n support in Fiber.
- fibernewrelic (⭐277) - NewRelic middleware for Fiber. The middleware handles NewRelic insturmentation.
- fibersentry (⭐277) - Sentry support for Fiber.
- fiberzap (⭐277) - Zap logging support for Fiber.
- jwt (⭐277) - Returns JSON Web Token (JWT) auth middleware.
- opafiber (⭐277) - Open Policy Agent middleware for Fiber. The middleware handles running Rego policies.
- otelfiber (⭐277) - OpenTelemetry support for Fiber.
- paseto (⭐277) - Returns Platform-Agnostic Security Token (PASETO) auth middleware.
- swagger (⭐277) - Serves Swagger UI middleware for Fiber.
- WebSocket (⭐277) - Based on Fasthttp WebSocket for Fiber with Locals support!
🌱 Third Party
List of middlewares that are created by the Fiber community.
- shareed2k/fiber_tracing (⭐12) - Middleware trace requests on Fiber framework with OpenTracing API.
- shareed2k/fiber_limiter (⭐14) - Limiter using Redis as store for rate limit with two algorithms for choosing sliding window, gcra leaky bucket.
- ansrivas/fiberprometheus (⭐203) - Prometheus middleware for gofiber.
- sacsand/gofiber-firebaseauth (⭐25) - Fiber Firebase Auth Middleware.
- aschenmaker/fiber-health-check (⭐10) - Health-check middleware support health-check for Fiber️ framework.
- elastic/apmfiber (⭐424) - APM Agent for Go Fiber.
- eozer/fiber_ldapauth (⭐4) - LDAP Authentication Middleware for Fiber.
- darkweak/souin (⭐892) - HTTP cache, RFC compliant, alternative to Varnish available as a middleware.
- witer33/fiberpow (⭐14) - Anti DDoS/Bot Middleware with a customizable Proof Of Work challenge.
- beyer-stefan/gofiber-minifier (⭐2) - Minifying middleware for HTML5, CSS3, and JavaScript.
- joffref/opa-middleware (⭐21) - Provides an OPA middleware integration for fiber.
- vladfr/fiber-servertiming (⭐2) - A middleware to add Server-Timing headers based on the W3C Server-Timing Spec.
- airbrake/gobrake (⭐106) - An Airbrake middleware that reports performance data (route stats).
- samber/slog-fiber (⭐88) - A logger middleware that uses Go slog library.
- mikhail-bigun/fiberlogrus (⭐10) - A logger middleware that uses logrus and its structured logging features.
- Idan-Fishman/fiber-bind (⭐14) - 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 (⭐5) - Simple middleware to integrate authentication to your Fiber applications.
- zeiss/fiber-authz (⭐7) - A middleware to secure routes in Fiber with a defined RBAC model.
- zeiss/fiber-htmx (⭐1) - A middleware for using HTMX in Fiber.
- jsorb84/ssefiber (⭐2) - A basic SSE Implementation for Fiber.
- streamerd/fibergun (⭐4) - A GunDB middleware for Fiber. Enables easy integration of GunDB, a decentralized database.
- apitally/apitally-go (⭐5) - Simple API monitoring tool for Fiber. Tracks API usage, errors, and performance, and includes request logging and alerting features.
- newrelic/go-agent (⭐813) - Official New Relic middleware for Fiber that manages instrumentation for New Relic monitoring.
- narmadaweb/limiter (⭐1) - A high-performance Redis-backed rate limiter middleware for Fiber, supporting fixed window, sliding window, and token bucket algorithms.
- narmadaweb/gonify (⭐1) - Fiber Minifying middleware for HTML5, CSS3, JavaScript, Json, XML and SVG.
- oaswrap/fiberopenapi (⭐78) - Fiber adapter for OpenAPI 3.x specification generation with automatic route documentation.
🚧 Boilerplates
Premade boilerplates for Fiber.
- gofiber/boilerplate (⭐490) - Official fiber boilerplate.
- fiber-boilerplate (⭐286) - A boilerplate for the Fiber web framework.
- sujit-baniya/fiber-boilerplate (⭐434) - Boilerplate on the top of fiber web framework with many middlewares and features.
- goravel/fiber (⭐25) - Laravel similar boilerplate with support for Fiber.
- create-go-app/fiber-go-template (⭐1.1k) - Fiber backend template for Create Go App CLI.
- efectn/fiber-boilerplate (⭐84) - Simple and scalable boilerplate to build powerful and organized REST projects with Fiber.
- embedmode/fiberseed (⭐40) - Fiber boilerplate api with many middlewares.
- GalvinGao/gofiber-template (⭐127) - 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.
- mikhail-bigun/go-app-template (⭐19) - Clean architecture Go application boilerplate with enriched Fiber implementation.
- felipeafonso/go-htmx-starter (⭐2) - A front-end opinionated boilerplate for Go + HTMX development, using Tailwind and Vite for Bundling and Hot Reloading.
- amrebada/go-modules (⭐16) - Nest JS like structure for Go Fiber.
- ingeniousambivert/fiber-bootstrapped (⭐2) - A toolkit for Go projects embracing a service-centric architecture, inspired by the principles of FeathersJS.
- sebajax/go-vertical-slice-architecture (⭐41) - Vertical Slice Architecture code archetype using Fiber and Uber dig. A maintainable, and scalable code organization.
- go-rat/fiber-skeleton (⭐3) - Fiber skeleton to powers web projects, support wire-based dependency injection.
📁 Recipes
Recipes for Fiber.
- gofiber/recipes (⭐3.4k) - Official Fiber cookbook.
- kiyonlin/fiblar-demo (⭐3) - Fiber v1 + angular demo.
- koddr/tutorial-go-fiber-rest-api (⭐394) - Tutorial for building a restful api with fiber.
- firebase007/go-rest-api-with-fiber (⭐58) - Demo project with fiber, logging, basicAuth and postgresql.
- chawk/go_fiber_quickstart (⭐18) - Fiber quick start example project.
- EricLau1/go-fiber-auth-api (⭐55) - Golang Authentication API with Fiber MongoDB and JWT.
- alpody/golang-fiber-realworld-example-app (⭐143) - Example real world backend API built with Fiber, Gorm, Swagger.
- paundraP/golang-starter-template (⭐6) - Golang REST API with authentication, authorization, and integrated payment gateway support.
🛠️ Tools
Several tools to make Fiber usage easier.
- go-dawn/dawn (⭐19) - Dawn is an opinionated web framework that provides rapid development capabilities which on top of Fiber.
- tompston/gomakeme (⭐10) - Generate boilerplate + endpoints for Fiber or Gin REST APIs.
- ryanbekhen/feserve (⭐8) - Feserve is a lightweight application or Docker image to serve frontend and load balancer applications.
- deepmap/oapi-codegen (⭐7.8k) - Generate Go client and server boilerplate from OpenAPI 3 specifications.
- Alibaba/opentelemetry-go-auto-instrumentation (⭐725) - A tool to monitor fiber application without changing any code with OpenTelemetry APIs.
📖 Articles
Articles about Fiber written by the community.
- Working with middlewares and boilerplates
- Testing the application
- Delving into built-in functions
- Go Fiber by Examples: How can the Fiber Web Framework be useful?
- Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers
- Getting started with Fiber
- Building an Express-style API in Go with Fiber
- Fiber v1.9.6 How to improve performance by 817% and stay fast, flexible and friendly?
- Create a travel list app with Go, Fiber, Angular, MongoDB and Google Cloud Secret Manager
- Building a Basic REST API in Go using Fiber
- Creating Fast APIs In Go Using Fiber
- Is switching from Express to Fiber worth it?
- Fiber v1.8. What's new, updated and re-thinked?
- Fiber released v1.7! What's new and is it still fast, flexible and friendly?
- Welcome to Fiber — an Express.js styled web framework written in Go with ❤️
- Blazing Fast Unit Tests - Fiber/fasthttp/http Internals
- Building Microservices in Go : Part 1 - Project Setup, Dockerization
- Building Microservices in Go : Part 2 - Live Reload
- Building Microservices in Go : Part 3 - Database, Models, Migrations
- Build a REST API from scratch with Go, Docker & PostgreSQL
- Build a fullstack app with Go Fiber, Docker, and PostgreSQL
- Create a CRUD app with Go Fiber, Docker, and PostgreSQL
📺 Videos
Video tutorials created by the community about Fiber.
🤖 Benchmarks
Several benchmarks to compare Fiber with other frameworks.
- TechEmpower - Project provides performance measures across a wide field of web application frameworks.
- web-frameworks-benchmark - Project aims to measure the differences between the various programming language frameworks.
- go-web-framework-benchmark (⭐2.1k) - This benchmark suite aims to compare the performance of Go web frameworks.
👍 Contributing
Contribution guidelines can be found on CONTRIBUTING.md (⭐738)