Skip to main content

Requirements

Node.js 18 or later
TypeScript 5.0+ (recommended)
pnpm, npm, or yarn

Quick Install

Install the core packages for document extraction:
This installs everything you need to get started:
  • @doclo/flows - Flow builder and all processing nodes
  • @doclo/providers-llm - LLM/VLM provider integrations

Package Overview

The SDK is modular. Install only what you need:

Core Packages

Optional Packages

Install by Use Case

For simple document extraction using VLM:

TypeScript Setup

The SDK is written in TypeScript and includes type definitions. No additional @types packages needed.

tsconfig.json

Recommended settings:

Running TypeScript

Use tsx for running TypeScript files directly:
Or compile first:

Environment Variables

Create a .env.local file for API keys:

Loading Environment Variables

Install dotenv:
Import at the top of your script:

Verify Installation

Create a test file to verify everything works:
Run it:

Troubleshooting

Make sure you’re in your project directory and packages are installed:
Ensure your tsconfig.json has:
The SDK uses ESM. If you see “require is not defined”, ensure your package.json has:

Next Steps

Configuration

Set up providers and API keys

Quickstart

Build your first extraction flow