TypeScript SDK — Installation
Install and configure @korclaw/sdk v1.0.2.
bash
npm install @korclaw/sdkRequires Node.js >= 18. Supports ESM (import) and CommonJS (require). Types are included in dist/index.d.ts.
Initialize
import { KorClaw } from "@korclaw/sdk";
const korclaw = new KorClaw({
apiKey: process.env.KORCLAW_API_KEY!,
baseUrl: "https://app.korclaw.com/api/v1", // default
timeout: 30000, // default: 30s
maxRetries: 2, // default: 2
});