Server-side brute-force protection: track failed attempts per user/IP, lock after N strikes with exponential backoff, auto-expire the window, reset on success. Pluggable store (Redis-ready).
Install
$ npm install @lacspace/lock
Quick example
@lacspace/lockts
(await guard.check(ip)).locked
Returns false
Tips
Zero-dependency and isomorphic — safe to import on the server, in the browser, on the edge and in React Native. It tree-shakes, so you only ship what you import.
Looking for the complete API and more examples? The npm page and GitHub README carry the full reference — or grab the PDF.