{"id":13769987,"url":"https://github.com/syncpoint/matrix-client-api","last_synced_at":"2026-02-09T16:14:07.640Z","repository":{"id":123146696,"uuid":"574136309","full_name":"syncpoint/matrix-client-api","owner":"syncpoint","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-11T07:03:18.000Z","size":259,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-17T05:34:06.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syncpoint.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-04T14:41:21.000Z","updated_at":"2024-10-27T01:27:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9015e6a2-c382-4d99-8531-0286f180ebe3","html_url":"https://github.com/syncpoint/matrix-client-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncpoint%2Fmatrix-client-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncpoint%2Fmatrix-client-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncpoint%2Fmatrix-client-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncpoint%2Fmatrix-client-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syncpoint","download_url":"https://codeload.github.com/syncpoint/matrix-client-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253507260,"owners_count":21919181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:00:33.289Z","updated_at":"2026-02-09T16:14:07.614Z","avatar_url":"https://github.com/syncpoint.png","language":"JavaScript","funding_links":[],"categories":["SDKs"],"sub_categories":["2016"],"readme":"# MATRIX Client API\n\nThis is a purpose built wrapper for the Matrix API and by no neans a general-purpose SDK! It creates top-level abstractions like `project-list` and `project` which are only suitable for ODINv2 replication. It's designed to support both nodejs and browser environments.\n\n__WARNING: As of 14mar23 the nodejs runtime must be version 18+ since it requires the (currently experimental) implementation of the fetch API!__\n\n## http-api\nThe `http-api` is a very thin layer for the Matrix http (REST-like) api. The only enhancement is the automated renewal of the access token. This API does not have any ODIN domain specific functionality.\n\nOn top of the `http-api` we have three pillars (`structure-api`, `command-api` and `timeline-api`). These APIs use ODIN domain terms like _project_ and _layer_ but the __ids used are still out of the Matrix domain__.\n\n## structure-api\n\nThe `structure-api` creates ODINv2 structural components like projects (Matrix spaces) and layers (Matrix rooms), allows you to invite users to shared projects and so on. On the other hand one can enumerate existing  projects and invitations to join shared projects. You must be in state `online` to use this API. Top level abstractions must deny access to the methods of this API and/or handle errors accordingly.\n\n## command-api\n\nThe `command-api` is a _send-only_ API and is responsible for sending the _payload_ messages to the matrix server. Typically triggered by a state change of a feature or style that is embraced by a _layer_ these messages must get posted in a Matrix room.\nThis API is the only one that can be used while beeing offline. All messages are queued and delivered in-order. If a client is offline there is a retry mechanism that will even work if ODIN gets shut-down and restarted. (TODO :-))\n\n## timeline-api\n\nThe `timeline-api` is a _receive-only_ API and is intended to transfer changes from the matrix server to ODINv2. By making use of filters the API can be focused on the _project list_ or a selected _project_ (making use of room ids).\n\n## project-list\n\nThe _project-list_ targets the ODINv2 view where projects are shared and joined. This API requires the _structure-api_ and the _timeline-api_. With the exception of _user-ids_ for invitations only ids from the ODIN domain are visible to users of this API. _project-list_ holds a mapping from ODIN ids to Matrix ids.\n\n## project","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncpoint%2Fmatrix-client-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncpoint%2Fmatrix-client-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncpoint%2Fmatrix-client-api/lists"}