Arcjet · Concept
Node.js
Use the Arcjet Node.js SDK to protect an Express route with Shield, bot detection, and token-bucket rate limiting. Call protect for each request and handle the returned decision.
Last updated
Syntax
const decision = await aj.protect(req, { requested: 5 });In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
shielddetectBottokenBucketisSpoofedBotARCJET_KEYARCJET_ENVdecision.isDenied()decision.reason.isRateLimit()