Skip to main content
Server-side only — This SDK is designed for server-side environments (Node.js, serverless functions). Never use it in browser/frontend code as this exposes your API key. See Frontend Integration for the proxy pattern.
The official Zavu SDK for TypeScript provides a type-safe way to interact with the Zavu API.

Installation

Requirements

  • Node.js 18 or higher
  • TypeScript 4.7+ (optional, for type definitions)

Quick Start

Configuration

Initialize the Client

Environment Variables

We recommend storing your API key in environment variables:

Accessing Response Headers

Use .withResponse() to access the full HTTP response including headers (useful for rate limiting):

Error Handling

Error Types

Retries

The SDK supports automatic retries with configurable backoff:

TypeScript Support

The SDK includes full TypeScript definitions:

CommonJS Support