arcjet/arcjet-js ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript security toolkit for JavaScript apps that I can drop into my API routes and AI agent code.

I want one main library and a set of framework specific packages for things like Next.js, Node, Fastify, Bun, Deno, Nest, Nuxt, Remix, React Router, SvelteKit, and Astro. It should protect incoming requests and also work for background jobs, MCP handlers, and agent tool calls when there is no HTTP request.

The core features should include rate limiting, prompt injection detection, sensitive data redaction and detection, bot and abuse blocking, and a way to authorize tool calls before they run. Make it feel easy to use with simple protect and guard style calls, good TypeScript types, and examples for common apps. If you need to, look up the current docs online so the APIs and setup are realistic.

Also include a clean README with quick start examples and a few sample integrations.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab