ποΈ 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 or a custom response for missing or invalid credentials.
ποΈ 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.
ποΈ 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 aborts handlers that run too long. It wraps them with