Cloned from https://github.com/matrix-org/matrix.to; anticipating modifications.
Find a file
2024-11-05 00:48:28 +01:00
css Mass Tabs -> Spaces conversion 2021-07-23 12:25:21 +01:00
docs Set up story book 2020-07-30 13:30:27 +01:00
images Update Flathub badge (#343) 2024-07-09 16:56:36 +02:00
images-nohash bring back badge added in PR #21 2021-06-11 10:01:42 +02:00
scripts Fix the apple-app-site-association file. (#339) 2024-05-09 15:46:25 +01:00
src Merge pull request #333 from zecakeh/fractal-matrix-uri 2024-08-29 14:01:24 +01:00
.editorconfig editor and lint settings 2020-12-03 11:06:25 +01:00
.eslintrc.js editor and lint settings 2020-12-03 11:06:25 +01:00
.gitignore Add Element X iOS entries in the apple-app-site-association. (#337) 2024-05-07 11:39:56 +01:00
CONTRIBUTING.md add DCO 2024-07-25 14:51:52 -07:00
docker-compose.yaml Add docker-compose.yaml 2024-11-05 00:45:29 +01:00
Dockerfile Add Dockerfile 2024-11-05 00:45:53 +01:00
index.html Explain what people can do with a matrix.to link 2022-09-19 13:54:23 +02:00
LICENSE add LICENSE file 2024-01-11 10:36:55 -08:00
package.json 1.2.17 2024-09-02 17:57:02 +01:00
README.md Update README.md 2024-11-05 00:48:28 +01:00
yarn.lock Bump postcss from 8.3.0 to 8.4.31 2023-11-09 09:52:50 +00:00

dm.sij.law

This repo is cloned from the official Matrix.to repo on Github. I've added a Dockerfile and will make modifications in the future. The current version is live at dm.sij.law

First clone the repo

git clone https://sij.ai/sij/env.esq.git

Next build the image

docker build -t matrix-to .

Then run it

docker run -d \
  --name matrix-to \
  -p 3636:5000 \
  matrix-to

EVERYTHING BELOW HERE IS ORIGINAL DOCUMENTATION

Matrix.to

Matrix.to is a simple url redirection service for the Matrix.org ecosystem which lets users share links to matrix entities without being tied to a specific app. Stylistically it serves as a landing page for rooms and communities.

How can I put a badge on my website linking to my matrix room?

You can use the badge image we've put up at https://matrix.to/img/matrix-badge.svg, and use it in a link like this:

Chat on Matrix

You can use this Markdown:

[![Chat on Matrix](https://matrix.to/img/matrix-badge.svg)](https://matrix.to/#/#matrix.to:matrix.org)

Or this HTML:

<a href="https://matrix.to/#/#matrix.to:matrix.org" rel="noopener" target="_blank"><img src="https://matrix.to/img/matrix-badge.svg" alt="Chat on Matrix"></a>

to show the badge.

How does matrix.to work?

Matrix.to preserves user privacy by not sharing any information about the links being followed with the Matrix.to server - the redirection is calculated entirely clientside using JavaScript, and the link details is hidden behind a fragment to avoid web clients leaking it to the server. However, acting as a landing page it may leak your ip to any number of homeservers involved with the entity linked to while fetching previews. There is an opt out under which no previews will be loaded.

Anyone is welcome to host their own version of the Matrix.to app - Matrix.to is not a single point of failure on the Matrix ecosystem; if the matrix.to deployment ever failed, users could trivially copy the room/user/message details out of the URLs and follow them manually, or change the hostname to point at an alternative deployment of the service. The Matrix.to service could also be hosted in an immutable/signed environment such as IPFS to further increase its availability and avoid tampering.

URL Scheme

The matrix.to URL scheme is

Entity type: Example URL
Rooms: https://matrix.to/#/#matrix:matrix.org
Rooms by ID: https://matrix.to/#/!cURbafjkfsMDVwdRDQ:matrix.org
Users: https://matrix.to/#/@matthew:matrix.org
Messages: https://matrix.to/#/#matrix:matrix.org/$1448831580433WbpiJ:jki.re

The #/ component is mandatory and exists to avoid leaking the target URL to the server hosting matrix.to.

Note that linking to rooms by ID should only be used for rooms to which the target user has been invited: these links cannot be assumed to work for all visitors.

(Technically the # and @ in the URL fragment should probably be escaped, but in practice for legibility we bend the rules and include it verbatim)

Optional parameters

https://matrix.to/#/#matrix:matrix.org?web-instance[element.io]=chat.mozilla.org

  • client, e.g. client=im.fluffychat, client=element.io
  • web-instance[], e.g. web-instance[element.io]=chat.mozilla.org.
  • via, e.g. via=mozilla.org

You can discuss matrix.to in #matrix.to:matrix.org

Build Instructions

  1. Install yarn
  2. git clone https://github.com/matrix-org/matrix.to
  3. cd matrix.to
  4. yarn
  5. yarn start
  6. Go to http://localhost:5000 in your browser