sveltekit-rate-limiter
sveltekit-rate-limiter copied to clipboard
A modular rate limiter for SvelteKit. Use in password resets, account registration, etc.
For debugging/logging/testing, it would be valuable to know the reason for being rate limited. For example: ```ts const status = await limiter.check(event); if (status.limited) { console.warn( 'Rate limit activated:', event.getClientAddress(),...
I'm not 100% sure if it's necessarily the fault of this lib itself but I haven't been too successful in terms of boiling it down as to what exactly is...
Examples should exist for ratelimiting on `+server.ts` and `hooks.server.ts`
What do you think about the potential of having some premade plugins included in the library? For example, if people are serving their website via CF or another reverse proxy,...
I have been trying to use Redis as a store, but I keep stumbling across a problem: the `RetryAfterRateLimiter` would limit the requests correctly, but the `retryAfter` would always be...
I would like to create an object with my default rate limiter options and then extend it for different limiters. To get autocompletion I want to import the RateLimiterOptions Type,...