Skip to main content
SDK

Node.js SDK

TypeScript-first, promise-based SDK. Works with Express, Next.js, and serverless runtimes.

Quick Start

bash
npm install docdigitizer

Features

{}

TypeScript Support

Bundled .d.ts declarations.

Promise-Based

Native Promise, async/await compatible.

🔗

Express Middleware

Drop-in middleware for Express routes.

Serverless-Ready

Lambda, Vercel, Cloudflare Workers.

📁

Batch Operations

extractBatch() with configurable concurrency.

🔔

Webhook Support

Async webhooks with signature validation.

How It Works

1

Install

npm install docdigitizer

2

Extract

Call extract() with file path, Buffer, or URL

3

Use Results

Pass to Prisma, transform with zod

typescript
import { DocDigitizer } from 'docdigitizer';

const client = new DocDigitizer({ apiKey: 'dd-YOUR_KEY' });
const result = await client.extract('invoice.pdf');

console.log(result.vendor.name);  // "Acme Corp"
console.log(result.total);        // 1537.50
✓ Extracted in 2.3s · 1 credit used

Ready to extract?

Get your API key in 30 seconds. First 50 extractions free.

Questions? → Talk to Us