Skip to main content
The Kodexa Document TypeScript SDK (@kodexa-ai/document-wasm-ts) brings high-performance document processing to JavaScript environments. Powered by WebAssembly, it works in both Node.js and modern browsers while delivering near-native performance.

Requirements

  • Node.js 16 or higher
  • npm or yarn package manager

Installation

Install from npm:
Or with yarn:

Setup

Node.js setup is straightforward:

Verify Installation

Test your setup:

Core Concepts

Initialization

Unlike the Python SDK, the TypeScript SDK requires explicit initialization:

Async API

All document operations are asynchronous:

Memory Management

WebAssembly memory must be explicitly freed. Always call dispose() when done with documents to prevent memory leaks.
For application shutdown:

Configuration

WASM Location

In browser environments, configure the WASM file location:

Logging

Control the logging level:

What’s Next?

Getting Started

Learn the basics of creating and manipulating documents

API Reference

Explore the complete API documentation

Package Information