{"id":16553592,"url":"https://github.com/forthoney/mooro","last_synced_at":"2026-03-07T00:32:36.641Z","repository":{"id":213718421,"uuid":"727057049","full_name":"Forthoney/mooro","owner":"Forthoney","description":"A truly parallel server for CRuby","archived":false,"fork":false,"pushed_at":"2024-06-16T00:05:55.000Z","size":90,"stargazers_count":34,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-26T09:25:23.697Z","etag":null,"topics":["ractor","server"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Forthoney.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-12-04T05:01:21.000Z","updated_at":"2025-08-31T07:17:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc56ae9f-05ec-4d65-a291-7fbc052e5002","html_url":"https://github.com/Forthoney/mooro","commit_stats":null,"previous_names":["forthoney/mooro"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Forthoney/mooro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forthoney%2Fmooro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forthoney%2Fmooro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forthoney%2Fmooro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forthoney%2Fmooro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Forthoney","download_url":"https://codeload.github.com/Forthoney/mooro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forthoney%2Fmooro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ractor","server"],"created_at":"2024-10-11T19:48:52.662Z","updated_at":"2026-03-07T00:32:36.620Z","avatar_url":"https://github.com/Forthoney.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mooro: A truly parallel server for CRuby\nMooro is a Ractor-based, compact, parallel TCP server targeting CRuby. It is built to be extended - you can only do so much with raw TCP sockets - and offers straigtforward ways (and examples) of doing so.\n\n## Uncompromising Minimalism\nMooro aims to deliver all essential features expected from a modern Ruby web server such as\n* **Parallelism**. Mooro utilizes true parallelism with CRuby through `Ractor`s.\n* **Logging**. Supervisor start/stop, worker errors, and other notable events are logged by default, and adding additional logging points is as straightforward as adding `logger.send(\"message\")`.\n* **Stopping**. Capable of gracefully stopping (or forcefully, if you prefer that).\n\nAt the same time, it abstracts virtually nothing away from TCPServer, enabling maximum extensibility.\nAnything at the TCP level and higher is fair game for Mooro.\nExtending Mooro is quite simple because it is\n* **Compact**. The base server has 0 dependencies and fits in less than 150 lines of code. Yes, this number _includes_ comments!\n* **Pure Ruby**. No C extensions, so you don't need to dive into the shadow realm to figure out the internals of Mooro.\n* **Almost GServer compatible**. Most of the server interface is identical to [GServer](https://github.com/ruby/gserver), an ex-stdlib Generic Server, for familiarity's sake.\n\n## Usage\n\nIf you want to create a basic server that outputs the time,\n```ruby\nclass TimeServer \u003c Mooro::Server\n  def serve(io)\n    io.puts(Time.now.to_i)\n  end\nend\n\nserver = TimeServer.new(max_connections = 4)\nserver.start\nsleep(15)\nserver.stop\n```\n\nMooro ships with an implementation of an HTTP Server.\nA [healthcheck server](https://www.mikeperham.com/2023/09/11/ruby-http-server-from-scratch/) can be built with\n```ruby\nHTTP = Mooro::Plugin::HTTP\n\nclass HealthCheck \u003c Mooro::Server\n  include HTTP\n\n  def handle_request(req)\n    req.path == \"/\" ? HTTP::Response[200] : HTTP::Response[404]\n  end\nend\n```\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add mooro\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install mooro\n\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nMooro is in desperate need of **Tests** (both Unit and Integration) and **Benchmarks**.\nI unfortunately lack the expertise needed for thoroughly handling these, so any contribution in these areas are greatly appreciated.\nFurthermore, another, more practicality focused priority is the **rack-ification** of Mooro.\n[Rack](https://github.com/rack/rack) is undoubtedly the gold standard interface for HTTP applications.\nMooro is technically fully capable of supporting Rack, but the big hurdle currently is properly parsing HTTP requests (yuck).\n\nContributions outside these areas are, of course, also welcome.\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Forthoney/mooro. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Forthoney/mooro/blob/main/CODE_OF_CONDUCT.md).\n\n## Caveats\n\n* `Ractor`s are still experimental as of `3.2.2`. Subsequently, Mooro should be treated as experimental.\n\n* Mooro is quite incompatible with older versions of Ruby. Anything pre-`Ractor` (i.e. pre 3.0) obviously does not work.\nThe builtin HTTP Server requires Ruby 3.2 or later, although this can easily be circumvented if need be.\n\n* Mooro's interface is not exactly like `gserver`. Read more about the differences [here](docs/gserver_differences.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Mooro project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Forthoney/mooro/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforthoney%2Fmooro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforthoney%2Fmooro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforthoney%2Fmooro/lists"}