arcjet-js
View on GitHubRuntime 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.
Arcjet's JS/TS SDK adds runtime security to AI apps and agents: prompt-injection detection, tool-call authorization, PII redaction, bot protection, and rate limiting. Framework adapters (Next.js, Node, Bun, Deno, etc.) plus @arcjet/guard for MCP servers and background jobs.
Use Cases
Block prompt injection before it reaches an LLMAuthorize AI agent and MCP tool callsRedact PII and secrets from promptsRate limit AI token budgets per userBlock bots and AI crawlers inflating costsAdd WAF protection to API routesValidate emails on signup formsAnalyze IPs for VPN, proxy, and Tor trafficAudit AI agent actions in real time
Built With
- Language
- TypeScript
- Frameworks
- Next.js · Node.js · Bun · Deno · Express · Fastify · Hono · NestJS · Nuxt · Remix · React Router · SvelteKit · Astro · Vercel AI SDK · MCP
Tags
security · prompt-injection-detection · pii-redaction · rate-limiting · bot-protection · agent-security · llm-security · tool-authorization · mcp · waf · sdk · typescript · runtime-security · sensitive-data