You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
stryan fbd45c3326 add user 2 months ago
css Mass Tabs -> Spaces conversion 6 months ago
docs Set up story book 2 years ago
images Mass Tabs -> Spaces conversion 6 months ago
images-nohash bring back badge added in PR #21 8 months ago
init add user 2 months ago
scripts Mass Tabs -> Spaces conversion 6 months ago
src add saintnet element 2 months ago
.editorconfig editor and lint settings 1 year ago
.eslintrc.js editor and lint settings 1 year ago
.gitignore gitignore .idea 6 months ago Document optional URL params 3 months ago
index.html Mass Tabs -> Spaces conversion 6 months ago
package.json bump version to 1.2.14 2 months ago
yarn.lock Merge pull request #221 from matrix-org/dependabot/npm_and_yarn/path-parse-1.0.7 5 months ago is a simple url redirection service for the 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, and use it in a link like this:

Chat on Matrix

You can use this Markdown:

[![Chat on Matrix](](

Or this HTML:

<a href="" rel="noopener" target="_blank"><img src="" alt="Chat on Matrix"></a>

to show the badge.

How does work? preserves user privacy by not sharing any information about the links being followed with the 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 app - is not a single point of failure on the Matrix ecosystem; if the 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 service could also be hosted in an immutable/signed environment such as IPFS to further increase its availability and avoid tampering.

URL Scheme

The URL scheme is

Entity type: Example URL
Rooms by ID:!

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

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[]

  • client, e.g. client=im.fluffychat,
  • web-instance[], e.g. web-instance[]
  • via, e.g.

You can discuss in

Build Instructions

  1. Install yarn
  2. git clone
  3. cd
  4. yarn
  5. yarn start
  6. Go to http://localhost:5000 in your browser