LiteParse

WASM

PDF Parsing in the Browser

Fast, lightweight document parsing powered by WebAssembly. No server required — everything runs locally in your browser.

$ npm install @llamaindex/liteparse-wasm
📄
Drop a PDF here or click to browse

      

Usage

import init, { LiteParse } from "@llamaindex/liteparse-wasm";

// Initialize the WASM module
await init();

// Create a parser instance
const parser = new LiteParse({ outputFormat: "json" });

// Parse PDF bytes (Uint8Array from File, fetch, etc.)
const bytes = new Uint8Array(await file.arrayBuffer());
const result = await parser.parse(bytes);

console.log(result.text);           // full document text
console.log(result.pages[0].textItems); // items with bounding boxes