Metadata-Version: 2.4
Name: medre
Version: 0.1.2
Summary: Modular event communications runtime
License-Expression: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Communications
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: msgspec==0.22.0
Requires-Dist: pyyaml==6.0.3
Requires-Dist: termaid==0.12.1
Provides-Extra: dev
Requires-Dist: pytest==9.2.0; extra == "dev"
Requires-Dist: pytest-asyncio==1.5.0; extra == "dev"
Requires-Dist: pytest-timeout==2.4.0; extra == "dev"
Requires-Dist: pytest-cov==7.1.0; extra == "dev"
Requires-Dist: coverage==7.17.3; extra == "dev"
Requires-Dist: build==1.6.1; extra == "dev"
Requires-Dist: setuptools==84.2.1; extra == "dev"
Requires-Dist: jsonschema==4.26.0; extra == "dev"
Requires-Dist: packaging==26.3; extra == "dev"
Requires-Dist: mypy==2.4.1; extra == "dev"
Requires-Dist: types-PyYAML==6.0.12.20261113; extra == "dev"
Dynamic: license-file

# MEDRE

Bridge conversations across Matrix, Meshtastic, MeshCore, LXMF, XMPP, Chatmail,
and SimpleX Chat. Connect rooms, chats, and radio channels with configurable
one-way or two-way routes. Independent adapters let you install just the
networks you need.

## Install MEDRE

Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then:

```bash
uv tool install medre
```

Add the adapters for the networks you want to connect. For example:

```bash
medre adapters install matrix meshtastic
```

Matrix requires Python 3.12+. See [installation options](docs/ops/install.md)
for interpreter and platform setup.

## Run a bridge

Use [Getting Started](docs/ops/getting-started.md#3-connect-your-accounts-or-devices)
to connect your accounts or devices and create `bridge.yaml`. Then run:

```bash
medre config check --config bridge.yaml
medre run --config bridge.yaml
```

Leave MEDRE running to keep the bridge connected; press **Ctrl+C** to stop it.
For container deployments, see [Docker](docs/ops/docker.md).

### Optional: try an offline demo

```bash
medre config sample > sample.yaml
medre config check --config sample.yaml
medre smoke --config sample.yaml --storage-path smoke.sqlite3
```

The sample sends a test message through a one-way route using simulated adapters.
It runs locally without accounts or radios.

## Adapters

Install the adapters for the networks you want to connect. Each adapter has its
own setup guide; the [transport profiles](docs/spec/transport-profiles/README.md)
describe supported features.

| Adapter                                                                 | Transport                                              | Setup                                            |
| ----------------------------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------------ |
| [Matrix](https://github.com/jeremiah-k/medre-adapter-matrix)            | Accounts, rooms, optional E2EE                         | [Guide](docs/ops/transport-setup/matrix.md)      |
| [Meshtastic](https://github.com/jeremiah-k/medre-adapter-meshtastic)    | Radio nodes and channels                               | [Guide](docs/ops/transport-setup/meshtastic.md)  |
| [MeshCore](https://github.com/jeremiah-k/medre-adapter-meshcore)        | Companion nodes, contacts and channels                 | [Guide](docs/ops/transport-setup/meshcore.md)    |
| [LXMF](https://github.com/jeremiah-k/medre-adapter-lxmf)                | Reticulum identities and destinations                  | [Guide](docs/ops/transport-setup/lxmf.md)        |
| [XMPP](https://github.com/jeremiah-k/medre-adapter-xmpp)                | Multi-user rooms and direct conversations              | [Guide](docs/ops/transport-setup/xmpp.md)        |
| [Chatmail](https://github.com/jeremiah-k/medre-adapter-chatmail)        | Accepted groups and direct chats through Chatmail core | [Guide](docs/ops/transport-setup/chatmail.md)    |
| [SimpleX Chat](https://github.com/jeremiah-k/medre-adapter-simplexchat) | Allowlisted groups and direct conversations            | [Guide](docs/ops/transport-setup/simplexchat.md) |

For more adapters, package updates, or Git and local sources, see
[package management](docs/ops/package-management.md) and
[adapter installation](docs/ops/adapter-installation.md).

## Documentation

| Start here                                     | For                                           |
| ---------------------------------------------- | --------------------------------------------- |
| [Getting Started](docs/ops/getting-started.md) | Install MEDRE and connect your first networks |
| [Operator guides](docs/ops/README.md)          | Run, update, and troubleshoot a bridge        |
| [Developer guides](docs/dev/README.md)         | Contribute, test, and build adapters          |
| [Technical specification](docs/spec/README.md) | Event formats, routing, and storage contracts |

New operators can also use [AI-assisted setup](docs/ops/ai-assisted-setup.md).

## Community and testing

Join [#medre:matrix.org](https://matrix.to/#/#medre:matrix.org) for setup help,
development discussion, and testing feedback. Try MEDRE with your accounts and
hardware, share what works, and help improve the adapters and documentation.

[Report issues](https://github.com/jeremiah-k/medre/issues) with your installed
versions, the networks involved, and relevant sanitized logs.

## License

MEDRE-owned core source is [MIT-licensed](LICENSE). Adapter source and its SDKs
retain their respective terms, which may include GPL and the Reticulum License.
See [dependency licensing](docs/dev/licensing.md) before redistribution.
