Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-red-flows-mongo

freefoote20MIT0.5.2

Node Red Module to store Flows and the library in Mongo.

node-red, mongo

readme

Node Red Flows Storage in Mongo

This module allows you to store your flows and library entries in MongoDB.

It's incredibly crude, and slow for large numbers of library entries, but it does the job for my use case and scale.

Pull requests welcome!

Usage

For this one, you'll need a separate script to start your Node Red, as per the guide for running a custom Node-Red inside your process:

http://nodered.org/docs/embedding.html

Firstly, require the module:

npm install --save node-red-flows-mongo

Then, in your settings, add:

var settings = {
    ...
    storageModule: require("node-red-flows-mongo"),
    mongoUrl: 'mongodb://localhost/nodered',
    ...
};

Your mongoUrl could also be an environment variable, with `process.env.MONGO_URL'.