protect-route
Installation
SKILL.md
Add Arcjet Protection to a Route
Add runtime security to a route handler using Arcjet. This skill guides you through detecting the framework, setting up the client, choosing rules, and handling decisions.
Reference
Read https://docs.arcjet.com/llms.txt for comprehensive SDK documentation covering all frameworks, rule types, and configuration options.
Step 1: Detect the Framework
Check the project for framework indicators:
package.jsondependencies:next,express,fastify,@nestjs/core,@sveltejs/kit,hono,@remix-run/node,react-router,astro,nuxtbun.lockborbun.lock→ Bun runtimedeno.json→ Deno runtimepyproject.tomlorrequirements.txtwithfastapiorflask→ Python
Select the correct Arcjet adapter package: