Demo web client for using matrix-files-sdk
  • Svelte 71.4%
  • TypeScript 22%
  • JavaScript 4.4%
  • CSS 1.2%
  • SCSS 0.7%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-01-31 08:53:11 +00:00
.github Use Node.js 20 and publish docker images (#29) 2024-05-07 16:21:57 +01:00
.vscode feat: initial import of matrix-files-sdk demo web client 2022-01-16 17:50:20 +00:00
public feat: basic support for MSC3861 based OIDC authentication (#16) 2023-11-29 14:59:14 +00:00
src Change licence to AGPL OR Element Commercial (#32) 2025-01-31 08:53:11 +00:00
.gitignore feat: initial import of matrix-files-sdk demo web client 2022-01-16 17:50:20 +00:00
.npmrc feat: initial import of matrix-files-sdk demo web client 2022-01-16 17:50:20 +00:00
.nvmrc Use Node.js 20 and publish docker images (#29) 2024-05-07 16:21:57 +01:00
Dockerfile Use Node.js 20 and publish docker images (#29) 2024-05-07 16:21:57 +01:00
LICENSE-AGPL-3.0 Change licence to AGPL OR Element Commercial (#32) 2025-01-31 08:53:11 +00:00
LICENSE-COMMERCIAL Change licence to AGPL OR Element Commercial (#32) 2025-01-31 08:53:11 +00:00
package.json Change licence to AGPL OR Element Commercial (#32) 2025-01-31 08:53:11 +00:00
README.md Change licence to AGPL OR Element Commercial (#32) 2025-01-31 08:53:11 +00:00
tsconfig.json feat: basic support for MSC3861 based OIDC authentication (#16) 2023-11-29 14:59:14 +00:00
webpack.config.js Change licence to AGPL OR Element Commercial (#32) 2025-01-31 08:53:11 +00:00
webpack.parts.js feat: upgrade to latest matrix-js-sdk and matrix-files-sdk 2022-12-08 17:25:34 +00:00
yarn.lock build(deps): bump github-markdown-css from 5.1.0 to 5.5.1 (#21) 2024-02-05 15:13:00 +00:00

Demo web client for Matrix Files SDK

This web client was developed to showcase the capabilities of matrix-files-sdk.

Features include:

  • Upload single and multiple files
  • Basic file operations: rename, delete, download
  • Preview some common file formats: images, text, markdown, PDF
  • Inline editing of markdown using ByteMD
  • Folder sharing and permission management
  • View version history for files
  • End-to-end encryption
  • Encryption key backup using a passphrase

Live demo

Try it for yourself

Development

Install the dependencies...

yarn install

...then start to run a local web server to help with development:

yarn dev

Navigate to localhost:5001. You should see the app running. Edit a component file in src, save it, and reload the page to see your changes.

If you're using Visual Studio Code we recommend installing the official extension Svelte for VS Code.

If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.

Building and running in production mode

To create an optimised version of the app which defaults to matrix.org homeserver:

DEFAULT_HOMESERVER=https://matrix.org yarn build

This will output a set of files into the dist folder which can then be deployed to a CDN or web server (example here).

Copyright (c) 2020 The Matrix.org Foundation C.I.C.

Copyright (c) 2021-2025 New Vector Ltd

This software is multi licensed by New Vector Ltd (Element). It can be used either:

(1) for free under the terms of the GNU Affero General Public License (as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version); OR

(2) under the terms of a paid-for Element Commercial License agreement between you and Element (the terms of which may vary depending on what you and Element have agreed to). Unless required by applicable law or agreed to in writing, software distributed under the Licenses is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses.