Matrix (sometimes stylized as
''matrixor
m '' for short) is an
open standard
An open standard is a standard that is openly accessible and usable by anyone. It is also a common prerequisite that open standards use an open license that provides for extensibility. Typically, anybody can participate in their development due to ...
and
communication protocol
A communication protocol is a system of rules that allows two or more entities of a communications system to transmit information via any variation of a physical quantity. The protocol defines the rules, syntax, semantics (computer science), sem ...
for
real-time communication
Real-time communication (RTC) is a category of software protocols and communication hardware media that gives real-time guarantees, which is necessary to support real-time guarantees of real-time computing. Real-time communication Protocols (comp ...
. It aims to make real-time communication work seamlessly between different service providers, in the way that standard
Simple Mail Transfer Protocol email currently does for
store-and-forward
Store and forward is a telecommunications technique in which information is sent to an intermediate station where it is kept and sent at a later time to the final destination or to another intermediate station. The intermediate station, or node ...
email service, by allowing users with accounts at one
communications service provider
A telecommunications company is a kind of electronic communications service provider, more precisely a telecommunications service provider (TSP), that provides telecommunications services such as telephony and data communications access. Many t ...
to communicate with users of a different service provider via
online chat
Online chat is any direct text-, audio- or video-based (webcams), one-on-one or one-to-many ( group) chat (formally also known as synchronous conferencing), using tools such as instant messengers, Internet Relay Chat (IRC), talkers and possi ...
,
voice over IP
Voice over Internet Protocol (VoIP), also known as IP telephony, is a set of technologies used primarily for voice communication sessions over Internet Protocol (IP) networks, such as the Internet. VoIP enables voice calls to be transmitted as ...
, and
videotelephony
Videotelephony (also known as videoconferencing or video calling) is the use of audio signal, audio and video for simultaneous two-way communication. Today, videotelephony is widespread. There are many terms to refer to videotelephony. ''Vide ...
. It therefore serves a similar purpose to protocols like
XMPP
Extensible Messaging and Presence Protocol (abbreviation XMPP, originally named Jabber) is an Open standard, open communication protocol designed for instant messaging (IM), presence information, and contact list maintenance. Based on XML (Ext ...
, but is not based on any existing communication protocol.
From a technical perspective, it is an
application layer
An application layer is an abstraction layer that specifies the shared communication protocols and interface methods used by hosts in a communications network. An ''application layer'' abstraction is specified in both the Internet Protocol Su ...
communication protocol
A communication protocol is a system of rules that allows two or more entities of a communications system to transmit information via any variation of a physical quantity. The protocol defines the rules, syntax, semantics (computer science), sem ...
for
federated real-time communication. It provides HTTP APIs and
open source
Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
reference implementation
In the software development process, a reference implementation (or, less frequently, sample implementation or model implementation) is a program that implements all requirements from a corresponding specification. The reference implementation ...
s for securely distributing and persisting messages in
JSON
JSON (JavaScript Object Notation, pronounced or ) is an open standard file format and electronic data interchange, data interchange format that uses Human-readable medium and data, human-readable text to store and transmit data objects consi ...
format over an open federation of servers.
It can integrate with standard
web service
A web service (WS) is either:
* a service offered by an electronic device to another electronic device, communicating with each other via the Internet, or
* a server running on a computer device, listening for requests at a particular port over a n ...
s via
WebRTC
WebRTC (Web Real-Time Communication) is a free and open-source project providing web browsers and mobile applications with real-time communication (RTC) via application programming interfaces (APIs). It allows audio and video communication and ...
, facilitating browser-to-browser applications.
History
Beginning-2018
The initial project was created inside
Amdocs, while building a chat tool called "Amdocs Unified Communications",
by Matthew Hodgson and Amandine Le Pape. Amdocs then funded most of the development work from 2014 to October 2017.
Matrix was the winner of the Innovation award at WebRTC 2014 Conference & Expo,
and of the "Best in Show" award at WebRTC World in 2015.
The protocol received praise mixed with some cautionary notes after it launched in 2014. Reviewers noted that other attempts at defining an open
instant messaging
Instant messaging (IM) technology is a type of synchronous computer-mediated communication involving the immediate ( real-time) transmission of messages between two or more parties over the Internet or another computer network. Originally involv ...
or multimedia
signalling protocol of this type had difficulties becoming widely adopted—e.g.
XMPP
Extensible Messaging and Presence Protocol (abbreviation XMPP, originally named Jabber) is an Open standard, open communication protocol designed for instant messaging (IM), presence information, and contact list maintenance. Based on XML (Ext ...
and
IRCv3—and have highlighted the challenges involved, both technological and political.
Some were unclear if there was enough demand among users for services which interoperate among providers.
In 2015, a
subsidiary
A subsidiary, subsidiary company, or daughter company is a company (law), company completely or partially owned or controlled by another company, called the parent company or holding company, which has legal and financial control over the subsidia ...
of Amdocs was created, named "Vector Creations Limited", and the Matrix staff was moved there.
In July 2017, the funding by Amdocs was announced to be cut and in the following weeks the core team created their own
UK-based company, "New Vector Limited",
which was mainly built to support the development of Matrix and Riot, the second of which was later renamed to
Element.
During this time period, there were multiple calls for support to the community and companies that build on Matrix,
to help pay for the wages of at least part of the core team.
Patreon and
Liberapay crowdfunding accounts were created,
and the core team started a
video podcast
A podcast is a program made available in digital format for download over the Internet. Typically, a podcast is an episodic series of digital audio files that users can download to a personal device or stream to listen to at a time of their ...
, called Matrix "Live" to keep the contributors up to speed with ongoing developments.
This was expanded by a weekly
blog
A blog (a Clipping (morphology), truncation of "weblog") is an informational website consisting of discrete, often informal diary-style text entries also known as posts. Posts are typically displayed in Reverse chronology, reverse chronologic ...
format, called "This Week in Matrix", where interested community members could read, or submit their own, Matrix-related news.
The company was created with the goal of offering
consultancy
A consultant (from "to deliberate") is a professional (also known as ''expert'', ''specialist'', see variations of meaning below) who provides advice or services in an area of specialization (generally to medium or large-size corporations). Con ...
services for Matrix and paid hosting of Matrix servers (as a platform called modular.im, which was later renamed to
Element matrix services) to generate income.
In the early weeks after its creation, the Matrix team and the company
Purism published plans to collaborate in the creation of the
Librem 5 phone.
The Librem 5 was intended to be a Matrix native phone, where the default pre-installed messaging and caller app should use Matrix for audio and video calls and instant messaging.
In 2017,
KDE
KDE is an international free software community that develops free and open-source software. As a central development hub, it provides tools and resources that enable collaborative work on its projects. Its products include the KDE Plasma gra ...
announced it was working on including support for the protocol in its IRC client
Konversation.
In late January 2018, the company received an investment of US$5 million from Status,
an
Ethereum based
startup.
In April 2018, the
French Government
The Government of France (, ), officially the Government of the French Republic (, ), exercises Executive (government), executive power in France. It is composed of the Prime Minister of France, prime minister, who is the head of government, ...
announced plans to create their own instant messaging tool.
Work on the application based on Riot and Matrix protocol—called after French scientist
Claude Chappe
Claude Chappe (; 25 December 1763 – 23 January 1805) was a French inventor who in 1792 demonstrated a practical semaphore line, semaphore system that eventually spanned all of France. His system consisted of a series of towers, each within l ...
—had started in early 2018, and the program was open-sourced and released on iOS and Android in April 2019.
In October 2018, a
Community Interest Company
A community interest company (CIC, pronounced "see-eye-see", or colloquially, "kick") is a form of social enterprise in the United Kingdom intended "for people wishing to establish businesses which trade with a social purpose..., or to carry on ...
called "The Matrix.org Foundation C.I.C."
was incorporated, to serve as a neutral legal entity for further development of the standard.
2019-2022
In February 2019, the KDE community announced plans to adopt Matrix for its internal communications needs, as a decentralized alternative to other instant messaging servers like
Telegram
Telegraphy is the long-distance transmission of messages where the sender uses symbolic codes, known to the recipient, rather than a physical exchange of an object bearing the message. Thus flag semaphore is a method of telegraphy, whereas pi ...
,
Slack, and
Discord, and operate its own server instance.
In April 2019, Matrix.org suffered a security breach in which the production servers were compromised.
This breach was not an issue with the Matrix protocol and did not directly affect homeservers other than matrix.org.
In June 2019, the Matrix protocol left beta phase with the version 1.0 across all APIs (and Synapse, at the time the reference homeserver), and the Matrix foundation was officially launched.
In October 2019, New Vector raised an additional US$8.5 million to develop Matrix.
In December 2019,
German Ministry of Defense announced a pilot project called BwMessenger for secure instant messaging tool based on Matrix protocol, Synapse server and Riot application. This is modeled after French Tchap project. The long-term goal of the Federal Government is the secure use of messenger services that covers all ministries and subordinate authorities.
In December 2019,
Mozilla
Mozilla is a free software community founded in 1998 by members of Netscape. The Mozilla community uses, develops, publishes and supports Mozilla products, thereby promoting free software and open standards. The community is supported institution ...
announced that it would begin to use Matrix as a replacement for
IRC
IRC (Internet Relay Chat) is a text-based chat system for instant messaging. IRC is designed for group communication in discussion forums, called '' channels'', but also allows one-on-one communication via private messages as well as chat ...
. In the announcement, they said that they would be completing the move in late January 2020. The Mozilla IRC server, irc.mozilla.org, is said to be removed "no later than March of next year
020. In March 2020, the IRC server was turned off and users were directed to join chat.mozilla.org, Mozilla's Element instance.
In May 2020, Matrix enabled
end-to-end encryption
End-to-end encryption (E2EE) is a method of implementing a secure communication system where only communicating users can participate. No one else, including the system provider, telecom providers, Internet providers or malicious actors, can ...
by default for private conversations.
In October 2020,
Element acquired
Gitter from
GitLab
GitLab is a software forge primarily developed by GitLab Inc. It is available as a community edition and a commercial edition.
History
GitLab was created in 2011 by Ukrainian programmer Dmitriy Zaporozhets as a side project written in Rub ...
. This meant that all Gitter users would be transitioned over to Matrix.
In March 2021, matrix.org announced that there are 28 million global visible accounts.
In September 2022, some security issues were found in the implementation of one client-side encryption library.
Due to the interoperable architecture, only the affected client applications needed upgrade and third-party implementations were not affected.
[ All critical issues were fixed, with the remaining ones being either non-exploitable in practice, or already prominently warned for in the client.][
]
2022-present
In February 2023, the Matrix foundation was invited to the Digital Markets Act stakeholder workshop on "Interoperability between messaging services" and showcased how a standardised open protocol can be used to interoperate without sacrificing privacy.
In June 2023, Beeper became the first member of The Matrix Foundation.
In April 2024, the first elections of the Matrix Foundation's Governing Board were held, which is made up of nine different constituency groups across three categories: nonprofit and community representatives, funder representatives, and foundation representatives.
Protocol
Matrix targets use cases like voice over IP
Voice over Internet Protocol (VoIP), also known as IP telephony, is a set of technologies used primarily for voice communication sessions over Internet Protocol (IP) networks, such as the Internet. VoIP enables voice calls to be transmitted as ...
, Internet of things
Internet of things (IoT) describes devices with sensors, processing ability, software and other technologies that connect and exchange data with other devices and systems over the Internet or other communication networks. The IoT encompasse ...
and instant messaging
Instant messaging (IM) technology is a type of synchronous computer-mediated communication involving the immediate ( real-time) transmission of messages between two or more parties over the Internet or another computer network. Originally involv ...
, including group communication, along with a longer-term goal to be a generic messaging and data synchronization system for the web. The protocol supports security and replication, maintaining full conversation history, with no single points of control or failure. Existing communication services can integrate with the Matrix ecosystem.
Client software is available for open-federated Instant Messaging (IM), voice over IP (VoIP) and Internet of Things (IoT) communication.
The Matrix standard specifies REST
REST (Representational State Transfer) is a software architectural style that was created to describe the design and guide the development of the architecture for the World Wide Web. REST defines a set of constraints for how the architecture of ...
ful HTTP APIs for securely transmitting and replicating JSON data between Matrix-capable clients, servers and services. Clients send data by PUTing it to a ‘room’ on their server, which then replicates the data over all the Matrix servers participating in this ‘room’. This data is signed using a git-style signature to mitigate tampering, and the federated traffic is encrypted with HTTPS and signed with each server's private key to avoid spoofing. Replication follows eventual consistency semantics, allowing servers to function even if offline or after data-loss by re-synchronizing missing history from other participating servers.
Olm encryption
The Olm library provides for optional end-to-end encryption
End-to-end encryption (E2EE) is a method of implementing a secure communication system where only communicating users can participate. No one else, including the system provider, telecom providers, Internet providers or malicious actors, can ...
on a room-by-room basis via a Double Ratchet Algorithm implementation. It can ensure that conversation data at rest is only readable by the room participants. With it configured, data transmitted over Matrix is only visible as ciphertext
In cryptography, ciphertext or cyphertext is the result of encryption performed on plaintext using an algorithm, called a cipher. Ciphertext is also known as encrypted or encoded information because it contains a form of the original plaintext ...
to the Matrix servers, and can be decrypted only by authorized participants in the room. The encryption protocol is called Olm; Megolm is an expansion of Olm to better suit the need for bigger rooms. There are two main implementations:
* vodozemac, the current reference implementation, written in Rust
Rust is an iron oxide, a usually reddish-brown oxide formed by the reaction of iron and oxygen in the catalytic presence of water or air moisture. Rust consists of hydrous iron(III) oxides (Fe2O3·nH2O) and iron(III) oxide-hydroxide (FeO(OH) ...
. In 2022, it has been audited by Least Authority, whose findings are publicly available and have been addressed by the Matrix team. The review was partially funded by Germany's national agency for the healthcare system digitalisation ().
* libolm, the former reference implementation, has been subject of a cryptographic review by NCC Group, whose findings are publicly available, and have been addressed by the Matrix team. The review was sponsored by the Open Technology Fund.
Outbound group session keys are needed for initiating new Megolm sessions for group chats. In addition, cross-signing-keys are used to verify the overall identity of the user and their device(s). When enabling a secure backup, all those keys are encrypted using a strong passphrase or a randomly generated recovery key. This ensures that even a person who has access to the backup of the keys could not decrypt messages, guaranteeing full E2EE.
Under MSC2883 Matrix plans implementation of MLS
Major League Soccer (MLS) is a professional soccer league in North America and the highest level of the United States soccer league system. It comprises 30 teams, with 27 in the United States and 3 in Canada, and is sanctioned by the United ...
for group chats encryption.
Bridges
Matrix supports bridging messages from different chat applications into Matrix rooms. These bridges are programs that run on the server and communicate with the non-Matrix servers. Bridges can either be acting as puppets or relays, where in the former the individual user's account is visibly posting the messages, and in the latter a bot posts the messages for non-puppeteered user accounts.
Currently there are official bridges for:
* Gitter
* IRC
IRC (Internet Relay Chat) is a text-based chat system for instant messaging. IRC is designed for group communication in discussion forums, called '' channels'', but also allows one-on-one communication via private messages as well as chat ...
* Slack/ Mattermost
* XMPP
Extensible Messaging and Presence Protocol (abbreviation XMPP, originally named Jabber) is an Open standard, open communication protocol designed for instant messaging (IM), presence information, and contact list maintenance. Based on XML (Ext ...
Bridges for the following notable applications are maintained by the community:
* Apple iMessage
* Discord
* Email
Electronic mail (usually shortened to email; alternatively hyphenated e-mail) is a method of transmitting and receiving Digital media, digital messages using electronics, electronic devices over a computer network. It was conceived in the ...
* Facebook Messenger/Instagram
Instagram is an American photo sharing, photo and Short-form content, short-form video sharing social networking service owned by Meta Platforms. It allows users to upload media that can be edited with Social media camera filter, filters, be ...
* Google Chat
* GroupMe
* Mastodon
A mastodon, from Ancient Greek μαστός (''mastós''), meaning "breast", and ὀδούς (''odoús'') "tooth", is a member of the genus ''Mammut'' (German for 'mammoth'), which was endemic to North America and lived from the late Miocene to ...
* RSS/Twitter
Twitter, officially known as X since 2023, is an American microblogging and social networking service. It is one of the world's largest social media platforms and one of the most-visited websites. Users can share short text messages, image ...
feeds
* Signal
A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology.
In ...
* Skype
Skype () was a proprietary telecommunications application operated by Skype Technologies, a division of Microsoft, best known for IP-based videotelephony, videoconferencing and voice calls. It also had instant messaging, file transfer, ...
* Telegram
Telegraphy is the long-distance transmission of messages where the sender uses symbolic codes, known to the recipient, rather than a physical exchange of an object bearing the message. Thus flag semaphore is a method of telegraphy, whereas pi ...
* SMS
* WeChat
WeChat or Weixin in Chinese ( zh, c=微信, p=Wēixìn , l=micro-message) is an instant messaging, social media, and mobile payment mobile app, app developed by Tencent. First released in 2011, it became the world's largest standalone mobile a ...
* Whatsapp
WhatsApp (officially WhatsApp Messenger) is an American social media, instant messaging (IM), and voice-over-IP (VoIP) service owned by technology conglomerate Meta. It allows users to send text, voice messages and video messages, make vo ...
* LinkedIn
LinkedIn () is an American business and employment-oriented Social networking service, social network. It was launched on May 5, 2003 by Reid Hoffman and Eric Ly. Since December 2016, LinkedIn has been a wholly owned subsidiary of Microsoft. ...
Adoption
Communication among the public agents of France's central administration happens on a Matrix-based internal network, named .
The project is developed by the Interministerial Directorate for Digital Affairs () with the explicit goals of security and digital sovereignty, both of which were deemed to be impossible through WhatsApp, Telegram and Slack.
Germany's national healthcare system's internal communication network uses a Matrix-based
system (''Ti-Messenger'') for real-time communication among Germany's healthcare organizations and sharing of sensitive patient data, and is developed by the national agency for the digitalisation of the healthcare system ( GmbH).
Reasons for choosing Matrix included federated identity
A federated identity in information technology is the means of linking a person's electronic identity and attributes, stored across multiple distinct identity management systems.
Federated identity is related to single sign-on (SSO), in which a ...
management, which allows to reuse the existing identity infrastructure into the new chat system; the decentralized architecture, which allows cross-linking data from disparate sources; and the open protocol, which ensures interoperability and future-proof data exchange and prevents vendor lock-in
In economics, vendor lock-in, also known as proprietary lock-in or customer lockin, makes a customer dependent on a vendor for products, unable to use another vendor without substantial switching costs.
The use of open standards and alternati ...
.
Employees of the Bundeswehr
The (, ''Federal Defence'') are the armed forces of the Germany, Federal Republic of Germany. The is divided into a military part (armed forces or ''Streitkräfte'') and a civil part, the military part consists of the four armed forces: Germ ...
(Germany's armed forces) communicate with each other, and share classified documents (German VS-NfD), on a private Matrix network, with a customized version of the Matrix Element app: BwMessenger (as mentioned above).
Two states of Germany run their own Matrix chat networks for schools. Rhineland-Palatinate
Rhineland-Palatinate ( , ; ; ; ) is a western state of Germany. It covers and has about 4.05 million residents. It is the ninth largest and sixth most populous of the sixteen states. Mainz is the capital and largest city. Other cities are ...
is offering SchulchatRLP as a fork of FluffyChat since the beginning of 2024. The server is sized for half a million pupils and deployed on kubernetes and the client was enhanced with features such as read receipt for parents or polls by fairkom., who became a silver partner of the Matrix foundation in 2023. Bavaria
Bavaria, officially the Free State of Bavaria, is a States of Germany, state in the southeast of Germany. With an area of , it is the list of German states by area, largest German state by land area, comprising approximately 1/5 of the total l ...
has adapted the Element client as a proprietary ByCS messenger.
Luxembourg has developed a Matrix-based chat service for government officials, named Luxchat4Gov, planned to be released in the second quartal of 2023.
The Swedish Social Insurance Agency (''Försäkringskassan'') is using Matrix for internal communications.
RocketChat recommends federation between RocketChat servers with its built-in Matrix bridge since version 4.7.0.
FOSDEM
Free and Open source Software Developers' European Meeting (FOSDEM) is an annual software engineering conference. It is non-commercial and volunteer-organized with a focus on free and open-source software. Initiated in 2000, it is usually held d ...
uses Matrix since 2021.
The hosting is provided by Element Matrix Services, which publishes the technical details for public review soon after the event.
Polish Armed Forces
The Armed Forces of the Republic of Poland (, ; abbreviated SZ RP), also called the Polish Armed Forces and popularly called in Poland (, roughly "the Polish Military"—abbreviated ''WP''), are the national Military, armed forces of the Poland, ...
introduced a Matrix protocol based communicator in 2023, to exchange unclassified information among Polish Army soldiers as well as for Ministry of National Defence employees.
See also
* Fediverse
* Mastodon
A mastodon, from Ancient Greek μαστός (''mastós''), meaning "breast", and ὀδούς (''odoús'') "tooth", is a member of the genus ''Mammut'' (German for 'mammoth'), which was endemic to North America and lived from the late Miocene to ...
: A decentralized micro blogging platform based on ActivityPub similar to X (formerly Twitter)
* XMPP
Extensible Messaging and Presence Protocol (abbreviation XMPP, originally named Jabber) is an Open standard, open communication protocol designed for instant messaging (IM), presence information, and contact list maintenance. Based on XML (Ext ...
* Session Initiation Protocol
The Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating communication sessions that include voice, video and messaging applications. SIP is used in Internet telephony, in private IP telepho ...
(SIP)
* Rich Communication Services
Rich Communication Services (RCS) is a communication protocol standard for instant messaging, primarily for mobile phones, developed and defined by the GSM Association (GSMA). It aims to be a replacement of SMS and Multimedia Messaging Service, ...
* IRC
IRC (Internet Relay Chat) is a text-based chat system for instant messaging. IRC is designed for group communication in discussion forums, called '' channels'', but also allows one-on-one communication via private messages as well as chat ...
References
External links
*
{{Computer-mediated communication
Application layer protocols
Communication
End-to-end encryption
Internet properties established in 2014
VoIP protocols