{"repo":"uptrace/bunrouter","free":true,"listed":false,"github":"https://github.com/uptrace/bunrouter","clone":"git clone https://github.com/uptrace/bunrouter.git","description":"Golang HTTP router","language":"Go","stars":782,"topics":["http-router","golang","go","router"],"license":"MIT","category":"analytics","readme_excerpt":"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][1] :x: :x: :x: :heavy check mark: [Chi][2] :heavy check mark: :x: :heavy check mark: :heavy check mark: [Echo][3] :heavy check mark: :heavy check mark: :x: :x: [Gin][4] :heavy che","default_branch":null,"files":null,"tree":[],"storefront":"/r/uptrace","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uptrace/bunrouter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}