{"id":21656965,"url":"https://github.com/cotag/uv-rays","last_synced_at":"2025-04-11T22:12:33.474Z","repository":{"id":11104512,"uuid":"13458569","full_name":"cotag/uv-rays","owner":"cotag","description":"Abstractions for Libuv","archived":false,"fork":false,"pushed_at":"2024-03-04T07:32:27.000Z","size":182,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T18:13:45.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"laravel/laravel","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cotag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2013-10-10T01:00:49.000Z","updated_at":"2024-03-01T05:44:58.000Z","dependencies_parsed_at":"2024-03-04T07:51:32.214Z","dependency_job_id":null,"html_url":"https://github.com/cotag/uv-rays","commit_stats":{"total_commits":161,"total_committers":4,"mean_commits":40.25,"dds":0.07453416149068326,"last_synced_commit":"28afcde5c3c65e850626aa8c5d459dd46aea971a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fuv-rays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fuv-rays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fuv-rays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotag%2Fuv-rays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cotag","download_url":"https://codeload.github.com/cotag/uv-rays/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248017997,"owners_count":21034042,"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-11-25T09:18:31.249Z","updated_at":"2025-04-11T22:12:33.449Z","avatar_url":"https://github.com/cotag.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uv-rays\r\n\r\n[![Build Status](https://travis-ci.org/cotag/uv-rays.svg?branch=master)](https://travis-ci.org/cotag/uv-rays)\r\n\r\nUV-Rays was designed to eliminate the complexities of high-performance threaded network programming, allowing engineers to concentrate on their application logic.\r\n\r\n\r\n## Core Features\r\n\r\n1. TCP (and UDP) Connection abstractions\r\n2. Advanced stream tokenization\r\n3. Scheduled events (in, at, every, cron)\r\n4. HTTP 1.1 compatible client support\r\n\r\nThis adds to the features already available from [Libuv](https://github.com/cotag/libuv) on which the gem is based\r\n\r\n\r\n## Support\r\n\r\nUV-Rays supports all platforms where ruby is available. Linux, OSX, BSD and Windows. MRI, jRuby and Rubinius.\r\n\r\nRun `gem install uv-rays` to install\r\n\r\n\r\n## Getting Started\r\n\r\nHere's a fully-functional echo server written with UV-Rays:\r\n\r\n```ruby\r\n require 'uv-rays'\r\n\r\n module EchoServer\r\n  def on_connect(socket)\r\n    @ip, @port = socket.peername\r\n    logger.info \"-- #{@ip}:#{@port} connected\"\r\n  end\r\n\r\n  def on_read(data, socket)\r\n    write \"\u003e\u003e\u003eyou sent: #{data}\"\r\n    close_connection if data =~ /quit/i\r\n  end\r\n\r\n  def on_close\r\n    puts \"-- #{@ip}:#{@port} disconnected\"\r\n  end\r\nend\r\n\r\nreactor {\r\n  UV.start_server \"127.0.0.1\", 8081, EchoServer\r\n}\r\n\r\n```\r\n\r\n# Integrations\r\n\r\nUV-Rays works with many existing GEMs by integrating into common HTTP abstraction libraries\r\n\r\n* [Faraday](https://github.com/lostisland/faraday)\r\n* [HTTPI](https://github.com/savonrb/httpi)\r\n* [Handsoap](https://github.com/unwire/handsoap)\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcotag%2Fuv-rays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcotag%2Fuv-rays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcotag%2Fuv-rays/lists"}