
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
node-red-contrib-wot-discovery
Advanced tools
An experimental Node-RED package for Discovery in the Web of Things (WoT).
Experimental Node-RED package for discovery in the Web of Things (WoT).
It provides a wot-discovery
node that can be used for discovering and storing WoT Thing Descriptions (TDs) as well as a wot-scripting
node that serves as an interface to node-wot
for triggering interaction affordances.
As a latest addition, a wot-fetch
node provides a way to retrieve TDs directly from URLs using HTTP(S) or CoAP(S).
wot-fetch
NodeThe fetch node can retrieve TDs from URLs which can either be specified in the node itself or as a message property (using the field msg.tdUrl
).
It supports the URL schemes http(s)
and coap(s)
.
wot-discovery
NodeThe discovery node can obtain TDs from the local network (using CoAP) or from a MQTT broker and save them either in the context or in the original message object that was passed to the node.
When using CoAP, you can choose between a number of different methods for obtaining TDs, all of which use IP multicast (both IPv4 and IPv6). You can choose between the multicast addresses for all IPv4/IPv6 nodes or the respective addresses for "All CoAP Nodes".
Supported methods for CoAP so far include:
/.well-known/wot
./.well-known/core
(the correct content type and resource type has to be set in the list of links).For MQTT, WoT producers have to publish their TDs to a topic with the prefix wot/td
which can then be queried by the discovery node.
wot-scripting
NodeThe scripting node consumes TDs that are passed in inside a message object (in the field thingDescription
).
You can choose which kind of affordance type should be triggered and define a filter (either by affordance name or by the semantic @type
).
If an affordance returns an output, you can choose where this output should be saved (either in the message or the context) and which field should be used.
FAQs
An experimental Node-RED package for Discovery in the Web of Things (WoT).
The npm package node-red-contrib-wot-discovery receives a total of 1 weekly downloads. As such, node-red-contrib-wot-discovery popularity was classified as not popular.
We found that node-red-contrib-wot-discovery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.