It is possible to embed Node-RED into a larger application. A typical scenario would be where you use Node-RED to generate flows of data that you want to display on a web dashboard - all from the same application.
node-red to the module dependencies in your application’s
along with any of the individual node dependencies you may have.
The following is a minimal example of embedded the runtime into a wider Express application.
When this approach is used, the
settings.js file included with Node-RED is not
used. Instead, the settings are passed to the
RED.init call as shown above.
Furthermore, the following settings are ignored as they are left to you to configure the Express instance as you want it:
Node-RED: Low-code programming for event-driven applications.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.