Skip to main content

An Express-inspired web framework
written in Go.

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"))
}
β†’
http://localhost:3000
Hello, World!

Fiber in Action

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("*"))
})

Extreme Performance

Since Fiber is built on top of Fasthttp, your apps will enjoy unmatching performance! Don't believe us? Here's a benchmark that proves how Fiber shines compared to other frameworks:

Benchmark graph

Ready to ship something fast?

Start with one file, add middleware as you grow, and deploy a single binary.

Official Sponsors

Fiber is supported by these organisations. Want to join them? Become a sponsor on GitHub.

Help & Support

Join our community on Discord: ask questions, share, help others.

Media

πŸ“– Go Fiber by Examples: Working with middlewares and boilerplates
Vic ShΓ³stak β€’ september 13, 2021 β€’ dev.to
πŸ“– Go Fiber by Examples: Testing the application
Vic ShΓ³stak β€’ august 30, 2021 β€’ dev.to
πŸ“– Go Fiber by Examples: Delving into built-in functions
Vic ShΓ³stak β€’ august 24, 2021 β€’ dev.to
πŸ“– Go Fiber by Examples: How can the Fiber Web Framework be useful?
Vic ShΓ³stak β€’ august 16, 2021 β€’ dev.to
πŸ“– Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers
Vic ShΓ³stak β€’ march 22, 2021 β€’ dev.to
Getting started with Fiber ⚑
Fenny πŸ”₯ β€’ june 10, 2020 β€’ dev.to
Building an Express-style API in Go with Fiber
Alexander Nnakwue β€’ june 10, 2020 β€’ logrocket.com
Fiber v1.9.6 πŸ”₯ How to improve performance by 817% and stay fast, flexible and friendly?
Vic ShΓ³stak β€’ May 12, 2020 β€’ dev.to
🌎 Create a travel list app with Go, Fiber, Angular, MongoDB and Google Cloud Secret Manager
Wei Lun β€’ April 25, 2020 β€’ yongweilun.me
Building a Basic REST API in Go using Fiber
Elliot Forbes β€’ April 23, 2020 β€’ tutorialedge.net
Creating Fast APIs In Go Using Fiber
JΓ³zsef Sallai β€’ April 7, 2020 β€’ dev.to
Is switching from Express to Fiber worth it? πŸ€”
Vic ShΓ³stak β€’ April 1, 2020 β€’ dev.to
πŸš€ Fiber v1.8. What's new, updated and re-thinked?
Vic ShΓ³stak β€’ March 3, 2020 β€’ dev.to
Fiber released v1.7! πŸŽ‰ What's new and is it still fast, flexible and friendly?
Vic ShΓ³stak β€’ February 21, 2020 β€’ dev.to
Welcome to Fiber β€” an Express.js styled web framework written in Go with ❀️
Vic ShΓ³stak β€’ February 3, 2020 β€’ dev.to