Whizo
// NODE.JS SDK \\

WhizoAI Node.js SDK

The official Node.js client for WhizoAI. TypeScript-first, Promise-based, and designed for modern JavaScript applications.

npm install @whizoai/sdk

TypeScript

Full TypeScript support with generated types for all APIs.

Promise-based

Modern async/await API with Promise support throughout.

Auto Retries

Built-in retry logic with configurable backoff strategies.

Tree Shakable

ES modules support for optimal bundle sizes.

Quick Start

Installation

npm install @whizoai/sdk

or with yarn: yarn add @whizoai/sdk

Basic Usage (JavaScript)

index.js
const { WhizoAI } = require('@whizoai/sdk');

// Initialize client
const client = new WhizoAI({
  apiKey: 'your_api_key'
});

// Scrape a page
const result = await client.scrape('https://example.com');
console.log(result.markdown);

// Extract structured data
const data = await client.extract({
  url: 'https://shop.example.com',
  schema: { title: 'string', price: 'number' }
});
console.log(data);

TypeScript Usage

index.ts
import { WhizoAI, ScrapeResult } from '@whizoai/sdk';

const client = new WhizoAI({
  apiKey: process.env.WHIZOAI_API_KEY!
});

async function main(): Promise<void> {
  const result: ScrapeResult = await client.scrape('https://example.com');
  console.log(result.markdown);
}

main();

Ready to Start Building?

Install the SDK and make your first API call