# julienschmidt/httprouter

A high performance HTTP request router that scales well

Repository: https://github.com/julienschmidt/httprouter
Canonical: https://ross.abutalabs.com/products/httprouter
Homepage: https://pkg.go.dev/github.com/julienschmidt/httprouter
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: go, router, http, mux, httprouter, golang
Last push: 2024-07-22T10:31:53+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4654, "days_push": 772, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17126, forks 1464 (observed 2026-08-28T04:11:17.716057+00:00)

## What it is
HttpRouter is a lightweight, high-performance HTTP request router (mux) for Go that supports path variables and method matching using a compressing radix tree. It is optimized for speed and low memory footprint, with zero-garbage matching and automatic path correction.

## Use cases
- route http requests in a go web service
- handle url path parameters in go
- replace net/http servemux with a faster router
- build a high performance rest api in go
- redirect trailing slashes and fix url paths automatically
- route large numbers of endpoints efficiently

## When to choose
- you need a fast, minimal router with path parameters in Go
- you want zero-allocation request dispatching for latency-sensitive services
- you have many routes or long paths and need efficient matching

## When to avoid
- you need a full web framework with middleware, templating, or validation built in
- you want wildcard or regex-based route matching with flexible priority rules
- you prefer the standard library's http.ServeMux for maximal compatibility

## Facets
- artifact type: library
- maturity: stable
- function: routing, http-server, middleware
- domain: web-development, backend, apis, performance
- platform: go, windows, cross-platform
- tags: http-router, mux, radix-tree, zero-allocation, path-parameters, linux, macos

## Member repositories
- julienschmidt/httprouter (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:17.716057+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-29T17:03:29.898303+00:00, confidence not recorded.
  - readme: https://github.com/julienschmidt/httprouter (fetched 2026-08-28T04:11:17.716057+00:00, sha f0814e6516e3)
  - homepage: https://pkg.go.dev/github.com/julienschmidt/httprouter (fetched 2026-08-29T08:01:30.969030+00:00, sha 6ecfcec1a5ca)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T08:01:30.973092+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T08:01:30.975885+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
