I want to add rate limit to nextjs app router APIs

am making website and i want to add rate limit for my api endpoints but can't seem to find good way or package that works with latest nextjs app router
1 Reply
dysbulic 🐙
dysbulic 🐙9mo ago
I'm using https://github.com/SGrondin/bottleneck which hasn't seen an update in a while, but I've had no problems with it doing what it's supposed to.
GitHub
GitHub - SGrondin/bottleneck: Job scheduler and rate limiter, suppo...
Job scheduler and rate limiter, supports Clustering - GitHub - SGrondin/bottleneck: Job scheduler and rate limiter, supports Clustering