{"repo":"express-rate-limit/express-rate-limit","free":true,"listed":false,"github":"https://github.com/express-rate-limit/express-rate-limit","clone":"git clone https://github.com/express-rate-limit/express-rate-limit.git","description":"Basic rate-limiting middleware for the Express web server","language":"TypeScript","stars":3285,"topics":["api","rate-limiting","rest-api","security","web","express","nodejs","rate-limiter","express-js","express-middleware"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"express-rate-limit Basic rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset. Plays nice with express-slow-down and ratelimit-header-parser. Usage The full documentation is available on-line. Data Stores The rate limiter comes with a built-in memory store, and supports a variety of external data stores. Configuration All function options may be async. Click the name for additional info and default values. Option Type Remarks -------------------------- ----------------------------------------- ----------------------------------------------------------------------------------------------- [ windowMs ] number How long to remember requests for, in milliseconds. [ limit ] number \\ function How many requests to allow. [ message ] string \\ json \\ function Response to return after limit is reached. [ statusCode ] number HTTP status code after limit is reached (default is 429). [ handler ] function Function to run after limit is reached (overrides message and statusCode settings, if set). [ legacyHeaders ] boolean Enable the X-Rate-Limit header. [ standardHeaders ] 'draft-6' \\ 'draft-7' \\ 'draft-8' Enable the Ratelimit header. [ identifier ] string \\ function Name associated with the quota policy enforced by this rate limiter. [ store ] Store Use a custom store to share hit counts across multiple nodes. [ passOnStoreError ] boolean Allow ( true ) or block ( false , default) traffic if the store becomes unavailable","default_branch":null,"files":null,"tree":[],"storefront":"/r/express-rate-limit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/express-rate-limit/express-rate-limit/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."}