# gorilla/mux

Package gorilla/mux is a powerful HTTP router and URL matcher for building Go web servers with 🦍

Repository: https://github.com/gorilla/mux
Canonical: https://ross.abutalabs.com/products/mux
Homepage: https://gorilla.github.io
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: mux, go, gorilla, router, http, middleware, golang, gorilla-web-toolkit
Last push: 2024-08-15T03:10:55+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5083, "days_push": 748, "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 21838, forks 1892 (observed 2026-08-28T04:11:32.126941+00:00)

## What it is
gorilla/mux is a powerful HTTP request router and URL matcher for Go web servers, implementing the standard http.Handler interface. It supports path variables with regex patterns, host/scheme/header/query matching, subrouters, middleware, and reverse URL building.

## Use cases
- route http requests to handlers in a go web server
- match urls with path variables and regex patterns
- build rest apis with nested subrouters in go
- add middleware like cors or logging to go routes
- reverse-generate urls from registered routes
- serve single page applications from a go backend

## When to choose
- you need flexible route matching beyond Go's standard http.ServeMux
- you want path variables, host matching, or custom matchers
- you need subrouters to group routes with shared conditions
- you want a mature, widely-adopted Go router compatible with net/http

## When to avoid
- you only need simple path-based routing that http.ServeMux already covers
- you want a batteries-included web framework rather than just a router
- you need HTTP/2 routing features or strict net/http mux compatibility in newer Go versions

## Facets
- artifact type: library
- maturity: stable
- function: routing, middleware, http-server
- domain: web-development, backend, apis
- platform: go, cross-platform
- tags: http-router, url-matcher, gorilla-web-toolkit, rest-api

## Member repositories
- gorilla/mux (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:32.126941+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:57:47.110818+00:00, confidence not recorded.
  - readme: https://github.com/gorilla/mux (fetched 2026-08-28T04:11:32.126941+00:00, sha 2907bf28d7b9)
  - homepage: https://gorilla.github.io (fetched 2026-08-29T07:56:08.513215+00:00, sha aa93940b2bb1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
