AnyCable SDK for Ruby on Rails
AnyCable is an open-source language-agnostic realtime server for reliable two-way communication over WebSockets and SSE. This repository contains code for AnyCable Rails SKD that allows you to use AnyCable as a drop-in replacement for Action Cable.
๐ Website ยท ๐ Documentation ยท ๐พ Example Rails Application
Quick Start
Add anycable-rails gem to your Gemfile:
gem "anycable-rails"Then run our interactive setup command:
bundle exec rails g anycable:setupLearn more here.
Agent skills
The gem ships a skill for coding agents in skills/anycable-rails. The skill helps agents install and configure AnyCable, troubleshoot connections and broadcasts, and build real-time features. It follows the skills.sh layout, so it works with any agent that reads SKILL.md.
With Rails Hyperdrive, the skill installs automatically: run bin/rails hyperdrive:init the first time, then bundle install or bin/rails hyperdrive:sync puts it into .claude/skills/anycable-rails.
Without Rails Hyperdrive, install it from the repository with the skills.sh CLI, or copy skills/anycable-rails into your agent's skills directory:
npx skills add anycable/anycable-railsContributing
Bug reports and pull requests are welcome on GitHub at https://github.com/anycable/anycable-rails.
License
The gem is available as open source under the terms of the MIT License.
Security Contact
To report a security vulnerability, please contact us at anycable@evilmartians.com. We will coordinate the fix and disclosure.