{"repo":"futurestudio/hapi-rate-limitor","free":true,"listed":false,"github":"https://github.com/futurestudio/hapi-rate-limitor","clone":"git clone https://github.com/futurestudio/hapi-rate-limitor.git","description":"A hapi plugin for rate limiting. Simple and easy.","language":"JavaScript","stars":44,"topics":["hapi","hapijs","hapi-plugin","nodejs","node","rate-limiting","rate-limit","redis","async-ratelimiter","rate-limits"],"license":"MIT","category":"databases-storage","readme_excerpt":"Solid and easy to use rate limiting for hapi. Installation · Usage · Plugin Options · Route Options · Response Headers Follow @marcuspoehls for updates! ------ The Future Studio University supports development of this hapi plugin 🚀 Join the Future Studio University and Skyrocket in Node.js ------ Introduction A hapi plugin to prevent brute-force attacks in your app. The rate limiter uses Redis to store rate-limit related data. hapi-rate-limitor is built on top of these solid and awesome projects: - async-ratelimiter - ioredis - request-ip Each package solves its own problem perfectly. hapi-rate-limitor composes the solutions of each problem to a solid rate limit plugin for hapi. Requirements hapi v19 (or later) and Node.js v12 (or newer) This plugin requires hapi v19 (or later) and Node.js v12 or newer . Compatibility Major Release hapi.js version Node.js version --- --- --- v3 =17 hapi =12 v2 =17 hapi =8 Installation Add hapi-rate-limitor as a dependency to your project: Using hapi v18 or lower? Use the 2.x release line: Usage The most straight forward to use hapi-rate-limitor is to register it to your hapi server. This will use the default configurations of async-ratelimiter and ioredis. Plugin Options Customize the plugin’s default configuration with the following options: - max : Integer, default: 60 - the maximum number of requests allowed in a duration - duration : Integer, default: 60000 (1 minute) - the lifetime window keeping records of a request in milliseconds - n","default_branch":null,"files":null,"tree":[],"storefront":"/r/futurestudio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/futurestudio/hapi-rate-limitor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}