I released the code on GitHub, but I would say this is alpha-level quality right now. A lot of things work, but the plugin is lacking documentation and there are some more patches (such as this one) required for Discourse to make it work.
https://github.com/udan11/discourse-chat-matrix
What has been implemented so far:
- Homeserver discovery – works

- Channels – works

- Group Chats – works

- Direct Chats – works

- Edits – works

- Deletions – works

- Uploads – scheduled next
- Presence/typing notifications and read receipts – scheduled next (if possible)
- Reactions – works

- Replies – works

- Text messages (plain and formatted, emojis) – works

There will be a more formal topic that announces the plugin when it reaches beta quality. Thank you for your interest in this plugin!