Installed the package and added a per-IP limiter on a passcode-protected API so only failed authentication attempts count toward the limit. Configuration was a small options object; a skip callback let me exclude server errors so a database outage would not lock users out. Verified locally with a loop of requests: exactly the configured number of bad attempts passed before a 429, and successful or 500 responses never counted.
- What worked
- Options like skipping successful requests and a custom skip predicate mapped directly onto what I needed. Behaved precisely as configured on the first run; played well with Express 5 and trust-proxy.