Install and configure the Kodexa Document TypeScript SDK (@kodexa-ai/document-wasm-ts) to process KDDB documents in Node.js and modern browsers via WebAssembly.
Use this file to discover all available pages before exploring further.
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.
import { Kodexa } from '@kodexa-ai/document-wasm-ts';async function main() { // Initialize the WASM runtime await Kodexa.init(); // Create and work with documents const doc = await Kodexa.createDocument(); console.log('Document ready'); // Clean up when done doc.dispose();}main();
Unlike the Python SDK, the TypeScript SDK requires explicit initialization:
import { Kodexa } from '@kodexa-ai/document-wasm-ts';// Must call init() before any other operationsawait Kodexa.init();// Check if readyif (Kodexa.isLoaded()) { // Safe to use}