Zenoh Demo

Apr 19, 2026 | Tech Software

How This Demo is Wired
  • A local zenohd router with the zenoh-plugin-remote-api enabled bridges native Zenoh peers and browser clients.
  • A publisher written in Python (see the code section) connects to the router over TCP at tcp/127.0.0.1:7447.
  • This page auto-connects to the router over the Remote-API WebSocket at ws/127.0.0.1:10000 and subscribes to the key demo/zenoh-demo; whenever the publisher goes up or down the status badge follows.

Live Subscriber

router: ? publisher: ?
Name
Iteration
Message

Manual Setup and Run in Ubuntu 24.04

Install zenohd and the Remote-API plugin from the Eclipse Zenoh apt repository:

echo "deb [trusted=yes] https://download.eclipse.org/zenoh/debian-repo/ /" \
  | sudo tee /etc/apt/sources.list.d/eclipse-zenoh.list
sudo apt-get update
sudo apt-get install -y zenoh zenoh-plugin-remote-api

Install the Python binding into a venv:

python3 -m venv ~/Downloads/zenoh-demo/venv
~/Downloads/zenoh-demo/venv/bin/pip install eclipse-zenoh

Start the router (terminal 1):

zenohd \
  --cfg='listen/endpoints:["tcp/0.0.0.0:7447"]' \
  --cfg='plugins/remote_api/websocket_port:"10000"'

Start the publisher (terminal 2, see the Python code):

~/Downloads/zenoh-demo/venv/bin/python \
  code/python/middleware/zenoh_pub.py --name alice --message hello

Publisher Python Source Code