# unicorn

> Rack HTTP server for fast clients and Unix

Source: https://talira.ai/catalog/unicorn-41mmc0ty
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Platforms: linux, macos, freebsd[^1]
- Licence: GPL-2.0-or-later OR Ruby[^4]
- Pricing: Free and open source[^4]
- Pricing notes: Free and open source.
- Free tier: yes[^4]
- Self-hostable: yes[^1]

unicorn is a preforking HTTP server for Rack (Ruby) applications, designed for fast clients on low-latency connections and for Unix kernels' features. It spawns and manages any number of worker processes, reaps and restarts workers that die from broken code, and leaves load balancing to the kernel, so requests never pile up behind a busy worker; each worker serves one client at a time in its own address space, so the app needn't be thread-safe. It reopens log files on USR1 for logrotate, and slow clients must be served through a fully buffering reverse proxy such as [nginx](https://talira.ai/catalog/nginx-nfjkekkp.md). Its README warns that its tolerance of bad code has done the Ruby ecosystem damage. It began as a fork of Mongrel and is developed over a public mailing list rather than GitHub.

## Links

- Website: https://yhbt.net/unicorn/
- Docs: https://yhbt.net/unicorn/README.html

## Problems it solves

- run a Rack or Rails app with multiple worker processes
- restart Ruby web workers automatically when they crash
- serve a Rails app that isn't thread-safe
- a preforking app server for Ruby behind nginx

## Features

- preforking worker processes
- restarts dead workers
- kernel load balancing
- no thread-safety needed
- log reopening on USR1

## Limitations

- Serves only fast clients: slow clients must go through a reverse proxy that fully buffers requests and responses, such as nginx[^1]
- No release since 6.1.0 (December 2021); the newest patch on its mailing list is from April 2025, and users were still asking for a new release in 2026[^2][^3]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.20 out of 1.
Signals: backing 0.00, extensibility 0.20.

Warnings:

- activity not tracked: no repository is linked

## Alternatives

- [Puma](https://talira.ai/catalog/puma-qdbe2rmt.md): A Ruby/Rack web server built for parallelism

## Sources

[^1]: https://yhbt.net/unicorn/README.html (checked 24 Nov 2026)
[^2]: https://yhbt.net/unicorn/NEWS.html (checked 24 Nov 2026)
[^3]: https://yhbt.net/unicorn-public/ (checked 24 Nov 2026)
[^4]: https://yhbt.net/unicorn/LICENSE.html (checked 24 Nov 2026)
