关于
This skill provides a standardized framework for implementing rate limiting and usage tracking within Next.js applications using Drizzle ORM. It enables developers to protect API endpoints by identifying users through anonymous SHA-256 hashing of IP addresses and User-Agents, enforcing customizable quotas (such as daily limits), and handling 429 'Too Many Requests' responses with automatic reset logic. It is ideal for managing resource-intensive tasks like AI image generation or preventing general API scraping.