Nodes that run on client side

Hi Derek,

I 'think' there are currently a couple of ways of achieving this, depending on your use case:

  • In the Node-RED dashboard: recently version 2.10.0 of the Node-RED dashboard was released, which offers a Widget API. That can be used to create your own widget in the dashboard. In the .js file, there is a HTML function where you can generate Javascript code (as a string) that will run in the browser.

  • In the Node-RED flow editor: every Node-RED node can have Javascript that runs in the browser (as defined in it's .html file), but that is - I think - only active when you have the node's config screen open.

Perhaps you can explain a bit more what you are trying to build ...