Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bunrouter

> 编程语言
Open source

Golang HTTP router

783 stars0 likes2 views
WebsiteGitHub

About

Golang HTTP router

Fast and flexible HTTP router for Go

BunRouter is brought to you by :star: uptrace/uptrace. Uptrace is an open-source APM tool that supports distributed tracing, metrics, and logs. You can use it to monitor applications and set up automatic alerts to receive notifications via email, Slack, Telegram, and others. Star it as well!

TLDR BunRouter is as fast as httprouter, but supports middlewares, routing rules priority, and error handling.

BunRouter is an extremely fast HTTP router for Go with unique combination of features:

  • Middlewares allow to extract common operations from HTTP handlers into reusable functions.
  • Error handling allows to further reduce the size of HTTP handlers by handling errors in middlewares.
  • Routes priority enables meaningful matching priority for routing rules: first static nodes, then named nodes, lastly wildcard nodes.
  • net/http compatible API which means using minimal API without constructing huge wrappers that try to do everything: from serving static files to XML generation (for example, gin.Context or echo.Context).
Router Middlewares Error handling Routes priority net/http API
BunRouter :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
httprouter :x: :x: :x: :heavy_check_mark:
Chi :heavy_check_mark: :x: :heavy_check_mark: :heavy_check_mark:
Echo :heavy_check_mark: :heavy_check_mark: :x: :x:
Gin :heavy_check_mark: :heavy_check_mark: :x: :x:

Learn:

  • Documentation
  • Reference

Examples:

  • Basic example
  • http.HandlerFunc example
  • httprouter.Handle example
  • CORS example
  • Basic auth example

Projects using BunRouter:

  • Distributed tracing tool
  • input-output-hk/cicero
  • RealWorld example application

Benchmarks:

  • web-frameworks-benchmark

  • go-http-routing-benchmark

    Benchmark results

…

Quickstart

Install:

bash
go get github.com/uptrace/bunrouter

Run the example:

…

See the Golang Router documentation for details.

See also

  • Golang ORM
  • Golang msgpack
  • Golang message task queue
  • Distributed tracing tools

Issues· 19 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gogogolanghttp-routerrouter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言