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.
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-flexibleRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/animir/node-rate-limiter-flexible /tmp/node-rate-limiter-flexible && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/node-rate-limiter-flexible/skills/rate-limiter-flexible ~/.gemini/antigravity-cli/skills/rate-limiter-flexibleAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install rate-limiter-flexible in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
