Skip to main content
@wazoo/client is the primary TypeScript SDK for the Wazoo Platform API. It provides a typed interface for managing your Wazoo infrastructure: provisioning Worlds, managing API tokens (wzp_ and wzw_), and tracking resource usage and billing.

Install

Quickstart

Platform tokens require the wzp_ prefix.

Worlds

Creating a platform world provisions a per-World Turso database. Use worlds-api.wazoo.dev or @worlds/client for graph data operations inside that world.

Platform API tokens

World auth tokens

World data-plane tokens use the wzw_ prefix. They are scoped to a single namespace and optionally a single world.

Usage and limits

Billing

Custom client configuration

By default, SDK functions automatically use the built-in client. You can configure global defaults or create isolated custom client instances:

Error handling

The SDK returns a discriminated union by default:
Set throwOnError: true on the client for exception-based handling.

Runtime

The SDK is a fetch-based ESM package published on JSR. It runs in any modern JavaScript runtime that provides fetch: Node.js, Cloudflare Workers, Deno, Bun, and browsers.