MEDRE
Modular Event-driven Routing Engine — bridge conversations across Matrix, Meshtastic, MeshCore, LXMF, XMPP, Chatmail, and SimpleX Chat. MEDRE owns routing, persistence, and delivery evidence; each transport is an independently installed Python adapter. MEDRE began with mesh and LoRa bridges and supports messaging services through the same adapter, routing, and evidence contracts.
Working pre-release — testers welcome; not production-ready. MEDRE is alpha software: expect breaking changes, test with disposable state, and back up persistent state before updates. Do not delete an active database to work around a schema mismatch: it may contain pending messages and evidence.
Frozen and evolving are per-artifact facts, not a blanket promise. The published 0.1.0 schemas are frozen — docs/schemas/README.md and the freeze manifest record exactly which released files are frozen — and the tagged 0.1.0 SQLite catalog is the released storage baseline. The current configuration schema still evolves additively between releases (current adapter config schema), and there is no general database migration: startup accepts the released catalog and explicitly allowlisted additive predecessors, refuses other stale prerelease layouts without modifying them, and recovery from a rejected database is a manual backup and reset (WAL-safe backup and reset procedure).
Install MEDRE
Install uv. The
steps below work with the published 0.1.0 core, whose adapter installation
defaults to Git, so have uv and Git installed for that path. Core 0.1.1
introduces package-index defaults and the sources commands. Even with core
0.1.0, index-only installation is possible when the needed provider packages
are published, using native uv:
uv tool install --python 3.12 --with medre-adapter-matrix --with medre-adapter-meshtastic medre==0.1.0
Alternatively, install core and add the example providers using MEDRE:
1. Install the CLI and example providers. Matrix requires Python 3.12 or newer; select a compatible interpreter when creating the tool environment.
uv tool install --python 3.12 medre
medre adapters install matrix meshtastic
medre adapters
On Windows, follow the printed uv command after MEDRE exits: the running executable cannot safely replace itself. For a reproducible, long-running bridge use a locked deployment project instead of floating Git branches.
2. Verify the pipeline before connecting anything.
medre config sample > sample.yaml
medre config check --config sample.yaml
medre smoke --config sample.yaml --storage-path smoke.sqlite3 --json
A fake sent receipt proves local routing and persistence, not remote
delivery, RF reception, or native inbound codec decoding. The generated sample
uses a one-way diagnostic route; build your two-way route in the next step.
The same installation runs live bridges.
3. Create your first route.
medre config bridge --output bridge.yaml
Select two adapter instances, map their conversation addresses, and inspect the generated route plan before saving. The builder never connects to a device or starts a service. See Getting Started for the complete walkthrough and live setup.
For container deployments, see Docker.
Adapters
All seven adapters participate in configuration, routing, persistence, diagnostics, and SDK-free smoke testing. Native features and delivery confirmation vary by transport; each transport profile describes those boundaries.
| Adapter | Transport | Setup |
|---|---|---|
| Matrix | Accounts, rooms, optional E2EE | Guide |
| Meshtastic | Radio nodes and channels | Guide |
| MeshCore | Companion nodes, contacts and channels | Guide |
| LXMF | Reticulum identities and destinations | Guide |
| XMPP | Multi-user rooms and direct conversations | Guide |
| Chatmail | Accepted groups and direct chats through Chatmail core | Guide |
| SimpleX Chat | Allowlisted groups and direct conversations | Guide |
Install only the adapters you need, for example:
medre adapters install xmpp chatmail simplexchat
Community adapters can implement the same entry-point contracts; runtime startup never installs Python packages. Native libraries and account/profile preparation follow each provider's setup guide. See package management for persistent CLI tools and adapter sources for pinned projects.
Documentation
| Start here | For |
|---|---|
| Getting Started | Install, smoke, guided bridge, native connections |
| Operator guides | Package management, running, evidence, recovery, troubleshooting |
| Developer guides | Contributing, testing, authoring adapters |
| Technical specification | Normative contracts and supported guarantees |
New operators can optionally use AI-assisted setup. Real-world testing and reproducible, sanitized bug reports are welcome—never share credentials, radio keys, identity files, or unredacted databases.
License
MEDRE-owned core source is MIT-licensed. Adapter source and its SDKs retain their respective terms, which may include GPL and the Reticulum License. See dependency licensing before redistribution.
Metadata
Release files for medre 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| medre-0.1.1.tar.gz | 3.3 MB | With provenance | Details for medre-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medre-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for medre-0.1.1-py3-none-any.whl |
Total release size: 4.5 MB
Release files / medre-0.1.1.tar.gz
| Download URL | medre-0.1.1.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82650e1671adc97a50952130ac74226b2a7fb6dabd574ce70698d8f5a82118dc
|
|
BLAKE2b-256 checksum How to use checksums |
e33d547d48b0548d9f5efa0c416992cd5486ff63c30aa37d84d91ae71723a2f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / medre-0.1.1-py3-none-any.whl
| Download URL | medre-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a82ba78ccfd9884a3a0bec806730f5e4fa9b5a21d08b1f5f1e963e194f7844be
|
|
BLAKE2b-256 checksum How to use checksums |
73b89163006a14141b54eb23763d9ec4519068e54c1b1e9793565b38410b77f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for medre 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for medre-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.