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

**URL:** <https://discourse.nodered.org/t/sharing-data-json-between-node-red-editor-nodes-and-custom-editor-theme-comonents/81028>\
**Category:** General\
**Tags:** editor\
**Created:** [4 September 2023 08:27 UTC](https://discourse.nodered.org/t/sharing-data-json-between-node-red-editor-nodes-and-custom-editor-theme-comonents/81028 "2023-09-04T08:27:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pioneerj](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@Pioneerj](https://discourse.nodered.org/u/Pioneerj)\
**Post date:** [4 September 2023 08:27 UTC](https://discourse.nodered.org/t/sharing-data-json-between-node-red-editor-nodes-and-custom-editor-theme-comonents/81028/1 "2023-09-04T08:27:35Z")

</div>

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

> **[GitHub - flowforge/flowforge-nr-theme: A custom Node-RED theme used when...](https://github.com/flowforge/flowforge-nr-theme)**
>
> A custom Node-RED theme used when running inside the FlowForge platform - GitHub - flowforge/flowforge-nr-theme: A custom Node-RED theme used when running inside the FlowForge platform

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

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 September 2023 08:31 UTC](https://discourse.nodered.org/t/sharing-data-json-between-node-red-editor-nodes-and-custom-editor-theme-comonents/81028/2 "2023-09-04T08:31:21Z")

</div>

> [@Pioneerj](#):
>
> How to send/share node data (like json data) to my custom theme component and vice-versa

Can you clarify what that means?

What node? What data?

> [@Pioneerj](#):
>
> send/share node data (like json data) to my custom theme

At server side? at client side?

---

<div class="post-metadata">

**Author:** ![Pioneerj](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@Pioneerj](https://discourse.nodered.org/u/Pioneerj)\
**Post date:** [4 September 2023 08:38 UTC](https://discourse.nodered.org/t/sharing-data-json-between-node-red-editor-nodes-and-custom-editor-theme-comonents/81028/3 "2023-09-04T08:38:38Z")

</div>

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:

> **[GitHub - flowforge/flowforge-nr-theme: A custom Node-RED theme used when...](https://github.com/flowforge/flowforge-nr-theme)**
>
> A custom Node-RED theme used when running inside the FlowForge platform - GitHub - flowforge/flowforge-nr-theme: A custom Node-RED theme used when running inside the FlowForge platform

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

> <https://github.com/flowforge/flowforge-nr-theme/blob/main/common/forge-common.js>

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 September 2023 08:47 UTC](https://discourse.nodered.org/t/sharing-data-json-between-node-red-editor-nodes-and-custom-editor-theme-comonents/81028/4 "2023-09-04T08:47:29Z")

</div>

> [@Pioneerj](#):
>
> After deploy/trigger I am having some result json in 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.

> [@Pioneerj](#):
>
> Now, this result json I want to access it from my custom editor theme component (js) file

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](https://discourse.nodered.org/t/async-getting-list-for-node-config/57506/4)  
This endpoint would typically be created in your plug-in.

---

<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:** [3 November 2023 08:48 UTC](https://discourse.nodered.org/t/sharing-data-json-between-node-red-editor-nodes-and-custom-editor-theme-comonents/81028/5 "2023-11-03T08:48:08Z")

</div>

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