OpenSourcePicks

Open source alternatives to popular software, with live GitHub data

GitHub stats refreshed every day

Element

End-to-end encrypted chat on the federated Matrix standard, with a self-hostable server suite

Visit ElementGitHubDocumentation

Main features

  • End-to-end encrypted rooms and direct messages by default
  • Federation with any Matrix server
  • Spaces to group rooms for a team or community
  • Threads, reactions, file sharing and search
  • Voice and video calls with Element Call
  • Cross-signed device verification and key backup
  • Web, desktop and Element X mobile apps
  • Bridges and bots, including Hookshot for GitHub, GitLab and Jira

What Element does

Element is a chat client for Matrix, an open standard for decentralized communication over a federation of servers. Each organization runs, or rents, a Matrix homeserver; users on different homeservers can share rooms and message each other, much as email works between domains. Element offers rooms, direct messages, spaces that group rooms, threads, file sharing, and voice and video calls through Element Call. This repository holds Element Web and the Electron desktop app; on phones Element recommends its Element X apps.

Self-hosting Element with Matrix

Element is only the client. A self-hosted setup has up to five parts: a homeserver that stores rooms and federates, Matrix Authentication Service (MAS) for logins, Element Web if you want your own copy of the web app, a LiveKit-based backend for Element Call, and DNS and TLS that tie them together.

Choosing a homeserver

Homeserver Language, license Status on matrix.org Notes
Synapse Python and Rust; AGPL-3.0 or commercial license from Element Stable Reference server; packages for Debian and Ubuntu and Docker images
Tuwunel Rust; Apache-2.0 Stable Successor to conduwuit, embedded RocksDB, sponsored by the Swiss government; not yet a drop-in Synapse replacement
Continuwuity Rust; Apache-2.0 Stable Community continuation of conduwuit, developed on Forgejo with a GitHub mirror
Conduit Rust; hosted on GitLab Beta Single binary with embedded database, missing some smaller features
Dendrite Go; maintained by Element Beta Maintenance mode, security fixes only; lacks what Element X needs

conduwuit itself was archived in May 2026. Synapse’s documentation says it defaults to SQLite but almost every installation should use PostgreSQL.

The packaged route: ESS Community

Element’s ESS Community installs Synapse, MAS, the Element Call backend, Element Web, the Element Admin console, the Hookshot bot, an optional PostgreSQL and HAProxy with Helm charts on any Kubernetes distribution; the quick setup uses K3s and needs 2 CPU cores and 2 GB of RAM. You create DNS records for the server name plus subdomains for Synapse, MAS, the call backend, Element Web and the admin console, and open TCP 80, 443 and 30001 and UDP 30002. Element aims it at non-commercial communities of up to 100 users and provides no support for it.

Building it piece by piece

  • Server name. It becomes part of every user ID, such as @alice:example.com, and cannot be changed later without resetting the database.
  • Federation. Other servers reach yours on port 8448 at the server name unless you delegate to another host and port with a .well-known file. The Matrix.org Federation Tester checks the result.
  • Element Web. It is static files, available as a release tarball, a Debian package or the vectorim/element-web Docker image. Point default_server_config in config.json at your homeserver, serve it over HTTPS, and keep it off the homeserver’s domain: Element advises a separate domain to limit cross-site scripting risk.
  • Element X. The mobile apps need Simplified Sliding Sync, which Synapse supports from version 1.114.0, and either OIDC login through MAS or plain password login.
  • Calls. Element Call needs a LiveKit SFU, the MatrixRTC Authorization Service and a few experimental settings in Synapse.

Licensing

Element Web can be used under AGPL-3.0-or-later, GPL-3.0-or-later or a commercial license; the Element X apps and MAS are AGPL-3.0. Synapse was Apache-2.0 in the matrix-org GitHub organization until December 2023, when Element moved development to its own element-hq organization and switched to AGPL-3.0, with a commercial license available; the old repository was archived in April 2024.

Security and encryption

Element turns on end-to-end encryption by default using Matrix’s Olm (a Double Ratchet implementation) and Megolm for group rooms, with cross-signed device verification and key backup. Unencrypted rooms are possible for public communities. Server-side search, content scanning and compliance archiving are harder with encryption; Element covers them in its paid edition.

Hosted version

app.element.io is a hosted copy of Element Web that signs in to any homeserver, and matrix.org is the largest free provider of accounts. Element says its Server Suite supports self-hosted and fully managed deployments; its pricing lists Community, Enterprise from 100 users with Synapse Pro, and an air-gapped Sovereign edition. Matrix.org also lists independent hosting providers.

Limitations

A complete Matrix stack is several services. ESS Community is AGPL software, but Element positions it for non-commercial communities without support, so organizations should budget for ESS Pro or run and support the components themselves. Encryption complicates search and moderation.

Who it suits

Element fits organizations that need encryption by default and want to federate with partners or communities on their own servers. For simpler self-hosting, compare Zulip or Mattermost; for encrypted messaging from one vendor, see Wire. Element Call is reviewed separately as Element Call.

License details

AGPL-3.0-or-later. Element Web is also available under GPL-3.0-or-later or a paid commercial license. Synapse is AGPL-3.0 or commercial; ESS Community is AGPL-3.0-only and meant for non-commercial use up to 100 users; ESS Pro and Synapse Pro are proprietary.

What the GNU AGPL v3 means for you

Technical details

Self-hosting needs

  • Matrix homeserver (Synapse)
  • PostgreSQL

Built with

  • TypeScript
  • React

GitHub topics

  • hacktoberfest
  • matrix

Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.

Element compared with similar tools

AppLicenseSelf-hosting needsHosted versionLast commit
CampfireMITDockerNotoday
ElementAGPL-3.0-or-later*Matrix homeserver (Synapse), PostgreSQLYesyesterday
FluxerAGPL-3.0*Docker, PostgreSQL, SeaweedFS, LiveKitYestoday
MattermostAGPL-3.0*PostgreSQLYestoday
Rocket.ChatMIT*MongoDBYesyesterday
ZulipApache-2.0*PostgreSQL, Redis, RabbitMQ, memcachedYestoday

An asterisk marks a license with exceptions, such as proprietary directories or paid plugins; see the app page.