IXO Matrix Client SDK

Reference for the IXO Matrix Client SDK: its API, room bot and state bot clients, utility functions, how to install it, and the imports to start from.

The IXO Matrix Client SDK (@ixo/matrixclient-sdk) is the TypeScript library for working with a Matrix server and the IXO bot services that run beside it. Use it to manage user profiles, room details and room state, on a pre-configured or a custom Matrix homeserver.

This page lists the clients the SDK provides, how to install it, and the imports to start from.

Package

Package@ixo/matrixclient-sdk on npm
Source codeThe GitHub repository is private. Request access by contacting the IXO World team

Clients

ClientWhat it doesFeatures
Matrix API clientDirect interaction with the Matrix API to manage media, user profiles and room propertiesMedia management: upload files to the Matrix server. User profile handling: retrieve and modify user profile data. Room operations: manage room visibility and memberships
Room bot clientAutomation for managing roomsEntity room management: automatically create entity-specific rooms. Room automation: use bots to manage room invitations and memberships
State bot clientRoom state and access control lists (ACLs)Access control management: configure ACLs for rooms. State management: fetch and adjust room states. The events it manages are in the Matrix state bot API
Utility functionsHelper functions for working with MatrixMXC utilities: convert Matrix Content URLs. Validators: validate room IDs, user IDs and aliases

Installation

The IXO Matrix Client SDK can be installed via npm or yarn:

npm install @ixo/matrixclient-sdk
# or
yarn add @ixo/matrixclient-sdk

Quickstart

Import the required components into your project:

import {
  createMatrixApiClient,
  createMatrixRoomBotClient,
  createMatrixStateBotClient,
  utils
} from '@ixo/matrixclient-sdk';

Use cases

Use caseWhat you use
Real-time communicationMatrix rooms for communication between users
Automated room managementThe bot clients
Access controlACLs and the state management tools