Light NodeJS rate limiting and response delaying using Redis - including Express middleware.
NodeJS rate limiting and response delaying using Redis - includes Express middleware.
Limitrr assists with the rate-limiting and "delaying of responses" for various routes within your NodeJS application. Unlike other similar packages, this utility allows the user to limit not only by the number of requests but also the number of completed actions (e.g allowing a certain amount of accounts to be successfully created within a timespan) and have such restricted with custom options. As well as this, custom discriminators are possible - you no longer have to limit by just the user's IP. Limitrr can also delay responses after a certain amount of requests have been made - you don't have to just rate-limit potentially malicious requests, you can delay them instead or as well as. Included also within this package are various middleware functions for Express. However, the core functions work perfectly fine if you're not using such a package and chose to do something else, instead.
I've effectively released a similiar limitrr library, but in PHP. Check it out here
If you appreciate this project, please 🌟 it on GitHub.
Pull Requests are welcomed
Access the documentation here: https://limitrr.js.org