{"_id":"@d3c0ru5/nodered-redis-context","_rev":"6-1d763bb5a66ebe9113966666c8dd79f9","name":"@d3c0ru5/nodered-redis-context","dist-tags":{"latest":"0.9.5"},"versions":{"0.9.0":{"name":"@d3c0ru5/nodered-redis-context","version":"0.9.0","keywords":["nodered","context","plugin","redis","store"],"author":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"},"license":"ISC","_id":"@d3c0ru5/nodered-redis-context@0.9.0","maintainers":[{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"}],"dist":{"shasum":"d9fc0fec44a7071f8e990a227f898af56ecb8d3c","tarball":"https://registry.npmjs.org/@d3c0ru5/nodered-redis-context/-/nodered-redis-context-0.9.0.tgz","fileCount":6,"integrity":"sha512-pdid5DmMN23/Fk12rPWGVZSxO4Nwz4/nwVAaElqTrRoB2V+LZIa+y0tofYj4Zz2dNxWn7AUKUjDgdweyzPmMuw==","signatures":[{"sig":"MEYCIQDDX8v/ARXqdYbU8SZH5xDP3F/1AH1lD52V8ACKcsSmEQIhANXNSuN4Ex1vSw4iwTowQfZ9H8Jum/yZ7gXeZv0svcKs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14755},"main":"index.js","type":"module","exports":"./index.js","gitHead":"ade3e72cbbaf9857a01a424763a6c728c28ebb48","scripts":{"test":"npm run setup:up && NODE_ENV=test mocha --timeout 10000 --exit --trace-warnings \"**/*.@(test).js\" && npm run setup:down","build":"docker compose -f __tests__/docker-compose.yaml up -d","setup:up":"docker compose -f __tests__/docker-compose.yaml up -d","setup:down":"docker compose -f __tests__/docker-compose.yaml down"},"_npmUser":{"name":"d3c0ru5","actor":{"name":"d3c0ru5","type":"user","email":"chpeterle.profissional@gmail.com"},"email":"chpeterle.profissional@gmail.com"},"_npmVersion":"10.2.3","description":"A Node-RED context plugin using Redis as a backend store.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"redis":"^5.6.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.2.0","mocha":"^11.7.1"},"_npmOperationalInternal":{"tmp":"tmp/nodered-redis-context_0.9.0_1751982747073_0.671766916701575","host":"s3://npm-registry-packages-npm-production"}},"0.9.1":{"name":"@d3c0ru5/nodered-redis-context","version":"0.9.1","keywords":["nodered","context","plugin","redis","store"],"author":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"},"license":"ISC","_id":"@d3c0ru5/nodered-redis-context@0.9.1","maintainers":[{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"}],"dist":{"shasum":"c72feb70b0f6259ffc74793ba0fc342ef438e849","tarball":"https://registry.npmjs.org/@d3c0ru5/nodered-redis-context/-/nodered-redis-context-0.9.1.tgz","fileCount":6,"integrity":"sha512-FXvzx5gSsKKp7KEZlAHfnlSBpA0Fm/md1oWZybIU5z6ydavI8qxrLTRvGhdgubiAQsXGRM629gW3EeF0FA8xYQ==","signatures":[{"sig":"MEUCIEuFEswqViIvb7r9QNQI7mGTN1ghk+RQxvPA+OmQ6LWlAiEAo5Y6VRHHiKdL4ad9WCRrnMRnh0IOoc+VA1vK2f264HI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14849},"main":"index.js","exports":"./index.js","gitHead":"b1de2da3db5ae41080227404f68303bbfe5c183a","scripts":{"test":"npm run setup:up && npm run unit:test && npm run setup:down","build":"docker compose -f __tests__/docker-compose.yaml up -d","setup:up":"docker compose -f __tests__/docker-compose.yaml up -d","unit:test":"NODE_ENV=test mocha --timeout 10000 --exit --trace-warnings \"**/*.@(test).js\"","setup:down":"docker compose -f __tests__/docker-compose.yaml down"},"_npmUser":{"name":"d3c0ru5","actor":{"name":"d3c0ru5","type":"user","email":"chpeterle.profissional@gmail.com"},"email":"chpeterle.profissional@gmail.com"},"_npmVersion":"10.2.3","description":"A Node-RED context plugin using Redis as a backend store.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"redis":"^5.6.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","chai":"^4.5.0","mocha":"^11.7.1"},"_npmOperationalInternal":{"tmp":"tmp/nodered-redis-context_0.9.1_1751987030049_0.1167195495306248","host":"s3://npm-registry-packages-npm-production"}},"0.9.2":{"name":"@d3c0ru5/nodered-redis-context","version":"0.9.2","keywords":["nodered","context","plugin","redis","store"],"author":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"},"license":"ISC","_id":"@d3c0ru5/nodered-redis-context@0.9.2","maintainers":[{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"}],"dist":{"shasum":"b1424267f7d23e8df332d201bac37c26894e662f","tarball":"https://registry.npmjs.org/@d3c0ru5/nodered-redis-context/-/nodered-redis-context-0.9.2.tgz","fileCount":6,"integrity":"sha512-KzhPGk/tnkjaQHOC/I0ESTfkly6vPsMiQZlCvQmUYauVnLKznt6GvtdQEKEaPWFwgwusN6cGuQFzYCkbyOAR7Q==","signatures":[{"sig":"MEUCIGl4DlS3zXmnESIp5IO1P/NK7q5NfSUvD47Jx9R6JUJdAiEA9ZfYid1h3WRF/3kWjFsbFNAFEZvmCAdtkUJWij1Z1ys=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14779},"main":"index.js","exports":"./index.js","gitHead":"b1de2da3db5ae41080227404f68303bbfe5c183a","scripts":{"test":"npm run setup:up && npm run unit:test && npm run setup:down","setup:up":"docker compose -f __tests__/docker-compose.yaml up -d","unit:test":"NODE_ENV=test mocha --timeout 10000 --exit --trace-warnings \"**/*.@(test).js\"","setup:down":"docker compose -f __tests__/docker-compose.yaml down"},"_npmUser":{"name":"d3c0ru5","actor":{"name":"d3c0ru5","type":"user","email":"chpeterle.profissional@gmail.com"},"email":"chpeterle.profissional@gmail.com"},"_npmVersion":"10.2.3","description":"A Node-RED context plugin using Redis as a backend store.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"redis":"^5.6.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","chai":"^4.5.0","mocha":"^11.7.1"},"_npmOperationalInternal":{"tmp":"tmp/nodered-redis-context_0.9.2_1751987052039_0.5468650642467876","host":"s3://npm-registry-packages-npm-production"}},"0.9.3":{"name":"@d3c0ru5/nodered-redis-context","version":"0.9.3","keywords":["nodered","context","plugin","redis","store"],"author":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"},"license":"ISC","_id":"@d3c0ru5/nodered-redis-context@0.9.3","maintainers":[{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"}],"dist":{"shasum":"657f2ac761f33abab7184771d9ce58e16bb49c46","tarball":"https://registry.npmjs.org/@d3c0ru5/nodered-redis-context/-/nodered-redis-context-0.9.3.tgz","fileCount":6,"integrity":"sha512-u5ywIGiNDGNMNakPvuFsvq7DulAf3ZC4Tdw7PoQNw6tV9G/d7/Adgxed0c+wYK1+mwwSqlzn7ox5H6J6bf1ZZg==","signatures":[{"sig":"MEQCICt258GVweCdBfh0vfIH4kyhFA1TyvBFARz/PXfaDK9BAiAjf0CnWW+iVb3ogrVDUWZ1lhuxobtK0EgZJbiML13L8g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14819},"main":"index.js","exports":"./index.js","gitHead":"f82caa79a551e0132f934195e3457eb2a10fddb2","scripts":{"test":"npm run setup:up && npm run unit:test && npm run setup:down","setup:up":"docker compose -f __tests__/docker-compose.yaml up -d","unit:test":"NODE_ENV=test mocha --timeout 10000 --exit --trace-warnings \"**/*.@(test).js\"","setup:down":"docker compose -f __tests__/docker-compose.yaml down"},"_npmUser":{"name":"d3c0ru5","actor":{"name":"d3c0ru5","type":"user","email":"chpeterle.profissional@gmail.com"},"email":"chpeterle.profissional@gmail.com"},"_npmVersion":"10.2.3","description":"A Node-RED context plugin using Redis as a backend store.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"redis":"^5.6.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","chai":"^4.5.0","mocha":"^11.7.1"},"_npmOperationalInternal":{"tmp":"tmp/nodered-redis-context_0.9.3_1752073016778_0.5483718410550342","host":"s3://npm-registry-packages-npm-production"}},"0.9.4":{"name":"@d3c0ru5/nodered-redis-context","version":"0.9.4","keywords":["nodered","context","plugin","redis","store"],"author":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"},"license":"ISC","_id":"@d3c0ru5/nodered-redis-context@0.9.4","maintainers":[{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"}],"homepage":"https://github.com/D3C0RU5/nodered-redis-context#readme","bugs":{"url":"https://github.com/D3C0RU5/nodered-redis-context/issues"},"dist":{"shasum":"a747ba201cc1e33c953bd21a35caba4bfc15e866","tarball":"https://registry.npmjs.org/@d3c0ru5/nodered-redis-context/-/nodered-redis-context-0.9.4.tgz","fileCount":6,"integrity":"sha512-ofNNtaILLFdVY8bMRalrxz73Bq8PPqneoMGpGsSTVyEv8nYaMppKyqKcTJeAawEH4dT0iTlcE2IGktFQL5/6SQ==","signatures":[{"sig":"MEUCIAVPwtiBk1SqyqyN2DEr6O1HYzfOURXh24+n3M5RdElFAiEA9jceYG3MMsqRMDKG2dq/ul8tSFnGgN2LvlhjdtdSCPc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15144},"main":"index.js","exports":"./index.js","gitHead":"a6f361cc80e51a6b33bc4bbfec0ee5742cb928a3","scripts":{"test":"npm run setup:up && npm run unit:test && npm run setup:down","setup:up":"docker compose -f __tests__/docker-compose.yaml up -d","unit:test":"NODE_ENV=test mocha --timeout 10000 --exit --trace-warnings \"**/*.@(test).js\"","setup:down":"docker compose -f __tests__/docker-compose.yaml down"},"_npmUser":{"name":"d3c0ru5","actor":{"name":"d3c0ru5","type":"user","email":"chpeterle.profissional@gmail.com"},"email":"chpeterle.profissional@gmail.com"},"repository":{"url":"git+https://github.com/D3C0RU5/nodered-redis-context.git","type":"git"},"_npmVersion":"10.2.3","description":"A Node-RED context plugin using Redis as a backend store.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"redis":"^5.6.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","chai":"^4.5.0","mocha":"^11.7.1"},"_npmOperationalInternal":{"tmp":"tmp/nodered-redis-context_0.9.4_1752153709745_0.04663009489709058","host":"s3://npm-registry-packages-npm-production"}},"0.9.5":{"name":"@d3c0ru5/nodered-redis-context","version":"0.9.5","description":"A Node-RED context plugin using Redis as a backend store.","main":"index.js","exports":"./index.js","scripts":{"setup:up":"docker compose -f __tests__/docker-compose.yaml up -d","setup:down":"docker compose -f __tests__/docker-compose.yaml down","unit:test":"NODE_ENV=test mocha --timeout 10000 --exit --trace-warnings \"**/*.@(test).js\"","test":"npm run setup:up && npm run unit:test && npm run setup:down"},"keywords":["nodered","context","plugin","redis","store"],"author":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"},"license":"ISC","devDependencies":{"chai":"^4.5.0","esm":"^3.2.25","mocha":"^11.7.1"},"dependencies":{"redis":"^5.6.0"},"repository":{"type":"git","url":"git+https://github.com/D3C0RU5/nodered-redis-context.git"},"_id":"@d3c0ru5/nodered-redis-context@0.9.5","gitHead":"11215147b8a6fab17f8224769772e1e30a24180c","bugs":{"url":"https://github.com/D3C0RU5/nodered-redis-context/issues"},"homepage":"https://github.com/D3C0RU5/nodered-redis-context#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-zHB5xOc8W6wGXhpslENb6wlt6yoMCifRx3zfzaeZI1wnsDB0tIETxrlyQxfGUvA9uVQaMRam6l8M3SrAZPu9nw==","shasum":"7660ee814fb965a4e88ee8c332e6438dd45ba0d9","tarball":"https://registry.npmjs.org/@d3c0ru5/nodered-redis-context/-/nodered-redis-context-0.9.5.tgz","fileCount":6,"unpackedSize":15153,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD5uKMDqWSY66SNxHMN2mQsVVcD99gWaZyRMx2ZtWpg/wIgDtQxFMjZ1QlSiiiLfph5yvbHCC48DC0lflCa+32PGTY="}]},"_npmUser":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com","actor":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nodered-redis-context_0.9.5_1752154680645_0.9252478920236813"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-08T13:52:26.673Z","modified":"2025-07-10T13:38:00.988Z","0.9.0":"2025-07-08T13:52:27.259Z","0.9.1":"2025-07-08T15:03:50.203Z","0.9.2":"2025-07-08T15:04:12.261Z","0.9.3":"2025-07-09T14:56:56.948Z","0.9.4":"2025-07-10T13:21:49.930Z","0.9.5":"2025-07-10T13:38:00.827Z"},"bugs":{"url":"https://github.com/D3C0RU5/nodered-redis-context/issues"},"author":{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"},"license":"ISC","homepage":"https://github.com/D3C0RU5/nodered-redis-context#readme","keywords":["nodered","context","plugin","redis","store"],"repository":{"type":"git","url":"git+https://github.com/D3C0RU5/nodered-redis-context.git"},"description":"A Node-RED context plugin using Redis as a backend store.","maintainers":[{"name":"d3c0ru5","email":"chpeterle.profissional@gmail.com"}],"readme":"# @d3c0ru5/nodered-redis-context\n\n> A Redis-based context storage plugin for [Node-RED](https://nodered.org/).\n\nThis module enables you to persist Node-RED context variables (flow/global) in a Redis database, providing durability and support for distributed or multi-instance deployments.\n\n---\n\n## 📦 Installation\n\nInstall the package in your Node-RED environment:\n\n```bash\nnpm install @d3c0ru5/nodered-redis-context\n```\n\n## ⚙️ Configuration\n\nAdd the following to your settings.js file in the Node-RED user directory:\n\n```\ncontextStorage: {\n  default: {\n    module: \"memory\"\n  },\n  redis: {\n    module: require(\"@d3c0ru5/nodered-redis-context\"),\n    config: {\n      host: \"127.0.0.1\",\n      port: 6379,\n      db: 0,\n      prefix: \"nodered:\",\n      password: \"your_optional_password\"\n    }\n  }\n}\n```\n\nUse the Redis context in your flows like this:\n\n```\nflow.set(\"x\", 10, \"redis\");\nawait global.get(\"y\", \"redis\");\n```\n\n## 🧪 Testing\n\nTo run automated tests with Redis via Docker:\n\n```\nnpm test\n```\n\nThis will:\n\n- Spin up a Redis container with custom configuration\n- Run tests using Mocha and Chai\n- Automatically shut down the container after the test run\n\n## 📁 Project Structure\n\n```\n.\n├── index.js                # Entry point\n├── lib/                    # Redis context store implementation\n├── __tests__/              # Test files and docker-compose.yaml\n├── package.json\n└── README.md\n```\n\n## 👤 Author\n\nCreated by @d3c0ru5\n\n## 🔗 References\n\n- [Node-RED Context Docs](https://nodered.org/docs/user-guide/context)\n- [Redis](https://redis.io/docs/latest/)\n","readmeFilename":"README.md"}