node-red-contrib-short-circuit 0.2.0

A Node-RED editor plugin that replaces long wires with clickable short-circuit endpoints.

npm install node-red-contrib-short-circuit

An Node-RED editor plugin that replaces long wires with short, interactive endpoints to reduce clutter in large flows.

Behaviour

When the direct distance between a wire's two endpoints exceeds the configured threshold:

  • The normal wire is hidden
  • A short stub and endpoints are shown at both connected nodes
image
  • Hovering an endpoint shows Node-RED's native ghost-link preview (the inter-link-node) with the node name at the other end
image
  • Clicking the ghosted preview pans to and highlights that node
  • Clicking the circular endpoint reveals the true wire
image
  • Selecting either connected node reveals all shortened wires attached to that node

Distance configuration

The distance is configured in a file in your node-red directory after installing:

.nmode-red/short-circuit.json
{
    "maxDistance": 1000
}

After editing the JSON file, refresh the Node-RED editor. The runtime reads the file again whenever the editor loads, so a Node-RED restart is not required.

If the file contains invalid JSON or an invalid distance, the plugin uses the default value of 1000 and writes a warning to the Node-RED log.

Compatibility

  • Node-RED 4.0 or newer
  • Node.js 18 or newer

This plugin also works great with the quick-link plugin: node-red-contrib-quick-link

License

MIT

Node Info

Version: 0.2.0
Updated 23 hours ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Keywords

  • node-red
  • node-red-plugin
  • editor
  • wire
  • flow

Maintainers