github.com/go-chi/chi/v5

Chi

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

97

Decision Signals

Health score 97/100, confidence 100/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 100
Developer DX 97
Confidence 100

Install

go get github.com/go-chi/chi/v5

Package Data

updated May 28, 2026
Latest versionv5.3.0
Imported by17.3K packages
Stars22.2K
Forks1.1K
Last activity5 days ago
Latest releasev5.3.0 (5 days ago)
LicenseMIT
Known vuln records0

API Surface

89 symbols
SymbolKindSynopsis
ChainHandler Type type ChainHandler struct{ ... }
ChainHandler.Endpoint Field Endpoint http.Handler
ChainHandler.Middlewares Field Middlewares Middlewares
ChainHandler.ServeHTTP Method func (c *ChainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Context Type type Context struct{ ... }
Context.Reset Method func (x *Context) Reset()
Context.RouteMethod Field RouteMethod string
Context.RoutePath Field RoutePath string
Context.RoutePattern Method func (x *Context) RoutePattern() string
Context.RoutePatterns Field RoutePatterns []string
Context.Routes Field Routes Routes
Context.URLParam Method func (x *Context) URLParam(key string) string

Similar Packages

Go HTTP Routers

#1 lura

Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation

Go HTTP Routers 6.8K stars 0 imported-by 100% confidence
93

#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 httprouter

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

Go HTTP Routers 17.1K stars 27.4K imported-by 100% confidence
80

#4 bunrouter

Golang HTTP router

Go HTTP Routers 781 stars 141 imported-by 95% confidence
78

#5 rux

Package rux is a simple and fast request router for golang HTTP applications.

Go HTTP Routers 0 stars 17 imported-by 80% confidence
62