Skip to main content

TypeScript SDK

kloakd-sdk for Node.js and browser

1 min read


Install

npm install kloakd-sdk

Node.js 18+ | 76/76 tests | 92.76% statement coverage | native fetch

Client

import { Kloakd } from 'kloakd-sdk';

const client = new Kloakd({
  apiKey: process.env.KLOAKD_API_KEY!,
  organizationId: process.env.KLOAKD_ORG_ID!,
  timeout: 30_000,
  maxRetries: 3,
});

SSE streaming

for await (const event of client.evadr.fetchStream('https://example.com')) {
  console.log(event.type, event.tier);
}
Was this page helpful?