nr-contrib-async-loader
v1.0.0
Published
Node-RED node that simulates async processing with progress status.
Downloads
96
Maintainers
Readme
⏳ nr-contrib-async-loader
Async Loader is a custom Node-RED node that simulates asynchronous processing. It dynamically displays a progress bar in the node's status area and forwards the message only after the simulated task is completed.
✨ Features
- Async Process Simulation: Perfectly mimics long-running tasks (like database queries or API calls).
- Dynamic Progress Status: Real-time visual feedback (
[████▒▒▒▒] 40%) right inside the Node-RED editor. - Seamless Integration: Fully compatible with Node-RED v3+.
- Lightweight & Fast: Uses native JavaScript
setIntervalwithout heavy external dependencies.
📦 Installation
Run the following command in your Node-RED user directory (typically ~/.node-red):
npm install nr-contrib-async-loader(Note for development: You can also use npm link to install this node locally).
🚀 Usage Example
- Add the
async-loadernode to your flow. - Configure the duration in milliseconds (e.g.,
3000for 3 seconds) by double-clicking the node. - Connect an
injectnode to its input, and adebugnode to its output. - Deploy your flow.
- Send a message using the inject node to test and watch the animated status!

