Fiber is a Go web framework built on top of Fasthttp, the fastest HTTP engine for Go. It's designed to ease development with performance in mind.
package main
import (
"log"
"github.com/gofiber/fiber/v3"
)
func main() {
app := fiber.New()
app.Get("/", func (c fiber.Ctx) error {
return c.SendString("Hello, World!")
})
log.Fatal(app.Listen(":3000"))
}
Hello, World!
How Fiber applications are built: pick a topic, read the code.
Routes are declared Express-style with a method, a path, and a handler. Dynamic segments like :name are captured and read through c.Params, and wildcards like * match everything below a prefix. Routing guide β
app.Get("/", func(c fiber.Ctx) error {
return c.SendString("Hello, World!")
})
app.Get("/user/:name", func(c fiber.Ctx) error {
return c.SendString("Hello, " + c.Params("name"))
})
app.Get("/files/*", func(c fiber.Ctx) error {
return c.SendString("Path: " + c.Params("*"))
})

The framework
Everyday capabilities that ship with the framework itself. No extra packages, nothing else to install.
Start with one file, add middleware as you grow, and deploy a single binary.
Beyond the core
Complete catalogs of official building blocks: middleware, storage drivers, template engines, and contrib integrations, all maintained by the Fiber team.
The deepest catalog in the box: authentication, caching, compression, rate limiting, security headers, sessions, and more, each one app.Use away.
One unified interface for every major database and key-value store. Plug them into sessions, caching, or rate limiting without changing your code.
Server-side rendering with the syntax you already know. One official package, one interface, your choice of engine.
Officially maintained integrations with the wider ecosystem: tracing, logging, authentication, API documentation, and real-time communication.
Fiber is supported by these organisations. Want to join them? Become a sponsor on GitHub.
Join our community on Discord: ask questions, share, help others.