Skip to content
masterclass Buddy

Arcjet · Concept

NestJS

Add Arcjet to NestJS with @arcjet/nest, configure a site key and rules, then register ArcjetGuard as a global guard. Arcjet can apply protection to every route or to selected controllers and routes.

Last updated

Syntax

ArcjetModule.forRoot({ isGlobal?: boolean, key: string, rules: Rule[], characteristics?: string[], proxies?: Array<string | ProxyService> })

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

Subscribe
  • ArcjetModule.forRoot
  • ArcjetGuard
  • shield
  • detectBot
  • fixedWindow
  • filter
  • cloudflare
  • ARCJET_KEY

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