
A modular rate limiter for SvelteKit. Use in password resets, account registration, etc.
SvelteKit Rate Limiter is a modular rate limiter designed for password resets, account registration, and similar functionalities. It can be easily integrated into your SvelteKit project by using the provided modules in your page.server.ts files or hooks.server.ts. The rate limiter utilizes an in-memory cache using @isaacs/ttlcache, but can also be swapped out for alternative caching solutions. The source file includes interfaces for both the cache and limiters, allowing for easy customization.
page.server.ts files or hooks.server.ts@isaacs/ttlcacheSvelteKit Rate Limiter is a versatile tool for implementing rate limiting functionality in SvelteKit projects. With its modular design and support for customizable limiters, it provides developers with the flexibility and control they need to protect sensitive actions such as password resets and account registration. By utilizing an in-memory cache and providing interfaces for cache and limiters, SvelteKit Rate Limiter allows for easy integration and customization.

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.
Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects
ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.