node-red-contrib-short-circuit 0.2.0
A Node-RED editor plugin that replaces long wires with clickable short-circuit endpoints.
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
- Hovering an endpoint shows Node-RED's native ghost-link preview (the inter-link-node) with the node name at the other end
- Clicking the ghosted preview pans to and highlights that node
- Clicking the circular endpoint reveals the true wire
- 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