๐๏ธ Adaptor
The adaptor package converts between Fiber and net/http, letting you reuse handlers, middleware, and requests across both frameworks.
๐๏ธ BasicAuth
Basic Authentication middleware for Fiber that provides HTTP basic auth. It calls the next handler for valid credentials and returns 401 Unauthorized for missing or invalid credentials, 400 Bad Request for malformed Authorization headers, or 431 Request Header Fields Too Large when the header exceeds size limits. Credentials may omit Base64 padding as permitted by RFC 7235's token68 syntax.
๐๏ธ Cache
Cache middleware for Fiber that intercepts responses and stores the body, Content-Type, and status code under a key derived from the request path and method. Special thanks to @codemicro for contributing this middleware to Fiber core.
๐๏ธ Compress
Compression middleware for Fiber that automatically compresses responses with gzip, deflate, brotli, or zstd based on the client's Accept-Encoding header.
๐๏ธ CORS
CORS (Cross-Origin Resource Sharing) middleware for Fiber lets servers control who can access resources and how. It isn't a security feature; it merely relaxes the browser's same-origin policy so cross-origin requests can succeed. Learn more on MDN.
๐๏ธ CSRF
The CSRF middleware protects against Cross-Site Request Forgery attacks by validating tokens on unsafe HTTP methods such as POST, PUT, and DELETE. It responds with 403 Forbidden when validation fails.
๐๏ธ EarlyData
The Early Data middleware adds TLS 1.3 "0-RTT" support to Fiber. When the client and server share a PSK, TLS 1.3 lets the client send data with the first flight and skip the initial round trip.
๐๏ธ Encrypt Cookie
The Encrypt Cookie middleware for Fiber encrypts cookie values for secure storage.
๐๏ธ EnvVar
EnvVar middleware for Fiber exposes environment variables with configurable options.
๐๏ธ ETag
ETag middleware for Fiber that helps caches validate responses and saves bandwidth by avoiding full retransmits when content is unchanged.
๐๏ธ ExpVar
The ExpVar middleware exposes runtime variables over HTTP in JSON. Using it (e.g., app.Use(expvarmw.New())) registers handlers on /debug/vars.
๐๏ธ Favicon
Favicon middleware for Fiber that drops repeated /favicon.ico requests or serves a cached icon from memory. Mount it before your logger to suppress noisy requests and avoid disk reads.
๐๏ธ Health Check
Middleware that adds liveness, readiness, and startup probes to Fiber apps. It provides a generic handler you can mount on any route, with constants for the conventional /livez, /readyz, and /startupz endpoints.
๐๏ธ Helmet
Helmet secures your app by adding common security headers.
๐๏ธ Idempotency
The Idempotency middleware helps build fault-tolerant APIs. Duplicate requestsโsuch as retries after network issuesโwon't trigger the same action twice on the server.
๐๏ธ KeyAuth
The KeyAuth middleware implements API key authentication.
๐๏ธ Limiter
The Limiter middleware for Fiber throttles repeated requests to public APIs or endpoints such as password resets. It's also useful for API clients, web crawlers, or other tasks that need rate limiting.
๐๏ธ Logger
Logger middleware for Fiber that logs HTTP requests and responses.
๐๏ธ Pprof
Pprof middleware exposes runtime profiling data for analysis with the Go pprof tool. Importing it registers handlers under /debug/pprof/.
๐๏ธ Proxy
The Proxy middleware forwards requests to one or more upstream servers.
๐๏ธ Recover
The Recover middleware for Fiber intercepts panics and forwards them to the central ErrorHandler.
๐๏ธ Redirect
Redirect middleware maps old URLs to new ones using simple rules.
๐๏ธ RequestID
The RequestID middleware generates or propagates a request identifier, adding it to the response headers and request context.
๐๏ธ ResponseTime
Response time middleware for Fiber that measures the time spent handling a request and exposes it via a response header.
๐๏ธ Rewrite
The Rewrite middleware remaps the request path using custom rules, helping with backward compatibility and cleaner URLs.
๐๏ธ Session
The Session middleware adds session management to Fiber apps through the Storage package, which offers a unified interface for multiple databases. By default, sessions live in memory, but you can plug in any storage backend.
๐๏ธ Skip
The Skip middleware wraps a handler and bypasses it when the predicate returns true for the current request.
๐๏ธ Static
The Static middleware serves assets such as images, CSS, and JavaScript.
๐๏ธ Timeout
The timeout middleware enforces a deadline on handler execution. It wraps handlers with