https://github.com/deadcoder0904/nextjs-rate-limit
Rate Limit your Next.js API Routes using `rate-limiter-flexible`. The Easy Way!
https://github.com/deadcoder0904/nextjs-rate-limit
Last synced: 9 days ago
JSON representation
Rate Limit your Next.js API Routes using `rate-limiter-flexible`. The Easy Way!
- Host: GitHub
- URL: https://github.com/deadcoder0904/nextjs-rate-limit
- Owner: deadcoder0904
- Created: 2024-02-07T05:14:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T06:48:12.000Z (about 2 years ago)
- Last Synced: 2025-07-09T07:04:07.163Z (7 months ago)
- Language: TypeScript
- Size: 70.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nextjs-rate-limit
> Rate Limit your Next.js API Routes using `rate-limiter-flexible`. The Easy Way!
#### 1. Install dependencies
```bash
pnpm install
```
#### 2. Run dev server in one terminal
```bash
pnpm dev
```
#### 3. Run rate limit script on another terminal
```bash
pnpm automate:ratelimit
```
#### 4. Run download script
```bash
pnpm automate:download
```
#### 5. Read all Redis Keys & Values
```bash
pnpm redis:getall
```