# urfave/negroni

Idiomatic HTTP Middleware for Golang

Repository: https://github.com/urfave/negroni
Canonical: https://ross.abutalabs.com/products/negroni
Language: Go
License: MIT
License Family: permissive
Last push: 2026-07-26T00:36:14+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 8, longevity 100
- inputs: {"age_days": 4490, "days_push": 39, "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 7527, forks 574 (observed 2026-08-28T04:10:00.498706+00:00)

## What it is
Negroni is a tiny, idiomatic HTTP middleware library for Go that works directly with net/http handlers. It is not a framework; it lets you compose middleware chains while bringing your own router.

## Use cases
- add middleware to a go net/http server
- compose logging and recovery middleware in go
- chain http handlers in golang
- use a custom router with middleware in go
- lightweight alternative to full go web frameworks

## When to choose
- you want minimal, non-intrusive middleware for net/http
- you prefer bringing your own router (BYOR)
- you find full frameworks like Martini too magical

## When to avoid
- you need a full web framework with routing and templating built in
- you want a batteries-included middleware ecosystem
- starting a new project where stdlib net/http middleware chains may suffice

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

## Member repositories
- urfave/negroni (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:00.498706+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:37:27.800610+00:00, confidence not recorded.
  - readme: https://github.com/urfave/negroni (fetched 2026-08-28T04:10:00.498706+00:00, sha 0ab5c2abfe1b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
