# Accessing ContextStore of embedded instance of nodered from parent node.js application

**URL:** <https://discourse.nodered.org/t/accessing-contextstore-of-embedded-instance-of-nodered-from-parent-node-js-application/55761>\
**Category:** General\
**Created:** [27 December 2021 18:36 UTC](https://discourse.nodered.org/t/accessing-contextstore-of-embedded-instance-of-nodered-from-parent-node-js-application/55761 "2021-12-27T18:36:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![looccaa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/looccaa/32/53136_2.png) [@looccaa](https://discourse.nodered.org/u/looccaa)\
**Post date:** [27 December 2021 18:36 UTC](https://discourse.nodered.org/t/accessing-contextstore-of-embedded-instance-of-nodered-from-parent-node-js-application/55761/1 "2021-12-27T18:36:44Z")

</div>

Hi,

I am trying to create applicaton in nodejs with embeded node-red instance.

Is there any possibility to access (read and write) the ContextStore (global, flow and node cotenxt variables) set in Nodered nodes from parent nodejs application?

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [27 December 2021 22:54 UTC](https://discourse.nodered.org/t/accessing-contextstore-of-embedded-instance-of-nodered-from-parent-node-js-application/55761/2 "2021-12-27T22:54:06Z")

</div>

The context implementation is pluggable, so there is nothing to stop you writing one that can be accessed from the host app

[https://nodered.org/docs/api/context/](https://nodered.org/docs/api/context/)

---

<div class="post-metadata">

**Author:** ![looccaa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/looccaa/32/53136_2.png) [@looccaa](https://discourse.nodered.org/u/looccaa)\
**Post date:** [29 December 2021 16:07 UTC](https://discourse.nodered.org/t/accessing-contextstore-of-embedded-instance-of-nodered-from-parent-node-js-application/55761/3 "2021-12-29T16:07:11Z")

</div>

Thanks for your reply,

did found an great example on integrating Redis as contextStore on [GitHub - node-red/node-red-context-redis: A Node-RED Context store plugin backed by Redis](https://github.com/node-red/node-red-context-redis)

---

<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:** [12 January 2022 16:07 UTC](https://discourse.nodered.org/t/accessing-contextstore-of-embedded-instance-of-nodered-from-parent-node-js-application/55761/4 "2022-01-12T16:07:48Z")

</div>

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