A Node-RED Storage API plugin on SurrealDB

Hi everyone,

We've just published a Node-RED Storage API plugin backed by

SurrealDB 4.x: GitHub:

npm: @topcs/node-red-storage-surrealdb

We use Node-RED as the IVR engine in a multi-tenant contact center

(FreeSWITCH ESL + Node-RED). Once you run Node-RED in stateless containers

alongside an existing backend, local flows.json files start getting in the way:

• You want every deploy to leave an auditable, immutable revision you can

roll back without wiring up Git/Projects on every container.

• You want draft/publish semantics so someone can prepare a change without

touching live calls.

• You want to map external domain entities (in our case, phone numbers / DNIS

and brands) to specific flow tabs from the same database the rest of the

platform already backs up.

What is SurrealDB, and why it fits Node-RED storage well

SurrealDB

If you haven't tried yet, it's an open-source multi-model database written in Rust. It combines document storage, relational tables, graph edges, and realtime LIVE SELECT subscriptions in a
single binary — it runs in-memory for tests (surreal start memory), on disk with SurrealKV, or distributed.

A few things made it a surprisingly good match for the Node-RED Storage API:

1.Strict metadata + flexible JSON payloads in the same table.
2.Atomic transactions for revisioning.
3. Clean isolation via NAMESPACE / DATABASE
4.Zero-friction local testing.

Feedback, bug reports, and PRs are very welcome.

Nice work @andreabat

With this, I guess you can snapshot the dataset, and fire it up on a different Node RED & Node JS version?

Very cool, makes testing migrations super thorough.

Nice!