node-red-node-discovery 0.0.20

A Node-RED node that uses Bonjour / Avahi to discover nearby services.

npm install node-red-node-discovery

A Node-RED node that uses Bonjour / Avahi to discover local network services such as iTunes libraries, printers, etc.

Now also supports announcing new services.


please read the install instructions for the underlying npm.

For Debian / Ubuntu this requires installing

    sudo apt-get install libavahi-compat-libdnssd-dev


Run the following command in your Node-RED user directory - typically ~/.node-red

    npm i node-red-node-discovery



Uses an implementation of mdns to provide a Bonjour / Avahi service discovery capability.

msg.payload contains the service object on both arrival and leaving.

msg.payload.state contains boolean true or false depending if the service has arrived (true) or gone away (false)..

Within the msg.payload object the most interesting things are:

  • msg.payload.interface
  • msg.payload.port
  • msg.payload.addresses
  • msg.payload.txtRecord

For a full list of official service types see this list.


Provides a Bonjour / Avahi / Zeroconf announcement node.

If msg.payload is false - the announcement is stopped. Any other value starts the announcement process.

The announcement can be customised by the msg if not configured in the edit panel.

  • msg.service - For a full list of official service types see this list.
  • msg.port - the tcp or udp port to use.
  • - the short description name of the service. If you use %h in the name, it will be replaced by the machine hostname.
  • msg.txtRecord - a set of comma separated name:value pairs


When Node-RED starts you will get a big WARNING message about the Bonjour Compatibility layer... this is just a warning so don't worry.

Node Info

Version: 0.0.20
Updated 3 months, 3 weeks ago
License: Apache-2.0


1 in the last day
106 in the last week
350 in the last month


  • discovery
  • announce


  • node-red
  • mdns
  • avahi
  • bonjour
  • discovery


  • dceejay
  • knolleary