From superpowers-laravel
Implements per-user and per-route rate limits in Laravel using RateLimiter and throttle middleware; handles backoffs, headers, and 429 responses for API protection.
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelThis skill uses the workspace's default tool permissions.
Protect endpoints from abuse while keeping UX predictable.
Implements API rate limiting with sliding windows, token buckets, quotas using Redis and libraries for Node.js, Python/FastAPI, Java. Protects endpoints from excessive requests with headers and 429 responses.
Guides rate limiting implementation using token bucket, sliding window counters, Redis Lua scripts, tiered quotas, middleware, headers, and monitoring to protect APIs from abuse and manage quotas.
Provides rate limiting patterns including token bucket, sliding window, distributed limiting, and per-user quotas to protect APIs. Grounds responses in reference files for creation, diagnosis, and review.
Share bugs, ideas, or general feedback.
Protect endpoints from abuse while keeping UX predictable.
// App\Providers\RouteServiceProvider
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
});
// routes/api.php
Route::middleware(['throttle:api'])->group(function () {
// ...
});