# A Node-RED Storage API plugin on SurrealDB

**URL:** <https://discourse.nodered.org/t/a-node-red-storage-api-plugin-on-surrealdb/102275>\
**Category:** Share Your Projects\
**Tags:** storage, surrealdb\
**Created:** [27 November 2026 16:14 UTC](https://discourse.nodered.org/t/a-node-red-storage-api-plugin-on-surrealdb/102275 "2026-11-27T16:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreabat](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andreabat/32/101980_2.png) [@andreabat](https://discourse.nodered.org/u/andreabat)\
**Post date:** [27 November 2026 16:14 UTC](https://discourse.nodered.org/t/a-node-red-storage-api-plugin-on-surrealdb/102275/1 "2026-11-27T16:14:02Z")

</div>

Hi everyone,

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

**SurrealDB 4.x** : **GitHub:**

> **[GitHub - TopCS/node-red-storage-surrealdb: Node-RED Storage API plugin backed by SurrealDB...](https://github.com/TopCS/node-red-storage-surrealdb)**
>
> Node-RED Storage API plugin backed by SurrealDB with immutable flow versioning, draft/publish, rollback, and DNIS phone-number route bindings.

**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](https://surrealdb.com/)

> **[The database and memory for every agent | SurrealDB](https://surrealdb.com/)**
>
> SurrealDB is the database and memory for every agent: it starts on its first query, scales to zero, speaks PostgreSQL and MySQL, and remembers in one query.

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.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [27 November 2026 16:29 UTC](https://discourse.nodered.org/t/a-node-red-storage-api-plugin-on-surrealdb/102275/2 "2026-11-27T16:29:02Z")

</div>

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!
