Tawa docs
Getting Started

Installation

Install the Tawa TypeScript SDK and construct the client.

npm install @tawaguard/sdk
pnpm add @tawaguard/sdk
yarn add @tawaguard/sdk

Construct the client

lib/tawa.ts
import { TawaGuard } from "@tawaguard/sdk";

export const tawa = await TawaGuard.create(process.env.TAWA_API_KEY!);

TawaGuard.create authenticates before returning — a bad key surfaces at construction time rather than on the first scan call. See Configuration for the full option set.

Keep your secret key server-side. Don't ship it to the browser or commit it.

On this page