{"id":13878589,"url":"https://github.com/marcoroth/cable-streams-rails","last_synced_at":"2025-10-28T20:09:46.357Z","repository":{"id":40420696,"uuid":"480610702","full_name":"marcoroth/cable-streams-rails","owner":"marcoroth","description":"Rails companion gem for the `cable-streams` NPM package","archived":false,"fork":false,"pushed_at":"2022-12-18T21:13:41.000Z","size":6,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T01:06:16.076Z","etag":null,"topics":["cableready","hotwire","rails","ruby","turbo"],"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/marcoroth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-12T01:28:35.000Z","updated_at":"2023-03-09T03:11:28.000Z","dependencies_parsed_at":"2023-01-29T20:01:00.204Z","dependency_job_id":null,"html_url":"https://github.com/marcoroth/cable-streams-rails","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable-streams-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable-streams-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable-streams-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable-streams-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoroth","download_url":"https://codeload.github.com/marcoroth/cable-streams-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253764518,"owners_count":21960590,"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":["cableready","hotwire","rails","ruby","turbo"],"created_at":"2024-08-06T08:01:54.076Z","updated_at":"2025-10-28T20:09:41.319Z","avatar_url":"https://github.com/marcoroth.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"## CableStreams Rails\n\nThis is a Rails helper gem for the [`cable-streams`](https://github.com/marcoroth/cable-streams) NPM package. CableStreams extends Turbo Streams with Custom Turbo Stream Actions and all CableReady operations.\n\n### Installation\n\n```bash\nbundle add cable_streams\n```\n\n### Using the Tag Helpers\n\nThe `cable_streams` gem ships view helpers for all CableReady operations. All options are identical to [the regular CableReady operations](https://cableready.stimulusreflex.com/v/v5/reference/operations).\n\nHere's an example of the `console_log` operation:\n\n```html+erb\n\u003c%= turbo_stream.console_log(message: \"hello world\") %\u003e\n```\n\nWhich renders to:\n```html\n\u003cturbo-stream action=\"consoleLog\" target=\"body\"\u003e\n  \u003ctemplate\u003e\n    [\n      { \"message\": \"hello world\", \"operation\": \"consoleLog\" }\n    ]\n  \u003c/template\u003e\n\u003c/turbo-stream\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fcable-streams-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoroth%2Fcable-streams-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fcable-streams-rails/lists"}