meshcore-irc-bridge
This is an AI-generated application. The design, code, tests, and documentation in this repository were produced by an AI coding agent (Claude), directed and reviewed by a human maintainer.
A one-way bridge: it connects to a MeshCore companion radio, listens for channel messages, and relays them into IRC channels — one mesh channel mapped to one IRC channel. It never sends anything back to the mesh; IRC messages are received and ignored.
Built on the meshcore Python package
for the radio side (BLE, serial, or TCP companion connection). The IRC side is
a small hand-rolled asyncio client with first-class
IRCv3 SASL support, a NickServ
IDENTIFY fallback (with a configurable wait before joining channels), and
support for connecting with a fully unregistered nickname.
Install
Published on PyPI as meshcore-irc-bridge.
The recommended way to install it is pipx, which puts
the meshcore-irc-bridge command on your PATH in its own isolated
environment, without touching your system Python packages:
pipx install meshcore-irc-bridge
Plain pip works too, ideally in a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip install meshcore-irc-bridge
To install from a checkout for development instead, see Development below.
Configure
Copy config.example.yaml to config.yaml and edit it:
cp config.example.yaml config.yaml
chmod 600 config.yaml
cp creates the copy with your umask's default permissions, typically
world-readable -- worth locking down since the file commonly ends up
holding plaintext SASL/NickServ passwords (the bridge warns at startup if
it finds config.yaml still readable by group/other).
-
mesh.connection— how to reach your companion radio:type: ble(withaddress),type: serial(withport/baudrate), ortype: tcp(withhost/port). -
irc— the IRC server and how to authenticate.irc.auth.modeis one of:sasl— authenticate withAUTHENTICATE PLAINbefore registration completes. Requiresirc.auth.sasl.username/password.nickserv— connect without SASL, wait for the welcome (001), sendPRIVMSG NickServ :IDENTIFY <password>, then waitirc.auth.nickserv.join_wait_secondsbefore joining channels (long enough for services to apply your cloak/account before you join gated channels). Requiresirc.auth.nickserv.password.none— connect with a fully unregistered nickname and join immediately.
The auth mode is fixed by config — if it fails (e.g. the server doesn't offer SASL, or the password is rejected), the bridge logs the failure and retries the same mode on reconnect rather than silently switching methods.
Secrets support
${ENV_VAR}interpolation so passwords don't need to sit in the YAML file in plaintext, e.g.password: "${IRC_SASL_PASSWORD}". -
channels— the mesh-channel-to-IRC-channel mapping, e.g.:channels: - mesh_channel: 0 irc_channel: "#mesh-general" - mesh_channel: 1 irc_channel: "#mesh-emergency"
Several mesh channels may map to the same IRC channel. When they do, each relayed line is prefixed with
[<mesh_channel>]so messages from either stay attributable once interleaved there (e.g.[0] hello,[1] hi); a mesh channel with an IRC channel all to itself is left unprefixed.
Setting up a channel on the radio itself
This bridge only reads channel messages — it never creates, renames, or
rekeys a channel on the companion radio. To set one up (or check what's
already configured), use meshcorectl,
a companion CLI for MeshCore radios:
meshcorectl create channel 0 "General" # create/rename channel 0
meshcorectl get channels # list what's configured on the radio
Run
meshcore-irc-bridge --config config.yaml
# or
python -m meshcore_irc_bridge --config config.yaml
--log-level (default INFO) controls verbosity.
Development
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest # 100% line+branch coverage enforced
ruff check .
mypy
Tests never touch real hardware or a real IRC network: the mesh side is
exercised against a hardware-free double of meshcore.MeshCore
(tests/fakes/meshcore_double.py), and the IRC client is exercised against a
real (loopback-only) asyncio TCP server that scripts IRC protocol exchanges
(tests/fakes/fake_irc_server.py).
Real end-to-end verification against an actual radio and IRC network is out of scope for the automated test suite — run the bridge against your own setup once installed to confirm it end-to-end.
License
Metadata
Release files for meshcore-irc-bridge 0.1.3
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 |
|---|---|---|---|---|
| meshcore_irc_bridge-0.1.3.tar.gz | 54.1 kB | With provenance | Details for meshcore_irc_bridge-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meshcore_irc_bridge-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for meshcore_irc_bridge-0.1.3-py3-none-any.whl |
Total release size: 85.4 kB
Release files / meshcore_irc_bridge-0.1.3.tar.gz
| Download URL | meshcore_irc_bridge-0.1.3.tar.gz |
|---|---|
| Size | 54.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1ab41dc9333312f5cccf73ce68f4f209a860eaa445f77b018a10537171a66fd
|
|
BLAKE2b-256 checksum How to use checksums |
d5ca13a79d373430a82e511ed1c77a912430663ad34c538fc2a0ae121663ef8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 13, 2026.
Transparency logRelease files / meshcore_irc_bridge-0.1.3-py3-none-any.whl
| Download URL | meshcore_irc_bridge-0.1.3-py3-none-any.whl |
|---|---|
| Size | 31.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8398cbe6dfed9e60e1e0abc50e8fce9f0a0cb81c83a4509ca1b6f0596155184
|
|
BLAKE2b-256 checksum How to use checksums |
71cc0aca8960d032da956f7f0e6c1ccabbb0b1a9dc888dc46eda0ceaf3179a95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 13, 2026.
Transparency logSecurity for meshcore-irc-bridge 0.1.3
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 meshcore_irc_bridge-0.1.3.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 Sep 13, 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.