iowap-node
IOWAP Node Framework — Build your own node in the IOWAP ecosystem
THIS IS THE REPO YOU WANT if you want to run a node. Clone this, configure your capabilities, and join the network.
The node framework provides everything you need to register, heartbeat, claim tasks, and run handlers. Nodes are the workers — they advertise what they can do and execute tasks when matched.
Quick Start (Linux)
One-liner — installs the Python package from PyPI into a dedicated
venv (systemd user unit, registration; re-runs offer update / override /
uninstall). IOWAP_SOURCE=git switches to a checkout-based dev install.
curl -fsSL https://raw.githubusercontent.com/iowap-org/iowap-node/main/install.sh | bash
From PyPI (manual, any platform):
pip install "iowap-node" # import namespace: nodes
iowap-cli mcp install # optional: the MCP toolkit (own venv)
From source (dev):
git clone https://github.com/iowap-org/iowap-node.git
cd iowap-node
pip install -e .
cp relay_config.json.example ~/.relay/relay_config.json
# edit ~/.relay/relay_config.json
iowap-cli node register
iowap-cli capabilities publish default
Updates: iowap-cli update check (node + MCP toolkit) and
iowap-cli update apply — PyPI-first with the GitHub release as fallback.
What You Can Build
A node is just a process that:
- Heartbeats its capabilities to a relay server (what can I do?)
- Claims tasks that match its capabilities (I'll take this)
- Runs handlers — scripts or programs — to execute the work
- Completes tasks with results
Your capabilities are defined in a node.yaml:
node_name: "my-notifier"
node_description: "Sends push notifications"
capabilities:
notification.send:
description: "Send a push notification to my phone"
type: script
input_schema:
fields:
- name: title
type: string
required: true
description: "Notification title"
- name: body
type: string
required: true
description: "Notification body"
- name: priority
type: string
required: false
description: "low / normal / high"
Just write a handler script that reads the JSON handler envelope from stdin, calls your push service, and writes the result to stdout. Your schema fields arrive NESTED under the input key of the envelope — not at the top level:
{"task_id": "...", "capability": "notification.send", "input": {"title": "...", "body": "...", "priority": "normal"}}
That is the frozen T-005b Envelope-Contract (handler_runner._build_stdin_payload); stdout is normalized back into the Response Envelope ({"status": "completed", "result": {...}}). That's it — the node framework handles the rest.
Components
| Component | Description |
|---|---|
iowap-cli |
CLI tool — register, manage, submit tasks, list nodes |
iowap-daemon |
Event-driven worker — listens for tasks via SSE, runs handlers |
relay_client |
HTTP client library for relay API |
handler_runner |
Execute custom handlers with stdin/stdout contract |
node_config |
Capability/configuration management |
CLI Reference
iowap-cli register # Register with a relay server
iowap-cli capabilities server # List server-known capabilities
iowap-cli capabilities publish # Publish your capabilities
iowap-cli task submit <capability> # Submit a task
iowap-cli task wait <id> # Wait for task completion
iowap-cli node list # List registered nodes
iowap-cli node info <id> # Node details
iowap-cli daemon # Start the daemon (foreground)
iowap-cli bridge upload <file> # Upload via bridge route
iowap-cli bridge download <url> # Download via bridge route
Forward Routing
A node can offer forward slots: submitters address a slot instead of
a concrete capability, and the relay resolves (this node, slot) →
target capability at submit time. Submission forces the relay's
forward pseudo-capability (the slot rides inside the payload):
iowap-cli task submit --stage 'probe.echo:{"operation":"status"}' --forward-slot 1
Slots are declared in the active profile (~/.relay/node.yaml):
a forward slot takes a target capability via the relay's forward
mappings; text/bool slots carry typed values or references —
e.g. feeding a prompt into another node's slot:
forward_slots:
"1":
type: forward
label: Wartungsslot
"2":
type: text
label: Instruktprompt
value: "Prüfe …"
forwardis never a real capability and never advertised by the node — it exists for submission only (acapability: forwardblock in a profile is refused atiowap-cli capabilities validate|publish).- Declared slots are transported with every daemon heartbeat (T-233/T-240): removing slots and heartbeating with the emptied declaration clears the server-side rows (empty list = delete all).
- The declaration is validated up front (T-239): a malformed
forward_slotsblock failsiowap-cli capabilities publishinstead of leaving the node silent at the relay.
Forward-Slots section in the node dashboard (T-030)
The node dashboard (port 7783, section „Forward-Slots" under
Capabilities) shows the node's declared slots together with their
(node, slot) → target_capability mappings:
- Read side: the dashboard fetches
GET /relay/v2/forward-mappings/slots?node=<own>andGET /relay/v2/forward-mappings?node=<own>with the node token. - Admin nodes (admin-role node token, human admin or master) can edit
the mapping target per slot inline — saved via
PUT /relay/v2/forward-mappings/{node_id}/{slot}with{"target_capability": "…"}(upsert, optionaltarget_node_idpin) — and delete a mapping viaDELETE /relay/v2/forward-mappings/{node_id}/{slot}. - Nodes without the admin role get a quiet note („nur für Admin-Nodes konfigurierbar") instead of a dead editor.
- Slots themselves are NOT created in the dashboard — they come from the
forward_slotsblock in node.yaml and ride the heartbeat (T-053).
Docs: live on your relay at /relay/v2/docs/concepts/forward-routing —
concepts/forward-routing.md.
Capability dashboard fields (T-030)
The node dashboard's capability form (Add) writes
<workspace>/bridge/providers.yaml; besides the T-019 fields it carries:
| Field | Meaning | Default |
|---|---|---|
max_parallel |
max parallel claims the scheduler grants for this capability | 1 |
cost |
admission points charged per claim (T-247) | 1 |
artifacts_glob |
workspace-relative glob of files uploaded as artifacts after a run (e.g. artifacts/host.sysinfo/*) |
— |
Empty fields mean the defaults; invalid values (non-integer, below the
minimum) are rejected without writing anything. max_parallel/cost
are forwarded from the providers entry into the bridge manifest →
heartbeat → relay scheduler (they take effect once the bridge daemon
passes them through the manifest — the Go side currently serves name/
type/summary/long_run/input_schema).
Script upload (T-030)
Next to the command field, „Script wählen…" opens the native file
picker (.bat .cmd .ps1 .py .sh .exe) and uploads the file to
POST /caps/script-upload (multipart). The dashboard stores it
atomically under <workspace>/bridge/scripts/ (2 MB cap, filename
sanitized, collisions get a numeric suffix like cleanup.1.py) and
prefills the form — capability name (slugified filename) and command
argv per extension:
| Extension | Default argv |
|---|---|
.bat / .cmd |
cmd /c scripts\<file> |
.ps1 |
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\<file> |
.py |
python scripts\<file> |
.sh |
bash scripts/<file> |
.exe |
scripts\<file> |
Both fields stay editable. Relative scripts/... paths work because the
bridge daemon executes process commands with cwd = workspace
(process.go: cmd.Dir = workspaceDir).
Bridge workspace channel (daemon.json, T-026)
In a universal-node setup the host-side bridge daemon and the node share a workspace volume. Two channels run over it:
- Node → daemon:
<workspace>/bridge/providers.yaml— capability definitions (written by the node dashboard, watched by the daemon, T-022). - Daemon → node:
<workspace>/bridge/daemon.json—{"url": "http://host.docker.internal:7780", "token": "<bridge token>"}, written by the daemon after every successful bootstrap. The node's watcher (10 s poll) adoptsurl+tokeninto thebridge:block of the active node.yaml — ONLY those two fields, everything else stays untouched — and SIGHUPs the daemon pid files so the change is picked up live. This repairs containers that were re-created by hand (docker compose upwithout the token envs): the daemon starts existing containers as-is, so the shared file is the only channel that survives every recreate.
Precedence: daemon.json wins. While the file exists, a
hand-configured bridge.url/bridge.token in node.yaml is overwritten by
the next poll (every takeover is logged). To configure the bridge by hand,
delete <workspace>/bridge/daemon.json first — a missing file is a no-op.
Docker
A base Docker image is available for containerized nodes:
docker pull ghcr.io/iowap-org/iowap-node:latest
See docker/nodes/base/ for the Dockerfile.
Docs
Full documentation in iowap-org/iowap-docs:
- getting-started.md — first steps
- node/setup.md — node setup
- node/cli.md — full CLI reference
- node/capabilities.md — capability definitions
- federation/concept.md — cross-relay federation
License
MIT — see LICENSE.
Metadata
Release files for iowap-node 2.3.61
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iowap_node-2.3.61-py3-none-any.whl | Python 3 | none | any | Details for iowap_node-2.3.61-py3-none-any.whl |
Release files / iowap_node-2.3.61-py3-none-any.whl
| Download URL | iowap_node-2.3.61-py3-none-any.whl |
|---|---|
| Size | 192.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97cd74e3f3ff5be7595a88ebfbd4eb5c86df8e9d311c65e48a68751b2a6ce1a2
|
|
BLAKE2b-256 checksum How to use checksums |
9651cc0c5972e357727a77ffef3ddcbf07814ceb6680a0020af7d51ecc7e7d9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for iowap-node 2.3.61
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.