Floodgate

Floodgate

Flexible, type-safe rate limiting for Next.js APIs.

Visit Floodgate

About Floodgate

Floodgate is a rate limiting library specifically built for Next.js applications, offering a zero dependency solution for protecting APIs with declarative, type-safe, and flexible rate limiting rules. It supports multiple algorithms (fixed window, sliding window, token bucket), pluggable storage backends (memory, Redis, Vercel KV), and features out-of-the-box integration for both server and client (React) components, making it suitable for developers who need robust and customizable rate limiting in modern serverless or edge environments.

Resources

Product Website

Visit Floodgate's official website for product details and getting started.

Visit website →

Documentation

Comprehensive API reference and usage examples for Floodgate.

View docs →

Example Usage

Sample projects and real-world examples demonstrating how to implement Floodgate in Next.js applications.

See examples →