Feature: Integrate the community Meshtastic TCP bridge as an optional post-release feature
Request
Evaluate and integrate an optional Meshtastic TCP bridge so the native Meshtastic app can connect to Meshpoint over the local network.
Post-release feature only. Keep this outside the frozen v0.8.0 RC. This is not a release blocker.
Existing contribution and credit
Start from csmart30/meshpoint-bridge, shared by community contributor 3astwood (GitHub: csmart30). Credit csmart30 / 3astwood for the existing bridge, testing and contribution throughout any integration.
Coordinate with the contributor before deciding how to bring it into Meshpoint. Preserve original commit authorship where commits are imported, retain applicable copyright and license notices, and acknowledge the original project in documentation and release notes. The repository currently declares AGPL-3.0-only; review licensing compatibility and obligations before incorporating code.
The project is experimental. Its author reports native-app connectivity, messaging and selected metadata forwarding on one installation; this is not independent validation or a claim of compatibility with every Meshpoint backend or app version.
Integration approach
The existing bridge presents a Meshtastic framed-protobuf TCP endpoint, normally on port 4403, and uses Meshpoint's REST API and WebSocket for data and supported actions. It does not access the concentrator, SPI or GPIO directly.
Evaluate an optional plugin or separately managed companion service using a defined Meshpoint API contract. Do not assume the native concentrator runs official Meshtastic firmware or offers every firmware operation.
Scope
- Opt-in installation and enablement, disabled by default, with clear start/stop, boot behavior, upgrade and uninstall handling.
- Supported native-app connection, configuration/node-list exchange, text messaging, and forwarding of supported node information, positions and telemetry.
- Stable node identity aligned with the actual Meshpoint transmit identity, correct channel mapping and backend capability reporting.
- Explicit network exposure and access controls compatible with supported clients. Review the current unauthenticated TCP listener before enabling it for users.
- Protected credential handling, appropriate API permissions, session refresh and bounded reconnect behavior without login storms.
- Accurate status reporting: distinguish accepted/queued transmission, remote acknowledgement, timeout and unsupported operation. Never report ignored settings changes as successfully applied.
- Bounded buffers and request rates, slow-client handling, reconnects, clean shutdown and useful diagnostics without exposing credentials or private message data.
- Document installation, supported Meshpoint/app versions, backend limitations and the original contribution.
Related work
- #88 requests a native Meshtastic port for integrations. This issue tracks the concrete community bridge integration and should be coordinated with that request.
- #170 tracks originating traceroute requests.
- #171 tracks direct NodeInfo request/reply exchanges.
Keep those protocol features in their own issues. Bridge integration must report unsupported operations honestly rather than silently substitute a broadcast or imply those features are implemented.
Acceptance criteria
- [ ] Integration architecture and supported API contract are documented with contributor involvement and attribution preserved.
- [ ] The feature is optional and disabled by default; normal Meshpoint installs and existing radio behavior remain unchanged.
- [ ] Network exposure, credentials and client authorization behavior are reviewed and documented.
- [ ] Focused tests cover framing, channel/node mapping, delivery status, unsupported commands, session expiry, reconnects, slow clients and shutdown.
- [ ] Native-app interoperability and bidirectional messaging are validated with a separate receiving node, recording exact app, Meshpoint and backend versions.
- [ ] Unattended operation and restart/recovery behavior are validated before describing the bridge as supported.
- [ ] Documentation includes limitations, troubleshooting, licensing notices and credit to csmart30 / 3astwood.
Boundaries
Tracking and design work only at this stage. No implementation, deployment or RF tests are authorized by this issue. No changes to the frozen RC and no dependency on this feature for the current release.
Thanks for opening this, and for the credit. I'm happy to help get the bridge into a shape that works for Meshpoint.
Since the issue went up I've worked through the bridge-side items on the list plus some others. That work is merged in csmart30/meshpoint-bridge#3, #4 and #5. Quick summary:
- Runs as a service:
install.shinstalls it as its own unprivilegedmeshpoint-bridgeuser with a sandboxed systemd unit, and handles upgrades and--uninstall. Nothing is installed unless you run it. - Credentials: the dashboard login lives in
/etc/meshpoint-bridge/bridge.env(mode 600), written by a--setupstep that checks the login and shows the Meshpoint node ID the app will see. A wrong password stops the service rather than retrying into the lockout. - Node identity: the bridge always uses Meshpoint's transmit node ID from
/api/config. If Meshpoint has no transmit identity, or transmit is off, it runs receive-only: the app shows transmit disabled, and sends fail immediately instead of looking like they worked. - Network exposure: I kept the stock Meshtastic model (no auth on 4403, since the app can't send credentials anyway), documented it, and added optional bind address, IP allowlist and mDNS on/off settings.
- Logs: message text is no longer logged by default; it's only included when running with
-v(debug logging). - Delivery status: DM acks and failures are passed through accurately, including fixing a race where an ack that arrived before Meshpoint answered the send request was dropped.
- API contract: docs/API_CONTRACT.md lists every Meshpoint endpoint, WebSocket event and field the bridge depends on, plus open items on both sides. Happy to adjust it to whatever you'd be comfortable keeping stable.
All of this was tested on my RAK Miner V2 (Meshpoint v0.7.9, Meshtastic app 2.7.28 on iOS): install and upgrade, reboot, wrong password, Meshpoint restarting under it, receive-only, allowlist, uninstall and reinstall. Results are in docs/TESTING.md.
Still on my list:
- The bridge currently answers some app admin requests (
set_config,set_favorite_node,add_contact) as if they were applied. The bridge logs them as not applied, but the app is told they succeeded. I want those to report honestly, but I still need to test how the Meshtastic app reacts when a change is refused, since it sends some of these automatically (on connect, and before every DM). - "Exchange user info" currently falls back to Meshpoint's NodeInfo broadcast. Per this issue I'll switch it to report unsupported until #171 lands, unless you'd rather keep a clearly labelled fallback.
- The remaining tests: framing, session expiry, reconnects, slow clients.
A few things I noticed on the Meshpoint side, in case they're useful:
- Reply and tapback IDs aren't included in WebSocket text events, so they reach the app as plain messages. The bridge already reads
reply_idandemojiif they get added. - When a node DMs the Meshpoint, the sender doesn't seem to accept Meshpoint's routing ack, even though Meshpoint logs sending it.
- When a traceroute reaches the Meshpoint both directly and through a relay, it answers both copies (same request ID, two replies). Stock firmware drops the duplicate and replies once. This might be related to the DM ack issue, but I haven't confirmed that.
A few questions for you:
- Would you rather keep the bridge as a separate companion service/repo, or eventually bring it in as an optional Meshpoint component? I'm fine either way. One option that might work well: Meshpoint could offer to install the bridge as an optional companion service, while the bridge stays its own project with its own releases. That way a Meshpoint change that breaks the bridge wouldn't hold up a Meshpoint release, and the API contract would show what to check before a release.
- Would you consider a scoped API token or role for something like the bridge, so it doesn't need the admin dashboard password?
- Is matching Meshtastic's unauthenticated TCP model, plus the optional allowlist, OK from a security-review point of view, or would you want something stricter?
- Longer term, would supporting favorites in Meshpoint at the node level (a field on nodes plus an endpoint) be something you'd consider? The Meshtastic app sets a favorite on every DM, so the node you're messaging stays in the node list, and the bridge could then save it for real instead of only acknowledging it. If Meshpoint relays packets, the same favorites list could also support zero-cost hops for favorited routers, the way ROUTER and CLIENT_BASE nodes do in recent firmware.
On licensing: I picked AGPL-3.0-only to match Meshpoint. I'm the only author, so if a different license would make things easier, I'm open to it.
Happy to coordinate however works best for you.