{"id":13463310,"url":"https://github.com/defunkt/unicorn","last_synced_at":"2025-12-17T00:21:02.762Z","repository":{"id":654447,"uuid":"297070","full_name":"defunkt/unicorn","owner":"defunkt","description":"Unofficial Unicorn Mirror.","archived":false,"fork":false,"pushed_at":"2024-04-15T23:19:35.000Z","size":8830,"stargazers_count":1415,"open_issues_count":4,"forks_count":256,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-04-16T00:53:44.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://unicorn.bogomips.org/","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":"git://git.bogomips.org/unicorn.git","source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defunkt.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-09-04T02:50:52.000Z","updated_at":"2024-05-29T21:40:16.000Z","dependencies_parsed_at":"2024-04-16T00:30:08.368Z","dependency_job_id":"2d035893-24f0-4e31-8789-4b76293f22fa","html_url":"https://github.com/defunkt/unicorn","commit_stats":{"total_commits":2596,"total_committers":50,"mean_commits":51.92,"dds":0.4738058551617874,"last_synced_commit":"d947cb91cf9dbd65d48e497b2605b124571f77ad"},"previous_names":[],"tags_count":128,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defunkt%2Funicorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defunkt%2Funicorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defunkt%2Funicorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defunkt%2Funicorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defunkt","download_url":"https://codeload.github.com/defunkt/unicorn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877395,"owners_count":16554888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T13:00:50.462Z","updated_at":"2025-10-07T09:31:26.510Z","avatar_url":"https://github.com/defunkt.png","language":"Ruby","readme":"= unicorn: Rack HTTP server for fast clients and Unix\n\nunicorn is an HTTP server for Rack applications that has done\ndecades of damage to the entire Ruby ecosystem due to its ability\nto tolerate (and thus encourage) bad code.  It is only designed\nto handle fast clients on low-latency, high-bandwidth connections\nand take advantage of features in Unix/Unix-like kernels.\nSlow clients must only be served by placing a reverse proxy capable of\nfully buffering both the the request and response in between unicorn\nand slow clients.\n\n== Features\n\n* Designed for Rack, Unix, fast clients, and ease-of-debugging.  We\n  cut out everything that is better supported by the operating system,\n  {nginx}[https://nginx.org/] or {Rack}[https://rack.github.io/].\n\n* Compatible with Ruby 2.5 and later.\n\n* Process management: unicorn reaps and restarts workers that die\n  from broken code.  There is no need to manage multiple processes\n  or ports yourself.  unicorn can spawn and manage any number of\n  worker processes you choose to scale to your backend.\n\n* Load balancing is done entirely by the operating system kernel.\n  Requests never pile up behind a busy worker process.\n\n* Does not care if your application is thread-safe or not, workers\n  all run within their own isolated address space and only serve one\n  client at a time for maximum robustness.\n\n* Builtin reopening of all log files in your application via\n  USR1 signal.  This allows logrotate to rotate files atomically and\n  quickly via rename instead of the racy and slow copytruncate method.\n  unicorn also takes steps to ensure multi-line log entries from one\n  request all stay within the same file.\n\n* nginx-style binary upgrades without losing connections.\n  You can upgrade unicorn, your entire application, libraries\n  and even your Ruby interpreter without dropping clients.\n\n* transparent upgrades using systemd socket activation is\n  supported since unicorn 5.0\n\n* before_fork and after_fork hooks in case your application\n  has special needs when dealing with forked processes.  These\n  should not be needed when the \"preload_app\" directive is\n  false (the default).\n\n* Can be used with copy-on-write-friendly GC in Ruby 2.0+\n  to save memory (by setting \"preload_app\" to true).\n\n* Able to listen on multiple interfaces including UNIX sockets,\n  each worker process can also bind to a private port via the\n  after_fork hook for easy debugging.\n\n* Simple and easy Ruby DSL for configuration.\n\n* Decodes chunked requests on-the-fly.\n\n== License\n\nunicorn is copyright all contributors (see logs in git).\nIt is based on Mongrel 1.1.5.\nMongrel is copyright 2007 Zed A. Shaw and contributors.\n\nunicorn is licensed under (your choice) of the GPLv2 or later\n(GPLv3+ preferred), or Ruby (1.8)-specific terms.\nSee the included LICENSE file for details.\n\nunicorn is 100% Free Software (including all development tools used).\n\n== Install\n\nThe library consists of a C extension so you'll need a C compiler\nand Ruby development libraries/headers.\n\nYou may install it via RubyGems on RubyGems.org:\n\n  gem install unicorn\n\nYou can get the latest source via git from the following locations\n(these versions may not be stable):\n\n  git clone https://yhbt.net/unicorn.git\n  git clone https://repo.or.cz/unicorn.git # mirror\n\nYou may browse the code from the web:\n\n* https://yhbt.net/unicorn.git\n* https://repo.or.cz/w/unicorn.git (gitweb)\n\nSee the HACKING guide on how to contribute and build prerelease gems\nfrom git.\n\n== Usage\n\n=== Rack (including Rails 3+) applications\n\nIn APP_ROOT, run:\n\n  unicorn\n\nunicorn will bind to all interfaces on TCP port 8080 by default.\nYou may use the +--listen/-l+ switch to bind to a different\naddress:port or a UNIX socket.\n\n=== Configuration File(s)\n\nunicorn will look for the config.ru file used by rackup in APP_ROOT.\n\nFor deployments, it can use a config file for unicorn-specific options\nspecified by the +--config-file/-c+ command-line switch.  See\nUnicorn::Configurator for the syntax of the unicorn-specific options.\nThe default settings are designed for maximum out-of-the-box\ncompatibility with existing applications.\n\nMost command-line options for other Rack applications (above) are also\nsupported.  Run `unicorn -h` to see command-line options.\n\n== Disclaimer\n\nThere is NO WARRANTY whatsoever if anything goes wrong, but\n{let us know}[link:ISSUES.html] and maybe someone can fix it.\nNo commercial support will ever be provided by the amateur maintainer.\n\nunicorn is designed to only serve fast clients either on the local host\nor a fast LAN.  See the PHILOSOPHY and DESIGN documents for more details\nregarding this.\n\nThe use of unicorn in new deployments is STRONGLY DISCOURAGED due to the\ndamage done to the entire Ruby ecosystem.  Its unintentional popularity\nset Ruby back decades in parallelism, concurrency and robustness since\nit prolongs and proliferates the existence of poorly-written code.\n\nunicorn hackers are NOT responsible for your supply chain security:\nread and understand it yourself or get someone you trust to audit it.\nMalicious commits and releases will be made if under duress.  The only\ndefense you'll ever have is from reviewing the source code.\n\nNo user or contributor will ever be expected to sacrifice their own\nsecurity by running JavaScript or revealing any personal information.\n\n== Contact\n\nAll feedback (bug reports, user/development dicussion, patches, pull\nrequests) go to the public mailbox.  See the ISSUES document for\ninformation on posting to mailto:unicorn-public@yhbt.net\n\nMirror-able mail archives are at https://yhbt.net/unicorn-public/\n\nRead-only NNTP access is available at:\nnntps://news.public-inbox.org/inbox.comp.lang.ruby.unicorn and\nnntp://news.gmane.io/gmane.comp.lang.ruby.unicorn.general\n\nRead-only IMAP access is also available at:\nimaps://;AUTH=ANONYMOUS@yhbt.net/inbox.comp.lang.ruby.unicorn.0 and\nimap://;AUTH=ANONYMOUS@7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.lang.ruby.unicorn.0\n\nArchives are also available over POP3, instructions at:\nhttps://yhbt.net/unicorn-public/_/text/help/#pop3\n\nFor the latest on unicorn releases, you may also finger us at\nunicorn@yhbt.net or check our NEWS page (and subscribe to our Atom\nfeed).\n","funding_links":[],"categories":["Provision, Deploy \u0026 Host","Ruby","Web Servers"],"sub_categories":["Web servers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefunkt%2Funicorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefunkt%2Funicorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefunkt%2Funicorn/lists"}