#client-server #server-api #messaging #ruma #sdk #api-client #linker

mxlink

A library for connecting (linking) to the Matrix Client Server API (for building bots, etc.)

6 stable releases

1.4.0 Nov 19, 2024
1.3.0 Sep 22, 2024

#1942 in Network programming

Download history 269/week @ 2024-09-06 222/week @ 2024-09-13 189/week @ 2024-09-20 48/week @ 2024-09-27 16/week @ 2024-10-04 8/week @ 2024-10-11 6/week @ 2024-10-18 2/week @ 2024-10-25 6/week @ 2024-11-01 9/week @ 2024-11-08 143/week @ 2024-11-15 39/week @ 2024-11-22 13/week @ 2024-11-29

205 downloads per month
Used in baibot

LGPL-3.0

99KB
2K SLoC

Matrix Link (mxlink) is a Rust library (a higher-level abstraction on top of matrix-rust-sdk) for building Matrix services (bots, etc.)

It's similar to headjack, but tries to be less opinionated and more featureful.

It finds use in the 🤖 baibot Matrix bot.

✨ Features

  • 🎈 Easy to use API for getting started with matrix-rust-sdk. See the examples directory or baibot

  • 🔒 Encryption

    • (Optional) At-rest encryption of the session file

    • At-rest encryption of the SQLite data store (performed by matrix-rust-sdk itself)

  • 🔄 (Optional) Support for using matrix-rust-sdk's recovery module for backing up and restoring encryption keys (in case of session / SQLite store data loss)

  • 🖴 Helpers for working with Matrix Account Data on a per-room level or globally

  • 🗂 Some convenience functions around Matrix APIs

Dependencies

~33–50MB
~846K SLoC