Skip to content
masterclass Buddy

Arcjet · Concept

CATEGORY:MONITOR

Protect a Fastify route with Arcjet. Configure security rules, call aj.protect for each request, and reject denied requests before application logic runs.

Last updated

Syntax

const decision = await aj.protect(request, { requested: 5 });

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

Subscribe
  • shield
  • detectBot
  • tokenBucket
  • decision.isDenied()
  • decision.reason.isRateLimit()
  • decision.reason.isBot()

Source: Get started with Fastify | Arcjet Docs. Checked 2026-11-03.