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

@eikaramba/node-red-ratelimiter

v1.0.1

Published

A modified version of the [official Node-RED delay node](https://flowfuse.com/node-red/core-nodes/delay/) that implements true rate limiting with immediate message processing.

Readme

@eikaramba/node-red-ratelimiter

A modified version of the official Node-RED delay node that implements true rate limiting with immediate message processing. Delay option is completely removed, use the original node for that.

Key Features

1. True Rate Limiting

Unlike the original delay node which queues messages and releases them at fixed intervals, this node:

  • Processes messages immediately when they arrive (if within rate limit)
  • Drops messages that exceed the rate limit instead of queuing them
  • Resets the rate limit counter based on actual message arrival times

2. Flexible Rate Configuration

Supports various rate limiting scenarios:

  • X messages per second/minute/hour/day
  • Custom periods (e.g., 6 messages per 28 hours)
  • Configurable through node settings or dynamic msg properties

3. Burst Mode (Optional)

New feature that allows accumulation of unused rate limit slots over time (see detailed examples below)

Use Cases

Standard Rate Limiting

Perfect for:

  • Monitoring systems that need to limit alert frequency
  • API integrations with rate limits
  • Event throttling where immediate processing is important

Example (1 message per day):

Hour 0: Message A → Sent
Hour 2: Message B → Dropped (within 24h limit)
Hour 25: Message C → Sent (new period)
Hour 79: Message D → Sent (new period)

New: Allow Burst Option

Example 1: 3 messages per hour

Allow Burst: Disabled

Time 0:00 - Message A → Sent (1/3)
Time 0:10 - Message B → Sent (2/3)
Time 0:20 - Message C → Sent (3/3)
Time 0:30 - Message D → Dropped (limit reached)
Time 1:05 - Message E → Sent (1/3) (new hour started)
Time 1:06 - Message F → Sent (2/3)
Time 1:07 - Message G → Sent (3/3)
Time 1:08 - Message H → Dropped (limit reached)

Allow Burst: Enabled

Time 0:00 - Message A → Sent (1/3)
Time 0:10 - Message B → Sent (2/3)
Time 0:20 - Message C → Sent (3/3)
Time 0:30 - Message D → Dropped (limit reached)
// No messages for 2 hours
Time 3:00 - Message E → Sent (1/9) (3 hours worth of tokens accumulated)
Time 3:01 - Message F → Sent (2/9)
Time 3:02 - Message G → Sent (3/9)
Time 3:03 - Message H → Sent (4/9)
Time 3:04 - Message I → Sent (5/9)
Time 3:05 - Message J → Sent (6/9)
Time 3:06 - Message K → Sent (7/9)
Time 3:07 - Message L → Sent (8/9)
Time 3:08 - Message M → Sent (9/9)
Time 3:09 - Message N → Dropped (limit reached)

Example 2: 1 message per day

Allow Burst: Disabled

Day 1 10:00 - Message A → Sent
Day 1 14:00 - Message B → Dropped
Day 2 08:00 - Message C → Sent
Day 2 20:00 - Message D → Dropped
Day 3 15:00 - Message E → Sent

Allow Burst: Enabled

Day 1 10:00 - Message A → Sent
Day 1 14:00 - Message B → Dropped
// No messages for 3 days
Day 5 08:00 - Message C → Sent (1/4) (4 days worth of tokens accumulated)
Day 5 08:01 - Message D → Sent (2/4)
Day 5 08:02 - Message E → Sent (3/4)
Day 5 08:03 - Message F → Sent (4/4)
Day 5 08:04 - Message G → Dropped

Example 3: 6 messages per 28 hours

Allow Burst: Disabled

Hour 0:00 - Message A → Sent (1/6)
Hour 0:30 - Message B → Sent (2/6)
Hour 1:00 - Message C → Sent (3/6)
Hour 2:00 - Message D → Sent (4/6)
Hour 3:00 - Message E → Sent (5/6)
Hour 4:00 - Message F → Sent (6/6)
Hour 5:00 - Message G → Dropped
Hour 28:00 - Message H → Sent (1/6) (new period started)
Hour 28:30 - Message I → Sent (2/6)

Allow Burst: Enabled

Hour 0:00 - Message A → Sent (1/6)
Hour 0:30 - Message B → Sent (2/6)
Hour 1:00 - Message C → Sent (3/6)
// No messages for 56 hours (2 periods)
Hour 57:00 - Message D → Sent (1/18) (3 periods worth of tokens)
Hour 57:01 - Message E → Sent (2/18)
Hour 57:02 - Message F → Sent (3/18)
// Can send up to 15 more messages immediately

Key Differences:

  1. Without Allow Burst:

    • Tokens reset at the start of each period
    • Maximum tokens = rate limit
    • Unused tokens are lost
    • More predictable, steady flow
  2. With Allow Burst:

    • Unused tokens accumulate over time
    • Maximum tokens = rate limit × elapsed periods
    • Allows "catching up" after quiet periods
    • More flexible, but can cause traffic spikes

Use Cases:

  1. Allow Burst Enabled:

    • Batch processing systems that need to catch up after downtime
    • Systems where occasional bursts of messages are acceptable
    • Backup or replication systems that need to sync after disconnections
  2. Allow Burst Disabled:

    • Systems requiring strict, consistent rate limiting
    • Real-time processing where even distribution is important
    • APIs with strict rate quotas
    • Systems sensitive to traffic spikes