Lightweight web-components (and custom javascript API sdk) to communicate with matrix (public) homeservers, rooms, spaces, users, events.
- documentation for the project
- examples of each components usage
- website with the rendered examples
- npm package
- gitlab code
- #mwc.sctlib:matrix.org chat
This project is in prototype state, and its APIs are subject to changes. Feel free to discuss features and bugs in git issues or the matrix room(s).
In an HTML file, we can use the following code to display a matrix room (here by its alias, and works with its ID too).
<script type="module" src="https://unpkg.com/@sctlib/mwc"></script>
<matrix-room profile-id="#sctlib-mwc:matrix.org"></matrix-room>