WYRM
WYRM is an industrial IoT broker. Devices, services and logic live in one tree of
nodes. Every client reads it the same way: list a node’s children, subscribe
to values, set a value, invoke an action. Under the tree runs
Eclipse Zenoh 1.x as the transport. WYRM adds the semantics
on top: key-space conventions, canonical CBOR, tokens and static plugins.
Zenoh itself is not patched or forked.
Status: before 1.0 (version 0.1.0). The protocol (
spec/0.2.36) and the broker are tested on every commit (unit, fixture and end-to-end tests). Every protocol link is tested against its own simulator. No link has been checked against a real device yet (ADR 0029, decision 5). Expect changes.
- Source code: github.com/gencto/wyrm
- Releases: github.com/gencto/wyrm/releases
- Read next: Overview · Documentation map · Specification
Official links
Links connect devices and services to the broker. This table comes from links/official.json.
| Link | Category | Summary | Forms |
|---|---|---|---|
| Modbus | Equipment | Modbus TCP, RTU over TCP and serial RTU devices, as a master or as a slave | builtin, process |
| OPC UA client | Equipment | Nodes of OPC UA servers as points: batched reads, typed writes, browse | builtin, process |
| BACnet/IP | Equipment | BACnet/IP devices: Who-Is discovery, batched reads, writes with priorities, BBMD | builtin, process |
| Siemens S7 | Equipment | S7-300/400/1200/1500 PLCs over S7comm (ISO-on-TCP) | builtin, process |
| SNMP | Equipment | SNMP v2c and v3 agents: batched GET, table columns, SET, walk | builtin, process |
| MQTT | Equipment | MQTT topics as points (JSON, raw, Sparkplug B) | builtin, process |
| HTTP / REST | Equipment | JSON APIs polled on a schedule, JSONPath selectors as points, JSON writes | builtin, process |
| Prometheus | Equipment | Prometheus and OpenMetrics endpoints scraped into points | builtin, process |
| S3 and compatibles | File stores | A bucket of AWS S3, MinIO, R2, Wasabi, B2 or GCS as a tree of folders and files | builtin, process |
| Google Drive | File stores | A Google Drive folder or shared drive as a tree of folders and files | builtin, process |
| WebDAV | File stores | A folder of Nextcloud, ownCloud or another WebDAV server as a tree | builtin, process |
| Local folder | File stores | A directory of the host (disk, USB/SD card, network mount) as a tree | builtin, process |
| PostgreSQL / TimescaleDB | History sync | Sends the historian’s journal to PostgreSQL or TimescaleDB | process, wasm |
| MySQL / MariaDB | History sync | Sends the historian’s journal to MySQL or MariaDB | process, wasm |
| MongoDB | History sync | Sends the historian’s journal to MongoDB | process, wasm |
| InfluxDB 2.x / 3.x | History sync | Sends the historian’s journal to InfluxDB | process, wasm |
| DynamoDB | History sync | Sends the historian’s journal to Amazon DynamoDB | process, wasm |
| Scheduler | Apps | Weekly schedules and special days that write values to points | process, wasm |
| Alarms | Apps | Alarm classes on points, records, acknowledgement and export | process, wasm |
| DQL queries | Apps | Standing and ad-hoc queries over the tree, as tables | process, wasm |
| Platform upstreams | Apps | Live values to MQTT/UNS, Sparkplug B, ThingsBoard, Azure IoT Hub, AWS IoT Core | process, wasm |
| Telegram | Messaging | Telegram bots: templates, recipients, paired chat users | process, wasm |
| Slack | Messaging | Slack bots: templates and recipients, send only | process, wasm |
| Assistant agent | Apps | An AI agent that plans changes for a person to approve | builtin |
| Mock device | Test | Simulated devices on the driver framework, for trials and tests | builtin, process |
Latest architecture decisions
| ADR | Title | Status |
|---|---|---|
| 0051 | Broker images for boards, and a web image builder | proposed · 2026-11-25 |
| 0050 | Biometric unlock with device keys, and finding a gateway on the local network | accepted · 2026-11-14 |
| 0049 | What the agent link and the gateway need for the Studio Assistant | proposed · 2026-11-14 |
| 0048 | Updates, restore points and backups from Studio | proposed · 2026-11-13 |
| 0047 | Checking an action without running it (~act/<a>?check) | accepted · 2026-11-13 |
| 0046 | Link grants on the site’s storage | accepted · 2026-11-13 |
| 0045 | Flow metrics in ~val | accepted · 2026-11-12 |
| 0044 | Flow blocks, third set: computation on the server | accepted · 2026-11-11 |
| 0043 | The official links manifest: one checked-in list, one published index | accepted · 2026-11-11 |
| 0042 | Names people read: one rule for actions, parameters and nodes | accepted · 2026-11-11 |
All decisions: architecture decisions.
Latest specification changes
- 0.2.36 (2026-11-20): 04 — a
ptokis at most 65 536 bytes; a responder refuses a longer one (permission_denied) before it checks the signature, and a minter makes none (security audit of PR #150: the cost of a refused token grows with its length times the number of trusted keys). The wire format does not change. No fixture change. - 0.2.35 (2026-11-15): 01 — a
~valselector withhistoryorsincenames each ofhistory|since(not both),agg,window,limitat most once and no other parameter; names that start with_are Zenoh’s and are not read; a duplicate or another parameter isinvalid_parameter(typing audit 2026-11-15: afromtext could add its ownlimitto the gateway’s selector, and the historian took the first). A requester makes the selector from parsed values only. No fixture change. - 0.2.34 (2026-11-14): 06 — the 100 ms of a table’s per-row scripts are CPU time of the thread that runs them; time the host keeps that thread off a core does not count, and the wall clock counts only where the platform has no thread CPU clock. No fixture change.
- 0.2.33 (2026-11-13): 01, 05 —
~act/<a>?check: the responder checks a call as the action would take it (token, level, arguments against the meta, its driver’s own parsing) and does nothing; the answer isokor the refusal the action would give; the audit recordscheck. A responder that answers it hasattr.check = trueon its root~meta; a requester sends?checkonly there (an older responder would run the action). A WASM component of world 0.3.0 checks against the meta only (ADR 0047). No fixture change. - 0.2.32 (2026-11-13): 04 — the “no details in
err” rule covers the token check and the level check of the request; a refusal the responder gives after them by its own rule (a key outside a link’s grants or its author’s rights, an action that writes outside the node granted) says why inerr. The responder logs the reason of every refusal. No fixture change. 06 —permissions.maxpermis a code or a name ("write"), as the engine already read it; its refusal names both (2 (read) < 3 (write)). No fixture change. - 0.2.31 (2026-11-12): 06 — flow metrics:
~valgets the text keystats{nodes, edges, samples_in, samples_out, dropped, restarts, commands: {sent, ok, error}, last_sample_t?}(additive; old readers ignore it).samples_in= samples a node takes from an edge or from its own source (answers, read requests and triggers are not samples);samples_out= samples sent on a wired output;dropped= inbox drops ofpolicy.overflow;commands= thesent/ok/errorevents ofinvoke/set. Counters reset at each deploy (so at every engine start and ACL rebuild),startandreload, and are kept across a restart after a panic (restarts+ 1) and while stopped. A refused draft’sstate: 2anderrorstay in the later~vals until the next state change. A state change publishes~valat once as before; otherwise~valgoes out again only when the counters moved, at most once per period (wyrmd:metrics_interval_ms, at least 5 s) (ADR 0045). No fixture change.
All changes: specification changelog.
This site is built from the repository after every merge to main. Do not edit it by hand: change docs/, spec/ or links/official.json.