# gocraft/web

Go Router + Middleware. Your Contexts.

Repository: https://github.com/gocraft/web
Canonical: https://ross.abutalabs.com/products/gocraft-web
Language: Go
License: MIT
License Family: permissive
Last push: 2020-10-01T09:54:18+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": 4673, "days_push": 2162, "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 1524, forks 117 (observed 2026-08-28T04:04:58.249412+00:00)

## What it is
gocraft/web is a fast Go router and middleware package built on net/http, featuring statically typed custom contexts passed between middleware and handlers. It offers tree-based O(log N) routing, path variables with regex validation, and nested routers with per-section contexts.

## Use cases
- build a rest api in go with typed middleware
- route http requests with path variables in go
- share state between middleware and handlers in go
- create nested routers for api and admin sections
- write a fast low-latency go web server

## When to choose
- you want statically typed contexts across middleware in Go
- you need high-performance routing with many routes
- you prefer a minimal library that embraces net/http

## When to avoid
- you want a batteries-included full-stack framework
- you need a library with frequent recent updates
- you prefer the standard library's newer routing features in Go 1.22+

## Facets
- artifact type: library
- maturity: maintenance
- function: web-framework, middleware, routing, http-server
- domain: web-development, backend, apis
- platform: go, windows, cross-platform
- tags: mux, typed-context, net-http, router, linux, macos

## Member repositories
- gocraft/web (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:58.249412+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-30T04:31:42.705138+00:00, confidence not recorded.
  - readme: https://github.com/gocraft/web (fetched 2026-08-28T04:04:58.249412+00:00, sha d824e22acc36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
