Skip to main content

3 docs tagged with "rate-limiting"

View all tags

RateLimitService

A unified, composable rate limiting system that handles all rate limiting needs across the application. This service provides both per-minute sliding window limits and daily quota limits with database persistence.

Request Identifier Utilities

A comprehensive set of utilities for generating secure, flexible request identifiers used in rate limiting and security systems. These utilities enable sophisticated multi-layered protection while respecting user privacy and household sharing scenarios.

withRateLimit Middleware

A higher-order function that wraps API route handlers with intelligent multi-layered rate limiting protection. This middleware provides the primary interface for applying rate limiting to API endpoints and integrates seamlessly with the RateLimitService.