# Rack

> The minimal interface between Ruby web servers and web frameworks, with standard middleware

Source: https://talira.ai/catalog/rack-gbmjzzj1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^1]
- Pricing: Free and open source
- Free tier: yes
- Backed by: [Rack](https://talira.ai/orgs/rack.md)

Rack is the minimal, modular interface between Ruby web servers and web applications: an app is an object that takes the request environment and returns a status, headers and body, as the Rack Specification defines, so any conforming app runs unchanged on any supported server. Servers such as [Puma](https://talira.ai/catalog/puma-qdbe2rmt.md), Falcon, Unicorn, Passenger, Pitchfork, Thin and NGINX Unit support it, and frameworks such as Ruby on Rails, Sinatra, Hanami, Roda and Padrino are built on it. The gem ships the specification, request and response helpers, a builder for composing apps from `config.ru`, and middleware for logging, conditional GET and ETags, gzip compression, content length and type, HEAD requests, method override, static files, locking and Rack::Lint conformance checks; sessions and the `rackup` command are separate gems. Rack 3.2 is current, 3.1 and 2.2 get security patches only (2.2 until 2027), and it's MIT-licensed.

## Links

- GitHub: https://github.com/rack/rack
- Docs: https://rack.github.io/rack/

## Problems it solves

- write the smallest possible Ruby web app that runs on any server
- add middleware for gzip, ETags or logging to a Ruby web app
- build a Ruby web framework that works with Puma, Unicorn and other servers
- test that my Ruby web app conforms to the server interface
- upgrade a Rails app from Rack 2 to Rack 3

## Features

- Rack Specification for apps, servers and middleware
- request and response helpers
- Rack::Builder and config.ru for composing apps
- middleware: CommonLogger, ConditionalGet, ETag, Deflater, ContentLength, ContentType, Head, MethodOverride, Static, Lock and more
- Rack::Lint conformance checks
- supported by Puma, Falcon, Unicorn, Passenger, Pitchfork, Thin, NGINX Unit, uWSGI and others
- used by Rails, Sinatra, Hanami, Roda, Padrino and others

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 0.81, adoption 0.74, momentum 0.42, community 1.00, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 32 commits in the last 90 days
- latest release v3.2.6 8 months ago
- 5.1k GitHub stars
- 575 contributors
- has a company behind it

## Alternatives

- [Sinatra](https://talira.ai/catalog/sinatra-wdjbgp5t.md): A DSL for quickly creating web applications in Ruby
- [unicorn](https://talira.ai/catalog/unicorn-41mmc0ty.md): Rack HTTP server for fast clients and Unix

## Sources

[^1]: https://github.com/rack/rack/blob/main/MIT-LICENSE (checked 26 Nov 2026)
