Skip to content
masterclass Buddy

Arcjet · Function

slidingWindow

slidingWindow limits each client to a maximum number of requests during a moving time interval. Configure the interval length, request limit, enforcement mode, and optional client characteristics.

Last updated

Syntax

slidingWindow({ mode?: "LIVE" | "DRY_RUN", characteristics?: string[], interval: number, max: number })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • fixedWindow
  • tokenBucket
  • characteristics
  • mode
  • interval
  • max

Source: Rate limiting reference for Node.js | Arcjet Docs. Checked 2026-11-03.