chatspace
A real-time, Discord-like chat room module for Drupal 10 and 11.
Features
Real-time messaging with adaptive polling
Chat rooms with clean, user-friendly URLs
@mention support with autocomplete and notifications
Typing indicators and live user presence
Message editing and deletion
Built-in emoji picker
Mobile-friendly, dark-themed interface
Flexible permission system
Requirements
Drupal 10 or 11
Drupal core user module
message module (optional, for notifications)
Installation
Place the module in modules/custom/chat_space/
Enable the module:
drush en chat_space
drush cr
Configure permissions at /admin/people/permissions
Permissions
Access chat rooms
Create chat rooms
Send messages
Edit own messages
Delete own messages
Delete any messages (moderator)
Administer chat space
Usage
/chat-space — List chat rooms
/chat-space/add — Create a room
/chat-space/room/{slug} — Enter a room
@Mentions
Type @ to mention users. Selected users receive notifications (if the Message module is enabled).
Configuration
Optional settings are available via chat_space.settings:
Mention retention period
Notification cleanup settings
Overview
Chat Space provides a lightweight, extensible chat system fully integrated with Drupal’s user and permission framework. It uses adaptive polling for real-time updates and is designed to work without external services.