This project is not covered by Drupal’s security advisory policy.

Bidirectional sync between Drupal content entities and Matrix room threads. Nodes and comments mirror to Matrix; replies in Matrix create Drupal content.

Features

  • Maintains a mapping table between Drupal entity IDs and Matrix event IDs, so each entity knows which Matrix message it corresponds to and vice versa
  • Outbound sync: when a node or comment is created, posts it to a configured Matrix room and stores the returned event ID
  • Inbound sync: when a Matrix thread reply arrives, creates the corresponding Drupal comment (or other entity) attributed to the correct node
  • InboundSyncService and OutboundSyncService with clean PHP APIs for custom integrations
  • EventIdIndex for efficient bidirectional lookups
  • ECA Plugins for retrieving mapped IDs, adding to the map

Post-Installation

Configure the entity types and Matrix rooms to sync on the module settings page. The module builds on top of ECA — install an ECA model (such as the one included in matrix_api_demo from matrix_recipes) to wire up the sync logic without custom code, or use the services directly in your own module.

Additional Requirements

matrix_api. ECA is recommended for configuration-driven sync; the services work standalone for code-driven use.

Supporting organizations: 
Sponsored development

Project information

Releases