github.com/julienschmidt/httprouter

httprouter

Package httprouter is a trie based high performance HTTP request router.

61

Decision Signals

Health score 61/100, confidence 80/100.

Review
Maintenance 15
Adoption 82
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/julienschmidt/httprouter

Package Data

updated May 31, 2026
Latest versionv1.3.0
Imported by27.4K packages
Stars0
Forks0
Last activity6 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

32 symbols
SymbolKindSynopsis
Handle Type type Handle func(http.ResponseWriter, *http.Request, Params)
Param Type type Param struct{ ... }
Param.Key Field Key string
Param.Value Field Value string
Params Type type Params []Param
Params.ByName Method func (ps Params) ByName(name string) string
ParamsFromContext Function func ParamsFromContext(ctx context.Context) Params
Router Type type Router struct{ ... }
New Function func New() *Router
Router.DELETE Method func (r *Router) DELETE(path string, handle Handle)
Router.GET Method func (r *Router) GET(path string, handle Handle)
Router.GlobalOPTIONS Field GlobalOPTIONS http.Handler

Maintained Alternatives

limited recent repository activity

#1 Chi

Package chi is a small, idiomatic and composable router for building HTTP services.

Go HTTP Routers 22.3K stars 17.3K imported-by 90% confidence
92

#2 Gorilla Mux

Package mux implements a request router and dispatcher.

Go HTTP Routers 21.8K stars 99.5K imported-by 100% confidence
80

#3 ngamux

Package ngamux is simple HTTP router for Go that compatible with net/http, the standard library to serve HTTP.

Go HTTP Routers 0 stars 31 imported-by 80% confidence
67

#4 v5

Package ship has implemented a flexible, powerful, high performance and minimalist Go Web HTTP router framework, which is inspired by echo and httprouter.

Go HTTP Routers 0 stars 51 imported-by 75% confidence
62

Similar Packages

Go HTTP Routers

#1 Chi

Package chi is a small, idiomatic and composable router for building HTTP services.

Go HTTP Routers 22.3K stars 17.3K imported-by 90% confidence
92

#2 Gorilla Mux

Package mux implements a request router and dispatcher.

Go HTTP Routers 21.8K stars 99.5K imported-by 100% confidence
80

#3 ngamux

Package ngamux is simple HTTP router for Go that compatible with net/http, the standard library to serve HTTP.

Go HTTP Routers 0 stars 31 imported-by 80% confidence
67

#4 v5

Package ship has implemented a flexible, powerful, high performance and minimalist Go Web HTTP router framework, which is inspired by echo and httprouter.

Go HTTP Routers 0 stars 51 imported-by 75% confidence
62

#5 lars

Package lars - Library Access/Retrieval System, is a fast radix-tree based, zero allocation, HTTP router for Go.

Go HTTP Routers 0 stars 66 imported-by 80% confidence
49