br-rate-limiting
CommunityIdentity-aware rate limiting for endpoints.
System Documentation
What problem does it solve?
Throttle Better Route endpoints using RateLimitMiddleware with two backends — WpObjectCacheRateLimiter (preferred when a persistent object cache is available) and TransientRateLimiter (fallback for environments without object cache). Identity-aware keys ensure authenticated users get their own buckets while anonymous users share a guest bucket; behind proxies, a ClientIpResolver helps prevent IP spoofing.
Core Features & Use Cases
- Backend choices: WpObjectCacheRateLimiter and TransientRateLimiter, with an explicit fallback strategy.
- Identity-aware keys: per-user, per-subject, or guest bucket behavior; allows explicit keyResolver to customize.
- Proxy-aware IP resolution: ClientIpResolver usage behind trusted proxies.
- Layered rate limits: separate global vs authenticated buckets, and per-route scope.
- Safe defaults and fallbacks: object-cache availability detection and runtime fallback.
Quick Start
Attach a RateLimitMiddleware configured with a limiter to your route group and ensure the JWT/auth middleware runs before it to enable user-aware rate limits.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: br-rate-limiting Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#br-rate-limiting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.