TypeScript SDK

The official SDK wraps the REST calls with typed results and errors.

Works in Node, Bun and Deno. zod is a peer dependency, only needed for Zod schemas. SDK on GitHub · npm

Install

terminal
npm install @manoonlabs/doxtract

Examples

parse-simple.ts
import { Doxtract } from "@manoonlabs/doxtract";

const doxtract = new Doxtract({ apiKey: "mldxt_..." });

const { values } = await doxtract.parse("invoice.pdf");

// The model picks the keys. Pass schema to choose them yourself (same JSON field name as REST).
console.log(values);