Skip to main content
The official TypeScript SDK for Poof works in Node.js, Deno, and Bun with full type safety.

Installation

Requirements: Node.js 18+ (or Deno/Bun)

Quick Start

Authentication

The SDK looks for your API key in this order:
  1. Passed directly: new Poof({ apiKey: '...' })
  2. Environment variable: POOF_API_KEY

Usage Examples

From Buffer

From File Path (Node.js)

From URL

With Options

Response Metadata

Access processing metadata from the response:

Parallel Processing

Account Info

Check your credit balance:

Error Handling

Retry with Backoff

Configuration

TypeScript Types

Full type definitions are included:

Framework Examples

Express.js

Next.js API Route