Matrix customization

Matrix customization covers Element branding, Synapse pluggable modules, bots and integrations, and the testing that keeps them working through frequent homeserver releases. This page explains the scope, cost drivers and what you need to provide.

On this page

When Matrix customization needs outside help

Matrix customization means changing what the organization sees and what Synapse does: branding the Element clients, adding pluggable modules to the homeserver, and running bots or integrations that talk to internal systems. Most teams that own a self-hosted Matrix deployment can handle the simple parts in-house, such as theme settings and room defaults. Custom code that touches the homeserver, the client build or the integration layer is where a partner usually earns its place, because that work has to survive a steady stream of upstream releases. The usual triggers are a new client brand for a subsidiary or business unit, an approval workflow that gates room creation or file sharing, and a link to an identity or ticketing system so that access and incident records stay in step with the systems of record.

The main reason custom code is expensive is not the first build. Every Synapse release can change internal APIs, database schemas and configuration keys, and a module or bot written against one version can fail silently after an upgrade. Before you commit to building anything, check how the Synapse upgrade notes describe changes in your target versions, then ask who will rebase, retest and redeploy each custom piece on every upgrade cycle, and whether that person is named in the plan. A useful first step is an inventory: list every custom component, the Synapse and client versions it depends on, the data it reads or writes, and the owner who answers for it.

Ask a partner to show how they will keep each custom piece working, not only how they will build it. Useful questions include whether modules and bots are isolated from core code, how their tests run against a new homeserver release before production, and whether a rollback path exists when a schema change makes reverting difficult. Also confirm who holds the source, the deployment scripts and the runbooks after handover, since an integration no one can maintain is a liability for a regulated organization. Treat these answers as part of the quote, because they determine the recurring effort that the one-time build figure hides.

What Matrix customization work includes

Matrix customization usually splits into client, server, integration and assurance work that proceeds in parallel but must line up with the same Synapse version. Each card below names what is delivered and what the client keeps, so the custom layer stays owned, tested and upgradeable after the engagement ends.

Element client branding and configuration

Branding covers logos, colors, names and the client configuration file that sets default homeserver, server-side features and policy options for Element. The work is mostly configuration, but Element builds are a separate artifact from Synapse, so the client version must be tested against the homeserver version you run. Deliverables include the branded build or configuration, the build pipeline, and a list of settings chosen and why. Confirm which client options your Element version supports before promising a specific behavior.

Element Server Suite

Synapse pluggable modules

Synapse supports pluggable modules that hook into server behavior, such as custom account or event logic. Each module depends on a specific Synapse module API, so the interface you build against must be confirmed in the Synapse version you run and rechecked at every upgrade. Deliverables include module source in the client's repository, packaging, configuration entries, and a record of which Synapse version each module was tested on. Ask for the module's failure mode: whether a broken module stops the homeserver or only disables its own behavior.

Synapse docs

Bots and internal system integrations

Bots and integrations connect rooms to internal systems such as ticketing, alerting, identity lookups or document tools. They run as separate services that authenticate with their own accounts and tokens, so their credentials, room membership and rate behavior need explicit design. Deliverables include bot code, service configuration, secret handling notes, and an inventory of every account and room each integration can reach. Ask who approves new bots and how a bot account is revoked when its owner leaves.

Custom homeserver behavior configuration

Beyond modules, homeserver behavior is set in the configuration file, including registration rules, federation allow lists, media limits and retention options. Each setting is a decision with security and data control consequences, and settings that change between releases must be tracked. Deliverables include the reviewed configuration, a change log tied to each setting, and a justification record. Confirm each key against the configuration manual for your release instead of copying settings from older guides.

Configuration manual

Test coverage and upgrade checks

Custom pieces need automated tests that run against each candidate Synapse and Element release before production rollout. Tests should cover module behavior, bot login and message flow, configuration parsing and client load paths. Deliverables include the test suite, a staging environment definition, and a pass or fail checklist for each upgrade. Ask which tests run in the client's own pipeline and which need access to their infrastructure, since that affects who can execute them.

Documentation and handover

Handover turns custom work into something the client's team can operate without the original builders. The runbook explains how to build, deploy, roll back and debug each component, and names the owner of every module, bot and configuration file. Deliverables include the repository with commit history, the runbook, architecture notes, and a recorded or written walkthrough. Confirm who will maintain each component after handover and whether a retainer covers upgrade testing.

How custom pieces attach to Synapse and Element

The request starts in a custom Element client that users open in the browser or app, and passes to the Synapse main process, which handles client traffic and hands replication to workers through Redis. Workers and the main process share state in PostgreSQL. A bot or integration service is a separate custom component that calls the homeserver through its client API, so it sits outside the core request path. Sign-in goes to an identity provider before reaching Synapse. Check that each custom component uses only supported interfaces and that the upgrade process retests every hand-off shown here.

Custom clients, bots and modules around the upstream Synapse processes and data stores.

What drives Matrix customization cost and duration

This table lists the main factors that change the effort of Matrix customization and how each one can be kept in check. Read it as a checklist for scoping: each driver shows why it matters and what to ask a partner to price separately. The main takeaway is that custom code tied to unsupported internals costs more to keep working than the initial build.

DriverWhy it changes effortHow to keep it down
Number and type of custom piecesEach module, bot or bridge adds code to build, test, document and upgrade. Pieces that hook into internal APIs break more often than those using supported extension points.Limit custom code to supported Synapse pluggable modules and documented client configuration. Ask the quote to list each piece separately with its owner.
Branding depth across clientsChanging only logos and colors is a configuration task. Altering layouts, flows or strings across web, desktop and mobile builds multiplies build and test work.Keep branding to theme and configuration settings. Standardize on one client build for all platforms and ask for each platform to be priced.
Number of internal integrationsEach system the chat connects to (directory, ticketing, alerting, identity) needs its own credentials, failure handling and test cases.Prioritize integrations by business need and phase them. Ask for the integration count and the auth method for each in the quote.
Synapse version and worker layoutNewer releases can change schema and configuration, and worker setups add replication paths that custom code must respect. Rollback can be hard after schema changes.Pin a tested Synapse version, record the worker layout, and ask whether the quote includes retesting on each upstream release.
Edition choiceAGPL Synapse, Element Server Suite Pro and other homeservers expose different packaging, support terms and extension options, so the custom work differs by edition.Decide the edition before design starts. Ask the quote to state which edition and license terms its assumptions use.
Compliance and confidentiality requirementsAudit logging, access reviews, change records and data handling evidence add documentation and review steps to every custom change.Agree the evidence needed before build. Ask the quote to name the controls, the documents produced and who reviews them.
Number of environmentsEach environment (test, staging, production, disaster recovery) needs its own configuration, secrets and deployment run, and drift between them causes most upgrade failures.Manage all environments from one versioned configuration source. Ask the quote whether environment setup is included or priced per environment.

Phases of a Matrix customization project

The sequence moves a customization from a documented starting point on a known Synapse and Element version to a tested, owned change running in production with a runbook that the client's team can operate. Each phase closes with a named output so the client can review progress before the next phase starts.

  1. Inventory the target versions and environment

    Record the Synapse version in production, the Element clients in use (web, desktop, mobile, and any forks), the Python and PostgreSQL versions, the identity provider, and every existing customization such as modules, bots, bridges and custom CSS or assets. DeployOpen does this with the client's platform team, reading the running configuration rather than the intended one. The phase is done when the inventory is signed off and the target Synapse release for the work is named, with the upgrade notes for every release between the current and target versions reviewed. Output: an environment inventory and a version baseline.

  2. Define requirements and choose extension points

    Turn each business request into a requirement, then decide where it belongs: Element client configuration or branding, a Synapse pluggable module, an external bot or integration that uses the client-server API, or a change that should not be made at all. The choice matters because each extension point has a different upgrade exposure. Confirm with the client which requests are mandatory and which can be dropped if they add upgrade risk. Output: a requirements list with an extension point chosen for each item and a list of rejected options with reasons.

  3. Produce the design and review branding

    Write a design note covering each customization, its interfaces with Synapse and Element, its configuration keys and files, its data access, its logging, and its rollback path. Branding is reviewed separately with the client's communications or brand owner, including logos, colors, names and any text shown during sign-in or in the client's about screens. Security and compliance reviewers sign off any code that reads or writes user data or touches authentication. Output: an approved design note and a branding sign-off.

  4. Build and unit test the customizations

    Implement each item in version control with the client's repository and review process, pinned to the target Synapse and Element versions. Unit tests cover module logic and configuration parsing, and build checks confirm that the Element web bundle or packages compile with the chosen branding. Each change is documented with the exact configuration keys it uses, so later upgrades can be checked against them. The phase is complete when tests pass in the pipeline and the reviewed code is merged to the release branch. Output: a tested build and a change log.

  5. Deploy to staging on a current Synapse release

    Deploy the build to a staging environment that matches production in database engine, worker layout, identity provider and federation settings as closely as the client allows. Staging should run a current Synapse release, so the work is proven against the version the client will track, not only the one in production. Run the migration path from the production database snapshot where the client permits, and check that the schema changes, startup, login, and existing bots and integrations behave as expected. Output: a staging deployment record with the versions and the test results.

  6. Run acceptance testing with users and admins

    Ask a representative group of end users to test sign-in, room creation, messaging, file sharing and the branded screens, and ask administrators to test account management, the admin API, moderation and log access. Record each defect with a severity, and fix or accept each one in writing. Acceptance is closed when the client's named owners sign the test results and any deferred items have an owner and a due date. Output: signed acceptance results and a defect register.

  7. Roll out to production

    Schedule the change through the client's own release and change process, with a backup of the PostgreSQL database and media storage taken immediately before the change. Confirm that the team has checked the upgrade notes for schema changes, because rolling back a Synapse release can be difficult once the schema has changed. Deploy in the order the design note defines, verify login, messaging, federation (if enabled) and each customization, and keep the rollback plan ready until the owners accept the result. Output: a rollout record with the versions deployed, the backup reference, the checks run and the time of sign-off.

  8. Hand over with a runbook

    Deliver a runbook covering how each customization is built and deployed, which configuration keys and files it depends on, how to test it after a Synapse or Element upgrade, how to roll it back, and who owns each part. Walk the client's operations team through the runbook and a dry run of one upgrade test on staging. The phase closes when the client's team has run the upgrade test themselves or agreed the support arrangement in writing. Output: a signed runbook and a handover record.

Which custom Matrix work teams keep in-house

This table splits Matrix customization work into parts that usually stay with the organization and parts that are commonly outsourced, and names the skills each part needs. Read it as a starting division of labor to confirm with a partner, not as a fixed rule. The main takeaway is that business decisions and daily administration stay with the owner, while code-heavy extensions and their upgrade testing are where outside skills tend to matter most.

Work areaUsually kept in-houseCommonly outsourcedSkills needed
Business rulesDeciding which rooms, roles, retention and moderation policies applyTranslating approved rules into Synapse module logicPolicy ownership in-house, Python for modules outside
Branding approvalSigning off logos, colors, names and wording in Element clientsBuilding and packaging the branded clientBrand owner in-house, client build tooling outside
Client build pipelineReviewing release notes and choosing when to ship a buildSetting up the build, signing and distribution pipeline for Element forksClient build tooling such as Node.js and the Element web toolchain
Synapse modulesDefining what each module must do and who can change itWriting, testing and documenting pluggable modulesPython for Synapse modules, plus PostgreSQL basics
Bots and integrationsOwning the bot account, its purpose and its room membershipsBuilding bot logic and handling its API calls and token storageAPI and access token handling, secret management
Upgrade testing of custom codeAccepting test results and scheduling upgrade windowsRe-running module, bot and client tests against each new Synapse releaseTest automation, reading Synapse upgrade notes
Security review of extensionsApproving data access granted to each extensionReviewing code, permissions and secret handling before go-liveApplication security review, Python and API security
Daily administrationManaging users, rooms, deactivations and support requestsOften limited to handover and runbook writingMatrix admin tooling and access control policy
Hosting operationsDeciding the hosting model and on-call expectationsOperating Synapse under Kubernetes or systemd, if a partner runs itKubernetes or systemd operations, depending on the environment
User supportAnswering day-to-day questions and triaging issuesSecond-line technical support for custom componentsClient troubleshooting, log reading

What breaks custom Matrix code during homeserver releases

Custom Matrix work sits on top of a homeserver that changes on its own schedule. Modules, branded clients, bots and worker layouts each depend on details that a new release can alter, and the cost of a surprise is highest where rollback is hard. The cards below name the risks and the checks that keep them manageable.

Modules that import internal APIs

A Synapse pluggable module that imports internal classes or functions works until a release moves or renames them, and the failure often appears only at startup. Keep modules on the documented module API and extension points, and list every Synapse import your code uses so the upgrade team can review each one. Before each upgrade, run the module against the new version in staging and confirm it loads and handles events as expected.

Synapse docs

Schema changes that block rollback

The Synapse upgrade notes warn that rolling back can be difficult because database schema changes between releases are not always reversible. Treat each homeserver upgrade as a one-way step for the database unless the release notes say otherwise. Take a tested PostgreSQL backup before every upgrade, and rehearse restoring it in staging so the rollback path is known before production work begins.

Upgrade notes

Dropped Python and PostgreSQL versions

Synapse drops support for Python and PostgreSQL versions once they reach upstream end of life, and newer releases raise the minimum versions. A host image that worked for the last release can block the next one. Record the Python and PostgreSQL versions in use, read the minimum requirements in each release note, and schedule runtime upgrades ahead of the homeserver release that needs them.

PostgreSQL minimum from 1.143.0
14+
Version requirements

Branding patches that conflict with clients

Element branding usually lives in a fork, a custom build or a set of theme and asset overrides. Each new client release can change the files or components those patches touch, so the patch fails to apply or silently drops the brand. Keep branding changes as small and isolated as possible, pin the client version you build from, and check the branded build in staging against each new client release before rollout.

Bots on deprecated endpoints

Bots and integrations often call client-server or admin endpoints that a later release deprecates or changes. The bot may keep running while quietly losing functions, such as reading room state or sending events, until a user reports it. Inventory every endpoint each bot calls, watch the release notes for deprecations, and add a scripted smoke test that exercises each bot function after every upgrade.

Worker configuration drifting from the release

A Synapse deployment with workers depends on a worker layout, replication settings and Redis connections that match the homeserver version. When the main process and workers run different releases, or a new release expects a different worker split, traffic can route to the wrong process or fail between them. Deploy the main process and all workers from the same release, keep worker configuration in version control, and test the full worker set together in staging.

Workers docs

Keeping custom modules working through frequent Synapse releases

Treat every custom module, bot and branded client build as a dependency with its own release cycle. Each Synapse release needs a compatibility check before it reaches production, because a pluggable module that loads cleanly on one version can break on the next when an internal interface, database query or configuration key changes. Start each cycle with the Synapse upgrade notes, reading every entry between your current version and the target. Note minimum Python and PostgreSQL requirements, removed or renamed config keys, and any module API changes, then list which of your components touch each one. Confirm these details against the notes for the exact target version rather than relying on memory of earlier releases.

Run the checks on a staging homeserver built from a recent copy of the production database schema. A staging system with an empty database will not reveal migration problems, and a copy of production data also exposes problems with large rooms or media references. Your test suite should exercise each custom module (account provisioning hooks, spam or event checks, any SSO mapping logic), each bot's login and command paths, and each branded client build against the candidate version. Record results so a regression can be traced to a specific Synapse release. Hold an upgrade when a module fails its tests, when a bot depends on an API that changed, or when the upgrade notes call for a migration you have not rehearsed. Because the upgrade notes warn that rolling back can be difficult due to schema changes, take a verified PostgreSQL backup before every production upgrade, and confirm you can restore it within your recovery window.

Budget for the recurring cost of this model. The main categories are testing time after each Synapse release, updates to the dependencies your modules rely on, and maintenance of branding assets when Element client builds change. Ask your implementation partner or internal team to estimate each category against your release frequency, the number of custom components and the number of clients you distribute. These costs depend on how much of your customization uses stable, documented extension points rather than internals, so ask for that breakdown in any quote. Confirm with Element the support window for the Synapse version you run, since dropped Python or PostgreSQL support will force an upgrade on their timetable, not yours.

How customization differs by starting point and environment

When the deployment is new, customization can be designed into the build from the start. You choose the homeserver, decide where branding lives, and place every custom module, bot and client build in version control before users arrive. The main advantage is that the upgrade path is planned alongside the first install, so custom code is never bolted onto a configuration nobody documented.

  • Pin the homeserver version: Record the exact Synapse release in the build inventory and treat it as an input to every test run.
  • Keep configuration as code: Store homeserver.yaml fragments, module settings and client config.json in a repository, with secrets kept out of it.
  • Build modules against the release you deploy: Write Synapse pluggable modules and bots against the stable interfaces in the documentation, and test each one against a staging homeserver before production.
  • Set up a staging homeserver early: Use it to rehearse upgrades and to check branding changes in Element clients before they reach users.
  • Decide the federation and identity baseline first: Settings such as server_name and the SSO provider are hard to change later, so fix them before any custom work depends on them.

Confirm with the vendor which Synapse release line your Python and PostgreSQL versions support, and ask whether your chosen client build process requires any signing or branding approval.

What you need to provide before a customization project starts

Start by giving the team the exact running versions of Synapse and Element, along with the configuration files for each, with secrets removed. Customization work depends on what is already deployed: a branding change or a pluggable module that works against one Synapse release can fail against the next. Ask for the homeserver.yaml file, any included configuration fragments, and the Element Web config.json, and confirm the versions by checking what the servers actually report rather than what the deployment record says. If these files are missing, the first part of the project becomes an inventory exercise, and every estimate built on the assumed state is at risk.

Provide a staging environment that mirrors production in its Synapse version, PostgreSQL version, identity configuration and reverse proxy layout, and confirm who can deploy to it. Every customization should be tested there before it reaches users, and the upgrade notes for Synapse make clear that rolling back is not always simple because of database schema changes. Without a staging copy, the acceptance tests run against the live system, and a faulty module or client build can disrupt real conversations. Also decide which identity provider signs users in, such as an OpenID Connect provider or Matrix Authentication Service, because login behavior and any custom login pages depend on that choice.

Name a product owner who can rank the requested branding and integrations, and an administrator who can approve releases to production. Ask each requester to state the outcome they need and an owner for each item, so that a request for a custom bot or a bridge does not become an open-ended task. Ensure the test accounts and sample rooms exist before work starts: a set of users with different roles, encrypted and unencrypted rooms, and a room with a bot or integration joined. Acceptance checks need these to confirm that branding, permissions and integrations behave correctly for real user paths. Missing owners delay decisions, and missing test data makes acceptance a matter of opinion.

Common questions about Matrix customization

How much effort does custom Matrix work take, and what drives it?

Effort depends mostly on how many custom pieces you need and how far each one departs from upstream. Branding a Element client with logos, colors and a few configuration changes is a small task. A Synapse pluggable module that enforces a registration rule, a bot that posts into rooms, or an integration that reads from your identity system each adds design, coding, testing and documentation work. The other drivers are the number of clients and platforms that must match, whether you need separate staging and production environments, and how much review your security team requires before release. Ask for a quote that lists each custom component separately, with its acceptance tests, so you can see where the effort sits.

How long does a Matrix customization project run?

Duration is set by the number of components, the availability of your reviewers, and the testing your environment requires. Work that needs changes to identity providers, network policy or change-approval boards often takes longer than the code itself, because those steps wait on other teams. Projects also slow down when requirements change after build starts. Most engagements are fixed-scope, so the timeline is agreed in writing before work begins, and it should name the milestones, the client dependencies and the acceptance criteria. Ask for the schedule to show which parts can run in parallel and which must wait for a decision.

Can our own developers build Synapse modules without outside help?

Yes, if your team has Python skills, a working knowledge of Synapse configuration and the time to maintain the code. Synapse supports pluggable modules, but the module must be written against the Synapse version you run and retested whenever that version changes. Before you start, confirm the Synapse version you plan to run, the Python version it requires, and whether the module needs database access. Teams that handle this internally usually need a named owner, a test environment that mirrors production, and a release routine for each upgrade. A partner can build the first version, document it and train your engineers, which shortens the path to self-sufficiency.

What must our team provide before custom work starts?

You provide access and decisions. Typical items include a staging homeserver that matches production, read access to the source repositories or deployment configuration, test accounts for each user role, the brand assets and style guide for clients, and a contact who can approve design and security decisions quickly. For integrations, you also provide API credentials for the other system, a sandbox where those credentials can be tested, and the data rules that govern what the integration may read or write. Missing items usually show up as delays, so list them in the statement of work with owners and due dates.

How does custom code keep working through frequent Synapse releases?

Custom code survives upgrades when it uses supported extension points, stays close to the public interfaces, and is covered by automated tests that run against each new release. Synapse publishes an upgrade guide with notes on breaking changes, and each release can change database schema, configuration keys or module interfaces. Keep custom components in version control, pin the Synapse version under test, and run the test suite on a staging copy before every production upgrade. Note that rolling back can be difficult because of database schema changes between releases, so take a database backup before each upgrade. Ask your partner how many upgrade cycles the support plan covers and who performs the testing after each one.

Does custom code change how our server federates with other servers?

It can, so review it before release. Federation behavior depends on server configuration such as federation_domain_whitelist, the listener on port 8448 and the delegation settings that control how other servers find yours. A module or bot that changes event handling, room creation or user registration can affect what your server sends to remote servers. Confirm your federation policy first, whether open, limited to partner domains or disabled, and then test the custom component against that policy in staging. Document any change that affects federated traffic so your security team can review it alongside the federation settings.

What does the partner hand over at the end of the project?

A complete handover package should include the source code in a repository you own, build and deployment instructions, configuration files with secrets removed, automated tests, an upgrade and rollback runbook, and a list of known limitations. For branding, expect the customized client build, the asset files and the steps to rebuild them. For integrations, expect a description of data flows, credential rotation steps and monitoring checks. Confirm in the written scope whether training sessions, knowledge transfer and a post-handover support period are included, and whether ongoing support is a separate retainer.

How DeployOpen scopes, builds and hands over Matrix customization

DeployOpen plans, implements, customizes and documents self-hosted open-source platforms inside the client's own infrastructure, including Matrix. For customization work, we start from a written scope that names each client, module, bot and integration, then build and test those pieces against the homeserver release you actually run.

How we scope

  • We agree in writing which Element client builds, branding changes and Synapse modules are in scope.
  • We confirm your Synapse version, database, worker layout and upgrade cadence before estimating any custom work.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We keep custom code in version-controlled modules, configuration and client forks that can be rebuilt on demand.
  • We test each module, bot and client change against a staging homeserver before it reaches production users.
  • We document dependencies on specific Synapse APIs so upgrade reviews can flag affected components early.

How we hand over

  • You receive source, build instructions and configuration files stored in your own repositories and infrastructure.
  • Runbooks describe how to rebuild, redeploy and roll back each custom component, including database schema notes.
  • We walk your platform and security teams through the code, tests and admin procedures before handover is complete.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for custom Matrix components.
  • Retainer work can include retesting clients and modules after each Synapse release you choose to adopt.
  • Support scope, response expectations and release testing are confirmed in writing before a retainer starts.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.