TypeScript
Scan prompts, RAG content, and agent tool traffic from TypeScript/JavaScript.
@tawaguard/sdk is the official TypeScript/JavaScript client for Tawa Guard —
a fully-typed client, a live event stream, and Vercel AI SDK middleware.
import { TawaGuard } from "@tawaguard/sdk";
const tawa = await TawaGuard.create(process.env.TAWA_API_KEY!);
const result = await tawa.analyze(userInput);
if (result.action !== "allow") {
// don't forward this prompt to your model
}