Dendrite is a second-generation Matrix homeserver written in Go!
Find a file
Wenyao bbbee3538b docs: update PROGRESS.md for Tasks #6 & #10
Mark Task #6 (Media Quarantine) and Task #10 (Thread Notifications) as committed to main.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 23:18:04 -07:00
.forgejo/workflows fix: trigger workflow by updating workflow name 2025-10-22 09:44:55 -07:00
.github ci: configure realistic coverage enforcement and comprehensive documentation 2025-10-21 23:49:42 -07:00
appservice Add media quarantine storage, downloads, and admin controls 2025-10-22 17:21:50 -07:00
build Fix building Pinecone and Yggrasil docker images (#3592) 2025-06-05 20:45:15 +02:00
clientapi feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
cmd Bump go in docker images (#3582) 2025-05-17 21:05:45 +02:00
contrib Merge commit from fork 2025-01-16 19:35:50 +01:00
docs feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
federationapi feat: Task #4 - Add Prometheus metrics for monitoring 2025-10-22 09:05:45 -07:00
helm Version v0.14.1 (#3501) 2025-01-16 19:42:51 +01:00
internal feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
mediaapi feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
relayapi Fix linting 2024-11-14 16:40:08 +01:00
roomserver Improve test coverage across 2 packages (Phase 1 & 2) 2025-10-21 19:45:24 -07:00
setup Add media quarantine storage, downloads, and admin controls 2025-10-22 17:21:50 -07:00
syncapi feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
test fix: quote username in PostgreSQL GRANT statement 2025-10-22 00:15:14 -07:00
userapi feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
.dockerignore Add revision to version string (#3147) 2023-07-11 13:56:25 +02:00
.gitignore [helm] Update postgresql chart to 14.2.3 (#3292) 2024-02-29 08:46:40 +01:00
.golangci.yml Fix ordering issues in requesting backfill (#3530) 2025-05-16 17:11:29 +02:00
100_PERCENT_COVERAGE_PLAN.md docs: finalize test coverage improvement documentation 2025-10-21 23:35:14 -07:00
are-we-synapse-yet.list Support for room version v11 (#3204) 2023-09-27 08:27:08 +02:00
are-we-synapse-yet.py Add Are We Synapse Yet to GHA (#2321) 2022-04-05 15:32:30 +02:00
BACKLOG.md feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
build-dendritejs.sh Add startup testing for Wasm Pinecone build (#1910) 2021-07-20 12:14:58 +01:00
CHANGES.md v0.15.2 (#3637) 2025-08-15 11:44:25 +01:00
CLAUDE.md Add Phase 0: Admin API v1 Router Infrastructure and roadmap documentation 2025-10-22 04:10:15 -07:00
CONTINUOUS_WORK_PROMPT.md feat: Tasks #6 & #10 - Media Quarantine (90%) + Thread Notifications (100%) 2025-10-22 23:16:37 -07:00
CONTRIBUTING.md CONTRIBUTING: Update license name to AGPLv3 (#3611) 2025-08-15 08:03:43 +01:00
dendrite-sample.yaml fix: address rate limiting review feedback - resolve mutex issues, improve docs 2025-10-22 08:27:13 -07:00
Dockerfile Bump go in docker images (#3582) 2025-05-17 21:05:45 +02:00
FINAL_COVERAGE_REPORT.md Implement comprehensive TDD testing roadmap with 6,956 lines of test code 2025-10-21 16:34:23 -07:00
go.mod feat: Task #4 - Add Prometheus metrics for monitoring 2025-10-22 09:05:45 -07:00
go.sum feat: Task #4 - Add Prometheus metrics for monitoring 2025-10-22 09:05:45 -07:00
LICENSE Update license file 2024-10-17 17:21:06 +02:00
LICENSE-COMMERCIAL Add commercial license 2024-10-18 15:06:26 +02:00
Makefile fix: replace literal \t with actual tabs in Makefile 2025-10-21 23:53:54 -07:00
PHASE1_COMPLETION_REPORT.md Update Phase 1 report with 99.2% final coverage 2025-10-21 20:45:48 -07:00
PHASE2_COMPLETION_REPORT.md Update Phase 2 report with final 57.1% coverage 2025-10-21 23:26:35 -07:00
PHASE4A_RACE_DETECTION_RESULTS.md Implement comprehensive TDD testing roadmap with 6,956 lines of test code 2025-10-21 16:34:23 -07:00
PROGRESS.md docs: update PROGRESS.md for Tasks #6 & #10 2025-10-22 23:18:04 -07:00
README.md Implement comprehensive TDD testing roadmap with 6,956 lines of test code 2025-10-21 16:34:23 -07:00
run-sytest.sh Use /usr/bin/env bash in shebangs to make them universal (#2735) 2022-09-27 09:42:08 +01:00
show-expected-fail-tests.sh Use /usr/bin/env bash in shebangs to make them universal (#2735) 2022-09-27 09:42:08 +01:00
SYNCAPI_TESTING_ANALYSIS.md Implement comprehensive TDD testing roadmap with 6,956 lines of test code 2025-10-21 16:34:23 -07:00
sytest-blacklist v0.15.1 (#3632) 2025-08-13 17:05:44 +01:00
sytest-whitelist Support for fallback keys (#3451) 2024-12-17 19:19:15 +01:00
TDD_ROADMAP_COMPLETION_SUMMARY.md Archive TDD roadmap working documents and mark as complete 2025-10-21 17:08:14 -07:00
test-dendritejs.sh Add startup testing for Wasm Pinecone build (#1910) 2021-07-20 12:14:58 +01:00
TESTING_COVERAGE_SUMMARY.md ci: configure realistic coverage enforcement and comprehensive documentation 2025-10-21 23:49:42 -07:00

Dendrite

Build status codecov Go Report Card Dendrite Dendrite Dev

Dendrite is a second-generation Matrix homeserver written in Go.

Active Development: Dendrite is under active development with the goal of achieving feature parity with Synapse. The project is being continued by the community with plans to implement modern Matrix features including Sliding Sync (MSC4186), Matrix 2.0 support, and the Matrix Authentication Service (MAS).

Dendrite intends to provide an efficient and reliable alternative to Synapse:

  • Efficient: A small memory footprint with better baseline performance than an out-of-the-box Synapse.
  • Reliable: Implements the Matrix specification as written, using the same test suites as Synapse.

Dendrite is beta software, which means:

  • Dendrite is ready for early adopters. We recommend running Dendrite with a PostgreSQL database.
  • Dendrite has periodic releases. We intend to release new versions as we fix bugs and land significant features.
  • Dendrite supports database schema upgrades between releases. This means you should never lose your messages when upgrading Dendrite.

This does not mean:

  • Dendrite is bug-free. It has not yet been battle-tested in the real world and so will be error prone initially.
  • Dendrite is feature-complete. There may be client or federation APIs that are not implemented.
  • Dendrite is ready for massive homeserver deployments. There is no high-availability/clustering support.

Currently, we expect Dendrite to function well for small (10s/100s of users) homeserver deployments as well as P2P Matrix nodes in-browser or on mobile devices.

If you have further questions, please take a look at our FAQ or join us in:

Roadmap: Dendrite is actively working towards implementing the following Matrix 2.0 features to achieve full compatibility with modern clients like Element X:

  • MSC4186: Simplified Sliding Sync - Required for Element X and provides instant login/sync performance.
  • MSC3861: Next-gen auth via OIDC - Matrix Authentication Service (MAS) for modern authentication flows.

These features are planned for implementation as part of our feature parity goal with Synapse.

Requirements

See the Planning your Installation page for more information on requirements.

To build Dendrite, you will need Go 1.21 or later.

For a usable federating Dendrite deployment, you will also need:

  • A domain name (or subdomain)
  • A valid TLS certificate issued by a trusted authority for that domain
  • SRV records or a well-known file pointing to your deployment

Also recommended are:

  • A PostgreSQL database engine, which will perform better than SQLite with many users and/or larger rooms
  • A reverse proxy server, such as nginx, configured like this sample

The Federation Tester can be used to verify your deployment.

Get started

If you wish to build a fully-federating Dendrite instance, see the Installation documentation. For running in Docker, see build/docker.

The following instructions are enough to get Dendrite started as a non-federating test deployment using self-signed certificates and SQLite databases:

$ git clone https://github.com/element-hq/dendrite
$ cd dendrite
$ go build -o bin/ ./cmd/...

# Generate a Matrix signing key for federation (required)
$ ./bin/generate-keys --private-key matrix_key.pem

# Generate a self-signed certificate (optional, but a valid TLS certificate is normally
# needed for Matrix federation/clients to work properly!)
$ ./bin/generate-keys --tls-cert server.crt --tls-key server.key

# Copy and modify the config file - you'll need to set a server name and paths to the keys
# at the very least, along with setting up the database connection strings.
$ cp dendrite-sample.yaml dendrite.yaml

# Build and run the server:
$ ./bin/dendrite --tls-cert server.crt --tls-key server.key --config dendrite.yaml

# Create an user account (add -admin for an admin user).
# Specify the localpart only, e.g. 'alice' for '@alice:domain.com'
$ ./bin/create-account --config dendrite.yaml --username alice

Then point your favourite Matrix client at http://localhost:8008 or https://localhost:8448.

Contributing

We would be grateful for any help on issues marked as Are We Synapse Yet. These issues all have related Sytests which need to pass in order for the issue to be closed. Once you've written your code, you can quickly run Sytest to ensure that the test names are now passing.

If you're new to the project, see our Contributing page to get up to speed, then look for Good First Issues. If you're familiar with the project, look for Help Wanted issues.

Copyright 2017 OpenMarket Ltd Copyright 2017 Vector Creations Ltd Copyright 2017-2025 New Vector Ltd

This software is dual-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.