Sharing data (json) between Node-red Editor (Nodes) and custom editor theme comonents

Hello All,
I am experimenting custom theme for Node-Red editor.
I am also referring:

I have one query:
How to send/share node data (like json data) to my custom theme component and vice-versa.

Thanks in advance.

Can you clarify what that means?

What node? What data?

At server side? at client side?

Hello @Steve-Mcl,

How to send/share node data (like json data) to my custom theme component and vice-versa

  • I have basic custom node ..
    After deploy/trigger I am having some result json in node..
    Now, this result json I want to access it from my custom editor theme component (js) file.

Currently I am using same theme code for my experiment:

and this is the file where I want to access that result json which is created by my custom node:

You will probably need to create a node-red plug-in to capture the "deploy" event. From there, you could store this "data" (whatever that is) in memory or file, ready for the client side request for it.

To access this "data", you can request it (via http/AJAX) from client side to node-red. Here is an example: Async getting list for node config - #4 by Steve-Mcl
This endpoint would typically be created in your plug-in.

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