npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-red-contrib-msg-repeater

v1.0.8

Published

A Node-RED node that can capture and repeat messages

Readme

node-red-contrib-msg-repeater

A Node-RED node that can capture and repeat messages.

Features

  • Capture any message flowing through the node
  • Replay the captured message on demand without clearing it from memory
  • Visual status indicator showing capture state
  • Button on the node to trigger message replay
  • Button in the configuration panel to trigger capture mode

Installation

Local Installation

cd ~/.node-red
npm install /path/to/node-red-contrib-msg-repeater

From NPM (Once Published)

cd ~/.node-red
npm install node-red-contrib-msg-repeater

Usage

The node has two modes of operation:

  1. Normal mode: All regular messages pass through unchanged.
  2. Capture mode: When a message with msg.capture = true is received, the node enters capture mode. The next message will be stored for later replay and also passed through unchanged.

Control messages:

  • Messages with msg.capture = true put the node in capture mode but do not pass through
  • Messages with msg.repeat = true trigger replay of the stored message but do not pass through

The captured message remains in memory until a new message is captured (by entering capture mode again).

UI Buttons

  • The main button on the node triggers a replay of the captured message
  • The "Capture" button in the configuration panel triggers capture mode

Status Indicators

  • No status: Normal mode, no message captured
  • Blue dot "Capturing": Node is in capture mode, waiting for next message
  • Green dot "Captured": A message has been captured and is available for replay

Example Flow

[
    {
        "id": "425c2ffc692b6f08",
        "type": "msg-repeater",
        "z": "f6f2187d.f17ca8",
        "name": "",
        "x": 530,
        "y": 580,
        "wires": [
            [
                "c4daf6e907b0b923"
            ]
        ]
    },
    {
        "id": "e402feb314f26bb1",
        "type": "inject",
        "z": "f6f2187d.f17ca8",
        "name": "Capture",
        "props": [
            {
                "p": "capture",
                "v": "true",
                "vt": "bool"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 350,
        "y": 540,
        "wires": [
            [
                "425c2ffc692b6f08"
            ]
        ]
    },
    {
        "id": "f73f2541e25985fb",
        "type": "inject",
        "z": "f6f2187d.f17ca8",
        "name": "Test Message",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            },
            {
                "p": "timestamp",
                "v": "",
                "vt": "date"
            },
            {
                "p": "jsonPayload",
                "v": "{\"key1\":\"value1\", \"list\": [\"first\", \"second\"]}",
                "vt": "json"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "Great day to be alive",
        "payload": "Hello World",
        "payloadType": "str",
        "x": 330,
        "y": 580,
        "wires": [
            [
                "425c2ffc692b6f08"
            ]
        ]
    },
    {
        "id": "f6423e902816d493",
        "type": "inject",
        "z": "f6f2187d.f17ca8",
        "name": "Repeat",
        "props": [
            {
                "p": "repeat",
                "v": "true",
                "vt": "bool"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 350,
        "y": 620,
        "wires": [
            [
                "425c2ffc692b6f08"
            ]
        ]
    },
    {
        "id": "c4daf6e907b0b923",
        "type": "debug",
        "z": "f6f2187d.f17ca8",
        "name": "Output",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 690,
        "y": 580,
        "wires": []
    },
    {
        "id": "666071d5abaca966",
        "type": "comment",
        "z": "f6f2187d.f17ca8",
        "name": "Start Capture",
        "info": "",
        "x": 530,
        "y": 540,
        "wires": []
    }
]

License

MIT