github.com/go-chi/chi/v5

Chi

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

92

Decision Signals

Health score 92/100, confidence 90/100.

Excellent
Maintenance 95
Adoption 100
Security 70
Maturity 100
Developer DX 97
Confidence 90

Install

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

Package Data

updated May 31, 2026
Latest versionv5.3.0
Imported by17.3K packages
Stars22.3K
Forks1.1K
Last activity8 days ago
Latest releasev5.3.0 (8 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 Gorilla Mux

Package mux implements a request router and dispatcher.

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

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

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

#4 httprouter

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

Go HTTP Routers 0 stars 27.4K imported-by 80% confidence
61

#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