sentry-gate kpm/sentry-gate
Rate limiting and token-auth middleware for Node APIs, tuned for game backends.
$kpm install sentry-gate
Overview
sentry-gate is Express/Koa-compatible middleware combining sliding-window rate limiting with token auth, with sensible defaults for the bursty traffic patterns of game backends.
Usage
app.use(sentryGate({ windowMs: 10000, max: 30 }));napp.use(sentryGate.auth({ header: "x-api-key" }));
License
See the package license field in the sidebar. Published under the Kings Package Manager registry terms.