Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

rate-limiter-flexible

Skill by animir

rate-limiter-flexible is a skill for the rate-limiter-flexible npm package in Node.js. It helps developers add rate limiting and brute-force protection to APIs, login endpoints and websockets.

  • Score 86
  • 3.6k stars
  • ISC
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install rate-limiter-flexible

Built from the published package, never by AI.

git clone --depth 1 https://github.com/animir/node-rate-limiter-flexible /tmp/node-rate-limiter-flexible && mkdir -p ~/.claude/skills && cp -r /tmp/node-rate-limiter-flexible/skills/rate-limiter-flexible ~/.claude/skills/rate-limiter-flexible

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install rate-limiter-flexible in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

rate-limiter-flexible is a skill that guides an AI assistant through the rate-limiter-flexible npm package for Node.js. The source describes it as atomic and non-atomic counters and rate limiting tools for Node.js, Deno, and browsers, with a Memory limiter for browsers. It states zero production dependencies, an enhanced fixed window algorithm, and an ISC license.

The skill covers configuring limiters, choosing among store backends such as Redis, Mongo, MySQL, PostgreSQL and DynamoDB, and writing Express, Koa or Hapi middleware. It also covers login brute-force protection, DoS mitigation, composite limiters like BurstyRateLimiter, and the RateLimiterRes object used for HTTP headers. It is aimed at developers who need to protect APIs, websockets and login endpoints from flooding.

Written from the project's SKILL.md and checked against it.

What it can do

  • Limiter configurationSet up RateLimiterMemory and other limiters with points and duration options.
  • Core API methodsUse consume, get, set, block, delete, penalty, reward and deleteInMemoryBlockedAll.
  • Store backendsChoose a store such as Redis, MongoDB, PostgreSQL, DynamoDB or Memcached.
  • Framework middlewareWrite Express, Koa and Hapi middleware for request limiting.
  • Composite limitersCombine limits with BurstyRateLimiter, RateLimiterUnion and RateLimiterQueue.
  • HTTP response headersBuild Retry-After and X-RateLimit headers from the RateLimiterRes object.
  • State snapshotsSave and restore RateLimiterMemory state with dump and restore.
  • WrappersApply black and white lists, timeouts and AWS SDK v3 wrappers.

What you need

  • Node.js
  • npm

Try asking

  • Add a login rate limiter to my Express app using rate-limiter-flexible
  • Set up a Redis-backed RateLimiter with 10 points per second
  • Write Koa middleware that returns 429 with Retry-After headers

Good to know

  • Memory limiter persistence through dump and restore is best-effort.
  • The points and duration options are required for every limiter.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/rate-limiter-flexible/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • references/full-reference.md22 KB

Alternatives to rate-limiter-flexible

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

rate-limiter-flexible: common questions

Does rate-limiter-flexible work outside Node.js?

The source says it works in Node.js, Deno and browsers, with the Memory limiter available in browsers.

Which stores can rate-limiter-flexible use?

The source lists Redis, Mongo, MySQL, PostgreSQL, Memory, Memcached, DynamoDB, Drizzle, Prisma, SQLite, Cluster, PM2, Etcd and Valkey.

What license does rate-limiter-flexible use?

The source states that rate-limiter-flexible is released under the ISC license.

How do I install rate-limiter-flexible?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is rate-limiter-flexible free?

The code is published under the ISC licence. The service it connects to may have its own pricing.

Is rate-limiter-flexible safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to rate-limiter-flexible?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

rate-limiter-flexible Install

Add to stack

Loading.