Skip to content

Fiber

Awesome Fiber Awesome

Fiber Logo

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.

⚙️ Middlewares

Where to discover Fiber middlewares.

🧬 Core

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.
  • Cache - Intercept and cache responses.
  • Compress - Compression middleware for Fiber, it supports deflate, gzip and brotli by default.
  • CORS - Enable cross-origin resource sharing (CORS) with various options.
  • CSRF - Protect from CSRF exploits.
  • Earlydata - Early data support for Fiber.
  • Encrypt Cookie - Encrypt middleware which encrypts cookie values.
  • EnvVar - Expose environment variables with providing an optional config.
  • ETag - 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 - Serves runtime exposed variants in JSON format via its HTTP server.
  • Favicon - Ignore favicon from logs or serve from memory if a file path is provided.
  • Healthcheck - Adds health-check endpoints for readiness and liveness probes.
  • Helmet - Helps secure your apps by setting various HTTP headers.
  • Idempotency - Enables fault-tolerant APIs when duplicate requests occur.
  • 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.
  • Logger - HTTP request/response logger.
  • Pprof - Serves runtime profiling data in the format expected by the pprof visualization tool.
  • Proxy - Allows you to proxy requests to a multiple servers.
  • Recover - Recovers from panics anywhere in the stack chain and hands control to the centralized ErrorHandler.
  • Redirect - Handles HTTP redirects in Fiber.
  • RequestID - Adds a requestid to every request.
  • Responsetime - Adds an X-Response-Time header to responses.
  • Rewrite - Rewrites the URL path based on provided rules for backward compatibility or cleaner links.
  • Session - Provides session management. NOTE: This middleware uses our Storage package.
  • Skip - Skips a wrapped handler when a predicate is true.
  • Static - Serves static files from a local or custom file system.
  • Timeout - 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 - Premade storage drivers that implement the Storage interface, designed to be used with various Fiber middlewares.
  • template - 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 - Authorization middleware for Fiber powered by Casbin.
  • circuitbreaker - Circuit breaker middleware for Fiber.
  • fgprof - Fiber profiling support via fgprof.
  • hcaptcha - Bot-protection middleware using hCaptcha.
  • i18n - Internationalization middleware built on go-i18n.
  • jwt - JSON Web Token (JWT) auth middleware.
  • loadshed - Load-shedding middleware to protect Fiber services under pressure.
  • monitor - Server metrics monitor middleware for Fiber.
  • newrelic - New Relic instrumentation support for Fiber.
  • opa - Open Policy Agent (OPA) middleware support for Fiber.
  • otel - OpenTelemetry middleware support for Fiber.
  • paseto - Platform-Agnostic Security Tokens (PASETO) auth middleware.
  • sentry - Error monitoring and reporting integration for Fiber with Sentry.
  • socketio - Socket.IO-inspired WebSocket wrapper middleware for Fiber.
  • swaggo - Middleware for serving Swag-generated API docs in Fiber.
  • swaggerui - Swagger UI middleware for serving OpenAPI specs in Fiber.
  • testcontainers - Service implementation for integrating Testcontainers with Fiber.
  • WebSocket - Fasthttp-based WebSocket integration for Fiber with fiber.Ctx support.
  • zap - Logging middleware support for Fiber with Zap.
  • zerolog - Logging middleware support for Fiber with Zerolog.

🌱 Third Party

List of middlewares that are created by the Fiber community.

🚧 Boilerplates

Premade boilerplates for Fiber.

📁 Recipes

Recipes for Fiber.

🛠️ Tools

Several tools to make Fiber usage easier.

📖 Articles

Articles about Fiber written by the community.

📺 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 - This benchmark suite aims to compare the performance of Go web frameworks.

👍 Contributing

Contribution guidelines can be found on CONTRIBUTING.md