Provides Node-RED persistence using PostgreSQL instead of the default filesystem. Current version is 1.0.51, with moderate release cadence (6 releases to date). Key differentiator: enables multi-instance Node-RED deployments with shared state via PostgreSQL, supports flows, credentials, settings, library storage. Alternative to filesystem-based storage. Note: sessions and projects are not implemented; error handling is minimal.
npm install node-red-contrib-storagemodule-postgres-yunzaiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Node-RED to use PostgreSQL for persistence by adding storageModule and postgresURI to settings.js.
If sessions are required, do not use this module; consider filesystem or another storage backend.
Avoid using Node-RED project features with this module.
Consider wrapping with a connection pool if performance is critical.
Monitor Node-RED logs for PostgreSQL errors; implement custom error handling if needed.
Run 'npm install pg' in your Node-RED user directory before using this module.
npm install pg --save in the Node-RED user directory
Verify the postgresURI connection string and network connectivity
Use: const storageModule = require('node-red-contrib-storagemodule-postgres')