github.com/julienschmidt/httprouter

httprouter

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

80

Decision Signals

Health score 80/100, confidence 100/100.

Strong
Maintenance 38
Adoption 100
Security 92
Maturity 100
Developer DX 97
Confidence 100

Install

go get github.com/julienschmidt/httprouter

Package Data

updated Jun 11, 2026
Latest versionv1.3.0
Imported by27.4K packages
Stars17.1K
Forks1.5K
Last activity1 years ago
Latest releasev1.3.0 (6 years ago)
LicenseBSD-3-Clause
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 jwtauth

JWT authentication middleware for Go HTTP services

Go HTTP Routers 641 stars 697 imported-by 95% confidence
95

#2 Chi

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

Go HTTP Routers 22.3K stars 0 imported-by 45% confidence
88

Similar Packages

Go HTTP Routers

#1 jwtauth

JWT authentication middleware for Go HTTP services

Go HTTP Routers 641 stars 697 imported-by 95% confidence
95

#2 Chi

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

Go HTTP Routers 22.3K stars 0 imported-by 45% confidence
88

#3 Gorilla Mux

Package mux implements a request router and dispatcher.

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

#4 bunrouter

Golang HTTP router

Go HTTP Routers 780 stars 141 imported-by 60% confidence
75

#5 lars

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

Go HTTP Routers 384 stars 66 imported-by 100% confidence
67