arcjet/arcjet-js
Runtime security for AI apps and agents: prompt injection detection, tool-call authorization, sensitive-data redaction, bot protection, and rate limiting. Drop it into your JS/TS code.
What it solves
Arcjet provides runtime security for AI applications and agents. It prevents common AI-specific threats like prompt injection and sensitive data leaks (PII), while also managing operational risks such as bot abuse, rate limiting for AI token budgets, and standard web attacks (WAF).
How it works
Arcjet operates as a set of security building blocks called within the application code before an action is executed. It offers two primary protection paths:
- Request Protection: SDKs for various JS frameworks (Next.js, Node, Bun, etc.) that protect HTTP route handlers and API endpoints.
- Guard Protection: A dedicated package (
@arcjet/guard) for non-HTTP entry points, such as AI agent tool calls, MCP server handlers, and background jobs.
Who it’s for
Developers building AI-powered applications, LLM-integrated services, and AI agents who need to enforce security and audit actions in real-time.
Highlights
- AI-Specific Security: Built-in detection for prompt injection and sensitive information (PII) like credit card numbers and emails.
- AI Cost Control: Token bucket rate limiting to manage AI token budgets per user.
- Bot & Abuse Prevention: Advanced bot detection by category or specific bot name, and a Shield WAF for OWASP Top 10 protection.
- Broad Framework Support: Native SDKs for Next.js, Node.js, Bun, Deno, Express, Fastify, NestJS, Nuxt, Remix, SvelteKit, and Astro.
- Network Intelligence: IP analysis for geolocation, VPN, proxy, and Tor detection.
Related
- Project
- Project
- Project
- Project
- Project