{"id":41614,"library":"node-red-contrib-msg-speed","title":"Node-RED Message Speed Measurement Node","description":"A Node-RED node (v2.1.0) that measures the rate at which messages arrive using a moving window. It counts messages over a configurable interval (seconds, minutes, or hours) and outputs speed stats every second. Supports topic-dependent statistics and message chaining for performance. Ideal for monitoring flow throughput. Maintained by bartbutenaers with regular updates.","status":"active","version":"2.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/bartbutenaers/node-red-contrib-msg-speed","tags":["javascript","node-red","message","msg","speed","rate","count","counter","moving"],"install":[{"cmd":"npm install node-red-contrib-msg-speed","lang":"bash","label":"npm"},{"cmd":"yarn add node-red-contrib-msg-speed","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-red-contrib-msg-speed","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime dependency for Node-RED nodes","package":"node-red","optional":true}],"imports":[{"note":"Must be installed inside the Node-RED user directory (~/.node-red) for proper discovery.","wrong":"Global install: npm install -g node-red-contrib-msg-speed","symbol":"node-red-contrib-msg-speed","correct":"Install via npm: npm install node-red-contrib-msg-speed (in ~/.node-red)"}],"quickstart":{"code":"// This node is used via the Node-RED editor, not programmatically.\n// After installation, add a 'msg-speed' node from the palette.\n// Configure the interval (e.g., 5) and frequency (e.g., 'sec') in the node's settings.\n// Connect input messages; the node outputs speed stats to the first output and passes the original message to the second output.\n// Example flow JSON can be found in the package's examples.\n// See https://github.com/bartbutenaers/node-red-contrib-msg-speed for details.","lang":"javascript","description":"Shows how to install and configure the msg-speed node in Node-RED to measure message rate with a moving window."},"warnings":[{"fix":"Update to latest version: npm install node-red-contrib-msg-speed@latest in ~/.node-red","message":"In versions < 0.0.5, message chaining was done via parallel wires, causing cloning overhead. Upgrade to 0.0.5+ for performance via second output.","severity":"breaking","affected_versions":"<0.0.5"},{"fix":"Design flows assuming one output per second, not per message.","message":"The node outputs speed every second based on a moving window; intermediate messages are not output until the next tick.","severity":"gotcha","affected_versions":">=0.0.5"},{"fix":"Enable 'topic dependent statistics' in node properties to get per-topic speed.","message":"Topic-dependent statistics require enabling the option in node config; otherwise msg.topic is not set.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Check for 'all_topics' string; adapt if upstream changes.","message":"The msg.topic field for aggregated statistics uses value 'all_topics'; this may change in future.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'arriv':21 'bartbutena':60 'chain':50 'configur':31 'count':27,72 'counter':73 'depend':46 'everi':41 'flow':56 'hour':36 'ideal':53 'interv':32 'javascript':64 'maintain':58 'measur':6,15 'messag':4,20,28,49,68 'minut':34 'monitor':55 'move':24,74 'msg':69 'node':2,7,10,12,66 'node-r':1,9,65 'output':38 'perform':52 'rate':17,71 'red':3,11,67 'regular':62 'second':33,42 'speed':5,39,70 'stat':40 'statist':47 'support':43 'throughput':57 'topic':45 'topic-depend':44 'updat':63 'use':22 'v2.1.0':13 'window':25","created_at":"2026-06-04T18:53:16.150165+00:00","updated_at":"2026-06-04T18:53:16.150165+00:00","problems":[{"fix":"Run: cd ~/.node-red && npm install node-red-contrib-msg-speed","cause":"Module installed globally instead of in Node-RED user directory.","error":"Error: Cannot find module 'node-red-contrib-msg-speed'"},{"fix":"Ensure you are reading from the first output of the msg-speed node.","cause":"Accessing msg.frequency in a node that is not the msg-speed output.","error":"TypeError: Cannot read property 'frequency' of undefined"},{"fix":"Restart Node-RED; verify install in ~/.node-red/node_modules","cause":"Node-RED not restarted after install, or installed wrong directory.","error":"Node not found in palette"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bartbutenaers/node-red-contrib-msg-speed","github":"https://github.com/bartbutenaers/node-red-contrib-msg-speed","docs":null,"changelog":null,"pypi":null,"npm":"node-red-contrib-msg-speed","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}