# rack/rack-contrib

Contributed Rack Middleware and Utilities

Repository: https://github.com/rack/rack-contrib
Canonical: https://ross.abutalabs.com/products/rack-contrib
Language: Ruby
License: NOASSERTION
License Family: other
Last push: 2024-11-15T20:30: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": 6462, "days_push": 656, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1255, forks 222 (observed 2026-08-28T04:04:08.886659+00:00)

## What it is
A collection of contributed Rack middleware components and utilities for Ruby's Rack web server interface. It provides dozens of small, composable add-ons such as IP access control, JSON body parsing, JSONP support, response caching, locale detection, and exception mailing.

## Use cases
- add JSON request body parsing to a Rack app
- restrict access to a Ruby web app by IP address
- cache responses to disk like Rails page caching
- detect client locale from Accept-Language headers
- email exceptions with stacktrace and environment details
- add JSONP support to a Rack API
- put up a maintenance page for a Ruby web app

## When to choose
- you maintain a Rack-based Ruby web app and need small composable middleware pieces
- you want utilities like JSONP, nested params parsing, or response caching without pulling in a full framework
- you need simple IP-based access control or maintenance-page handling at the middleware layer

## When to avoid
- you use a modern framework like Rails or Sinatra that already bundles equivalent middleware
- you need actively developed features with frequent releases
- you are not using Ruby or the Rack web server interface

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, http-server, routing, caching, logging, monitoring, security, serialization
- domain: web-development, backend, developer-tools, apis
- platform: ruby
- tags: rack, ruby, middleware-collection, web-server-interface, web-server

## Member repositories
- rack/rack-contrib (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.886659+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-30T05:07:20.834560+00:00, confidence not recorded.
  - readme: https://github.com/rack/rack-contrib (fetched 2026-08-28T04:04:08.886659+00:00, sha 3c3990c43cd7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
