# Labels for wires

**URL:** <https://discourse.nodered.org/t/labels-for-wires/97633>\
**Category:** Feature Requests\
**Tags:** editor\
**Created:** [15 June 2025 13:48 UTC](https://discourse.nodered.org/t/labels-for-wires/97633 "2025-06-15T13:48:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [15 June 2025 13:48 UTC](https://discourse.nodered.org/t/labels-for-wires/97633/1 "2025-06-15T13:48:03Z")

</div>

Node-red is gradually acquiring more ways to include documentation in a flow, and to read it.

You can add a tooltip to function node (only?) outputs.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e2530d3d270db72fa4d71ea704c218a7b79c4b2e.png)

Tooltips are automatic for switch nodes

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb987c1d5eaa2db0f8b11c85cde04212126328d7.png)

Groups allow a description  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/91485666a44297a9361dfc12bae535d969b70802.png)

Is it desirable to allow a wire to have a description, to be visible when the wire is clicked?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/3/f3de748dc9560861dd38815a0a06789a830316f6.png)

This proposal has been discussed before, eg [https://discourse.nodered.org/t/add-labels-to-wires-in-editor/50133](https://discourse.nodered.org/t/add-labels-to-wires-in-editor/50133)

I know that a wire has no entry in flows.json, it only exists in the definition of the originating node as the id of the node it links to.  
However, there is some devilry afoot which allows you to click on a wire and select it.

Wires are not straight - can we create a curved line of text along the wire by CSS?

Position of the displayed text - the centre of the wire? Adjacent to the node it links to ("right justified")?

If a comment is longer than it's wire, don't overflow.

Definition:

```auto
   ...
        "outputs": 2,
        "x": 590,
        "y": 180,
        "wires": [
            [
                "fcce9fc403afc77b"
            ],
            [
                "dd35dd2bbd582f93"
            ]
        ],
        "wire comments": [
            {"id": "fcce9fc403afc77b", "comment": "Steam traction"},
            {"id": "dd35dd2bbd582f93", "comment": "Electric traction"}
         ],
    ]
},

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [15 June 2025 22:50 UTC](https://discourse.nodered.org/t/labels-for-wires/97633/2 "2025-06-15T22:50:33Z")

</div>

> [@jbudd](#):
>
> You can add a tooltip to function node (only?) outputs.

Nope. Any node. And for inputs as well of course.

> [@jbudd](#):
>
> Tooltips are automatic for switch nodes

Ha! Node-RED continues to surprise - I never even realised that! I usually name my outputs.

> [@jbudd](#):
>
> Wires are not straight - can we create a curved line of text along the wire by CSS?

Well, it is theoretically possible. Not sure how practically easy it is though:

> **[Curved Text Along a Path | CSS-Tricks](https://css-tricks.com/snippets/svg/curved-text-along-path/)**
>
> We can flow text along a curved line with three tools built right into SVG: , and .

Also, not convinced that it would be worth it and would make the text harder to read certainly.

> [@jbudd](#):
>
> Position of the displayed text - the centre of the wire? Adjacent to the node it links to ("right justified")?

My personal preference would be options to add text to both the start and end of the wire separately. Maybe the middle as well. Sizing would be an issue for the flow author to deal with, some things are not worth automating.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 August 2025 22:50 UTC](https://discourse.nodered.org/t/labels-for-wires/97633/3 "2025-08-14T22:50:56Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
