A messenger whose core runs anywhere
A real messenger runs on the handheld. It sends and receives LXMF messages, keeps contacts and history, and shows on a map where other nodes are, from their telemetry, the way Columba does on Android today. Lew decided on 2026-10-21 that it is written once, as a core, and reused: on the ThinkNode M9 (The ThinkNode M9), on the desktop, and later on Android. The map uses OpenStreetMap data and existing libraries, not a renderer of our own. This page records that decision, what exists to build it from, the reviewer's proposals for the core/frontend cut and for the map, and what is open.
Decided
- The features: send and receive LXMF messages, contacts, history, and the positions of other nodes on a map, taken from their telemetry.
- One core, several frontends: the M9, the desktop, later Android.
- The map is built from OpenStreetMap material with existing libraries. We do not write our own renderer. (Narrowed 2026-10-25, Lew: one piece of our own, a polygon filler; see "The map".)
- Columba is the reference for scope and protocol behaviour: what a messenger does and how it behaves on the wire. It is not a reference for how the code is designed. (Superseded 2026-10-25, Lew: Columba is the wire reference for BLE and LXMF behaviour, not the scope ceiling; the scope is the full-featured messenger the product goals below describe.)
- 2026-10-25, Lew: a full-featured messenger. It is of the class a
modern phone app sets, with mail-like features where LXMF carries them
(threads, replies, long-form, attachments). Columba remains the
reference for wire behaviour, not the ceiling for scope. One core, four
frontends: the terminal (
lnmsg), a desktop GUI, the M9's display and keyboard, later Android; the TUI and the GUI ship side by side on the desktop.
What exists today
lnmsg, the terminal messenger. It sends (direct, propagated, orautowith the fallback to a propagation node) and drains the mailbox, and since 2026-10-25 (994)lnmsg tuiis its terminal frontend, slice one (lnmsg: the user interface, "Built 2026-10-25"): the first frontend on the shared widgets, over a screen model that lives in theno_stdcore. Its frontend already talks to the backend only throughOutbox(lnmsg/src/outbox.rs:194), but the crate isstd. It depends onleviculum-stdand tokio (lnmsg/Cargo.toml:87,lnmsg/Cargo.toml:91), since 2026-10-25 behind itsstdfeature, andjust lnmsg-core-no-stdholds the core tono_std(green since 993; the pass order is in lnmsg: architecture, "Plan: the lnmsg core without std").- #232's rule: the messenger's core must be
std-free, not merely terminal-free, because the next frontend after the TUI is firmware. The shape #232 asks for is ano_std + alloccore crate, a store behind a trait the core owns, effects as data, and a cross-compile gate. That core crate does not exist yet. lnmsg: architecture, section 4, has the terminal-free requirement it extends. lnomad's core/frontend boundary (#219). It is the same requirement for the browser, cut on 2026-10-25: model,updateand the effects live inlnomad/src/app/and import no terminal crate, the ratatui frontend inlnomad/src/tui.rsbehind thetuifeature, andjust lnomad-core-no-tuiholds the line. That is enough for a desktop GUI as a second frontend. It is not yet enough for the M9: the core is astdmodule of thelnomadcrate, and the crate without the feature still carries the fetch layer (leviculum-std, tokio), so a firmware frontend still needs the core as ano_stdcrate of its own.leviculum-lxmf,no_std + alloc(leviculum-lxmf/src/lib.rs:38):- delivery (
LxmfRouter,leviculum-lxmf/src/router.rs:462); - propagation nodes, both the client and the node
(
PropagationNode,leviculum-lxmf/src/propagation_node.rs:889); - stamps (
CooperativeStamper,leviculum-lxmf/src/stamp.rs:269).
- delivery (
- Telemetry. Telemetry settles positions as LXMF
fields (
FIELD_TELEMETRY,FIELD_TELEMETRY_STREAM) and the collector exchange. The codec isTelemetry(leviculum-lxmf/src/telemetry.rs:176) with itsLocation(leviculum-lxmf/src/telemetry.rs:56). - The C surface,
leviculum-ffi, is the path to Android (leviculum-ffi/src/lib.rs:1-12, C API). Today it covers identities, destinations, links, requests and resources, and no LXMF. embedded-graphicson the T114's ST7789. The T114 paints its status screen throughembedded-graphics(leviculum-nrf/screen/Cargo.toml:10) into a monochrome framebuffer (MonoFb,leviculum-nrf/screen/src/lib.rs:377), which the ST7789 backend scales onto a 240x135 panel (leviculum-nrf/src/st7789.rs:3). That is a status screen, not a colour UI. It shows that the drawing library works on our firmware.
The core/frontend cut
The reviewer's proposal, not yet decided.
The core owns:
- conversations, contacts and delivery state;
- telemetry positions;
- persistence, behind a trait;
- the LXMF and propagation node machinery.
It is no_std + alloc and tested on the host.
Frontends own only rendering and input:
lnmsg's terminal;- a desktop GUI (added 2026-10-25, see "Decided");
- the M9's display and keyboard;
- an Android app over the C surface.
Nothing a frontend draws is decided inside it.
The map
2026-10-25, Lew: the map is a product of its own as well as a view inside the messenger: OpenStreetMap vector data, on the desktop and on the M9, showing received telemetry positions. The measurement below decides the embedded renderer, not whether the map exists.
2026-10-25, Lew: the embedded map is vector, drawn with a minimal
polygon filler of our own on embedded-graphics and measured on the
device before any product code, with PNG raster tiles as the documented
fallback only (the filler is leviculum-mapfill, the measurement
docs/drafts/map-measurement-2026-10.md, "Device measurement, prepared
2026-10-25").
The reviewer's proposal, not yet decided, with its open measurement.
The reviewer knows of no off-the-shelf vector map renderer for embedded targets. The candidate building blocks are:
- PMTiles, an archive that holds a whole tile set in one file;
- Mapbox Vector Tiles, the payload inside each tile;
- the Rust readers for both;
embedded-graphicsfor drawing.
The likely shape: a desktop tool cuts an OSM extract, simplifies lines and polygons for each zoom level, and writes a compact tile set to the device's flash. The device draws polylines, its own GNSS position, and the telemetry positions of other nodes.
The measured precedent is raster, not vector: Meshtastic's device UI
on the M9 reads PNG raster tiles from the microSD card at
/maps/<style>/{z}/{x}/{y}.png (The ThinkNode M9,
"Storage"). The vector idea stays the first-step measurement below,
compared against that raster path.
The first step is a measurement, not code. Measure, for one city at three zoom levels:
- the flash the tiles need;
- the RAM used while rendering one 240x320 view;
- the time it takes to draw that view.
Whether we use an existing library or our own format is decided on those numbers, not before.
Order of work
Decided 2026-10-25 (Lew), with stage one inserted as step 3; until then the reviewer's proposal of 2026-10-21, steps 1, 2 and 4 to 7 below.
- The community port is visible and reviewed.
- Bring-up and radio at the rig (The ThinkNode M9, "Bring-up plan").
- Stage one: the M9 is a board like the others, with the same status screen, one-button operation on one key, Mesh mode and a propagation node (The ThinkNode M9, "Decided"). The keyboard UI follows only when that is stable. Concept work for the GUI, on the desktop and on a 240x320 display, may run in parallel.
- The messenger core is taken out of
lnmsgand tested on the host. - The M9 frontend, with messages.
- Positions on a map.
- The map itself.
The browser
2026-10-25, Lew: lnomad is the terminal frontend of a browser whose
core (fetch, micron model, layout) also drives a desktop GUI and the
M9's display. The lxmf@ handoff (browser to messenger, lnmsg:
architecture) becomes an in-process call once
both share a shell. #219's core/frontend boundary ("What exists today")
is the refactor this needs; its first step, the module boundary, landed
on 2026-10-25.
One interaction model
2026-10-25, Lew: one interaction concept across the terminal, the desktop GUI and the M9: the same commands, the same names in the palette, the same delivery glyph table (lnmsg: the user interface, section 2); each frontend maps them to its input. Code is shared where it is the same problem (model, update, layout), not for its own sake (rendering, input).
2026-10-25 (984): on the terminal the shared code is two crates.
leviculum-ui is the terminal-free half (styled text, palette, the key
and mouse events with the text-editing table, the footer, help and toast
models, the spinner frames, and the delivery glyph table), so a core can
take it and stay terminal-free; leviculum-ui-ratatui is the ratatui half
(the widgets, the terminal lifecycle, the event mapping, inline pictures).
lnomad draws through them already; lnmsg's TUI is built on them
(994). The palette's names landed with it, in leviculum_ui::commands,
and leviculum-ui builds no_std without its std feature, so the
messenger core holds the same types a board will.
Open
- The licence text for the map data. OSM data is ODbL: which notice ships with the tiles, and where the device shows it (Licensing and third-party notices).
- How other nodes' positions age out of the map.
- Whether the M9 frontend and the terminal share a text layout engine. Since 2026-10-25 the rule for answering it is "One interaction model" above: shared where it is the same problem.
Not yet built
All of it: the no_std core crate, a firmware frontend, LXMF on the C
surface, the tile tool, the tile format, and the map view. Since
2026-10-25 also the desktop GUIs of the messenger and the browser.
See also
- The ThinkNode M9, the first device this is for.
- lnmsg: a terminal LXMF messenger and lnmsg: architecture.
- Telemetry, for the positions on the map.
- A GUI toolkit for the desktop and the M9, the toolkit candidates measured and a proposal.