← Back to Browse
Security
RateSentry
Intelligent rate limiting with sliding windows, user tiers, and automatic abuse detection.
★★★★★ 4.8
289 reviews
10.3k
installs
v2.1.0
MIT
Install
npx skilldock install rate-sentry
About
RateSentry provides production-grade rate limiting that adapts to traffic patterns. It supports sliding window counters, user-based tiers (free/pro/enterprise), IP reputation scoring, automatic temporary bans for abusive clients, and Redis-backed distributed state.
Usage Example
const { rateSentry } = require("rate-sentry");
app.use(rateSentry({
tiers: {
free: { rpm: 60, burst: 10 },
pro: { rpm: 600, burst: 50 }
},
store: "redis",
banThreshold: 5 // auto-ban after 5 limit hits
}));