RubyGems Navigation menu

chats 0.1.1

chats is a drop-in gem to add chat messaging to your Rails app. It implements a real-time messaging engine for Ruby on Rails 8+ apps: direct messages (DMs), group chats, image attachments, emoji reactions, read receipts, unread badges, and typing indicators. All rendered server-side and updated live with Hotwire (Turbo Streams over Action Cable), so it ships with zero custom JavaScript build steps and works with importmaps out of the box. Any model can converse via a single `acts_as_messager` macro (users, organizations, support agents — participants are polymorphic), conversations can be optionally attached to any domain record via `acts_as_chat_subject` (so users can chat about a specific order, a listing, a booking), and the whole inbox UI is overridable view-by-view like Devise. It exposes small adapter seams a blocked-users lookup, a `can_message` policy, and a notifier hook; so it snaps onto the `moderate` gem for Trust & Safety (report/block/filter, DSA + app-store compliance) and onto any notification system (like the `noticed` gem) without any hard dependencies. Messages support soft deletion, editing, system messages posted by your app, per-sender rate limiting, and optional encryption at rest.

Gemfile:
=

install:
=

Versions:

  1. 0.1.1 June 10, 2026 (95 KB)

Runtime Dependencies (5):

activerecord >= 7.1.0, < 9.0
activesupport >= 7.1.0, < 9.0
globalid ~> 1.0
railties >= 7.1.0, < 9.0
turbo-rails >= 2.0

Owners:

Pushed by:

Authors:

  • rameerez

SHA 256 checksum:

=

Total downloads 229

For this version 229

Version Released:

License:

MIT

Required Ruby Version: >= 3.2.0

New versions require MFA: true

Version published with MFA: true

Links: