Skip to content
masterclass Buddy

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.

Subscribe
  • shield
  • detectBot
  • tokenBucket
  • isSpoofedBot
  • ARCJET_KEY
  • ARCJET_ENV
  • decision.isDenied()
  • decision.reason.isRateLimit()

Source: Get started with Node.js + Express. Checked 2026-11-03.