talira

Express inspired web framework written in Go

open sourceMITfree

Fiber is a Go web framework modelled on Express and built on top of Fasthttp, designed for fast development with zero memory allocation and performance in mind. It has routing, static files, middleware, template engines, WebSocket, Socket.io and Server-Sent Events support and a rate limiter, and its router accepts existing net/http handlers too. A Fiber CLI migrates projects from v2 to v3.

Problems it solves

  • a Go web framework that feels like Express
  • build a fast HTTP API in Go with low memory use
  • move from Node.js and Express to Go without a steep learning curve

Features

  • Express-style routing and middleware
  • built on Fasthttp
  • static files and template engines
  • WebSocket, Socket.io and Server-Sent Events
  • rate limiter
  • accepts net/http handlers

Limitations

  • Fiber uses unsafe, so it may not always be compatible with the latest Go version; v3 needs Go 1.26 or newer.1

Alternatives

The same job

These do what Fiber does.

  1. Gin The fastest full-featured HTTP web framework for Go
  2. GoFrame Modular Go application framework: HTTP server, ORM, config, logging, caching and microservice governance, with a gf CLI
  3. go-zero A cloud-native Go microservices framework with a code generation CLI

Compare Fiber with the top 3