Integrate Arcjet Guard Tanstack AI

Integrate Arcjet security into a TanStack AI chat() app using @arcjet/guard — put guardMiddleware first on chat({ middleware }) so onBeforeToolCall gates tools, and read a caller-owned id from chat({ context }). Use when asked to add Arcjet to TanStack AI, rate limit its tools, screen inbound messages, or block prompt injection / PII. This is TanStack AI, not the Vercel AI SDK.

arcjet Updated 701 repo stars

File contents

arcjet/arcjet-js commit 6367bfb334

Frequently asked questions

npx get-skill add arcjet/integrate-arcjet-guard-tanstack-ai