• Stars
    star
    492
  • Rank 89,476 (Top 2 %)
  • Language
  • License
    Creative Commons ...
  • Created over 2 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

โœจ A curated list of awesome Fiber middlewares, boilerplates, recipes, articles and tools.

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.

Contents

โš™๏ธ 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 - 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.
  • Logger - HTTP request/response logger.
  • Monitor - Monitor middleware that reports server metrics, inspired by express-status-monitor.
  • Pprof - Pprof middleware that serves via its HTTP server runtime profiling data in the format expected by the pprof visualization tool.
  • Proxy - Allows you to proxy requests to a multiple servers.
  • Recover - Recover middleware recovers from panics anywhere in the stack chain and handles the control to the centralized ErrorHandler.
  • Redirect - Redirect middleware for Fiber.
  • RequestID - Adds a requestid to every request.
  • 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.
  • Session - Session middleware. NOTE: This middleware uses our Storage package.
  • Skip - Skip middleware that skips a wrapped handler is a predicate is true.
  • 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 - Casbin middleware for Fiber.
  • fiberi18n - go-i18n support for Fiber.
  • fibernewrelic - NewRelic middleware for Fiber. The middleware handles NewRelic insturmentation.
  • fibersentry - Sentry support for Fiber.
  • fiberzap - Zap logging support for Fiber.
  • jwt - JWT returns a JSON Web Token (JWT) auth middleware.
  • opafiber - Open Policy Agent middleware for Fiber. The middleware handles running Rego policies.
  • otelfiber - OpenTelemetry support for Fiber.
  • paseto - PASETO returns a Web Token (PASETO) auth middleware.
  • swagger - Swagger middleware for Fiber. The middleware handles Swagger UI.
  • websocket - Based on Fasthttp WebSocket for Fiber with Locals support!

๐ŸŒฑ 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.

  • go-dawn/dawn - Dawn is an opinionated web framework that provides rapid development capabilities which on top of Fiber.
  • tompston/gomakeme - Generate boilerplate + endpoints for Fiber or Gin REST APIs.
  • ryanbekhen/feserve - Feserve is a lightweight application or docker image to serve frontend and load balancer applications.

๐Ÿ“– 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

More Repositories

1

fiber

โšก๏ธ Express inspired web framework written in Go
Go
32,846
star
2

recipes

๐Ÿ“ Examples for ๐Ÿš€ Fiber
Go
3,042
star
3

boilerplate

๐Ÿšง Boilerplate for ๐Ÿš€ Fiber
Go
398
star
4

jwt

โš ๏ธ Deprecated repository, available within Fiber Contrib.
Go
396
star
5

swagger

๐Ÿงฌ fiber middleware to automatically generate RESTful API documentation with Swagger
Go
384
star
6

websocket

โš ๏ธ Deprecated repository, available within Fiber Contrib.
Go
290
star
7

storage

๐Ÿ“ฆ Premade storage drivers for ๐Ÿš€ Fiber
Go
261
star
8

template

๐Ÿงฌ Template engine middleware for Fiber
Go
258
star
9

docs

๐Ÿ“š Documentation for ๐Ÿš€ Fiber
JavaScript
211
star
10

contrib

๐Ÿงฌ Repository for third party middlewares with dependencies
Go
205
star
11

adaptor

๐Ÿงฌ Adaptor middleware to convert net/http handlers from/to Fiber request handlers
Go
182
star
12

cli

Fiber Command Line Interface
Go
85
star
13

helmet

๐Ÿงฌ Helmet middleware for Fiber
Go
80
star
14

keyauth

๐Ÿงฌ Key Authentication for Fiber
Go
77
star
15

utils

โšก A collection of common functions but with better performance, less allocations and less dependencies created for Fiber.
Go
44
star
16

session

โš  Deprecated, available within Fiber v2
Go
24
star
17

basicauth

โš  Deprecated, available within Fiber v2
Go
17
star
18

redirect

๐Ÿงฌ Redirect middleware for Fiber
Go
15
star
19

website

๐ŸŒˆ The website of the ๐Ÿš€ Fiber framework
TypeScript
14
star
20

cors

โš  Deprecated, available within Fiber v2
Go
14
star
21

rewrite

๐Ÿงฌ Rewrite middleware for Fiber
Go
12
star
22

embed

โš  Deprecated, available within Fiber v2
Go
11
star
23

limiter

โš  Deprecated, available within Fiber v2
Go
10
star
24

proxy

โš  Deprecated, available within Fiber v2
Go
8
star
25

logger

โš  Deprecated, available within Fiber v2
Go
7
star
26

csrf

โš  Deprecated, available within Fiber v2
Go
5
star
27

pprof

โš  Deprecated, available within Fiber v2
Go
5
star
28

recover

โš  Deprecated, available within Fiber v2
Go
2
star
29

compression

โš  Deprecated, available within Fiber v2
Go
1
star