# go-chi/chi

lightweight, idiomatic and composable router for building Go HTTP services

Repository: https://github.com/go-chi/chi
Canonical: https://ross.abutalabs.com/products/chi
Homepage: https://go-chi.io
Language: Go
License: MIT
License Family: permissive
Topics: http, router, context, middleware, api, rest-api, microservices, golang, go
Last push: 2026-08-20T12:03:54+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 86, longevity 100
- inputs: {"age_days": 3975, "days_push": 13, "days_rel": 13, "gap_med": 58.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 22737, forks 1147 (observed 2026-08-28T04:11:33.957400+00:00)

## What it is
chi is a lightweight, idiomatic HTTP router for Go that is 100% compatible with net/http and built around the context package. It supports composable middleware, route groups, and sub-router mounting, making it well suited for large REST API services.

## Use cases
- build a REST API in Go
- route HTTP requests with middleware in Go
- replace gorilla/mux with a maintained stdlib-compatible router
- structure a large Go microservice with sub-routers
- generate route documentation from Go source
- add request timeouts and logging middleware to Go HTTP services

## When to choose
- you want a fast, minimal router with zero external dependencies
- you need full net/http compatibility to reuse ecosystem middleware
- you are building large, maintainable REST APIs in Go

## When to avoid
- you need a full web framework with templating, ORM, or validation built in
- you prefer a batteries-included framework like Gin or Echo
- you need GraphQL or gRPC routing rather than REST

## Facets
- artifact type: library
- maturity: stable
- function: routing, middleware, http-server, api-framework
- domain: web-development, backend, apis, microservices
- platform: go, windows, cross-platform
- tags: http-router, rest-api, net-http, stdlib-compatible, zero-dependencies, linux, macos

## Member repositories
- go-chi/chi (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:33.957400+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:56:56.225860+00:00, confidence not recorded.
  - readme: https://github.com/go-chi/chi (fetched 2026-08-28T04:11:33.957400+00:00, sha cc44af23b21e)
  - homepage: https://go-chi.io (fetched 2026-08-29T07:54:59.858663+00:00, sha cc0677eb431e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
