LiteParse is an open-source document parser written in Rust that specializes in fast, lightweight PDF parsing with spatial text extraction. The project is maintained by the LlamaIndex team and provides high-quality text parsing with bounding box information without relying on proprietary language models or cloud dependencies. All processing runs locally on the user's machine, making it suitable for offline and air-gapped environments.
The core functionality centers on spatial text parsing using PDFium for PDF rendering and text extraction. LiteParse includes a flexible OCR system with Tesseract bundled by default for zero-setup operation, while also supporting integration with HTTP-based OCR servers like EasyOCR and PaddleOCR for users who need higher accuracy. The library provides a standardized OCR API specification that allows integration of custom OCR services.
A distinctive feature is the complexity detection capability, which performs a cheap text-layer-only analysis to determine whether a document needs OCR or heavier processing before committing to a full parse. This allows users to route documents to different pipelines, reject unsuitable documents, or estimate processing costs. The detection identifies specific reasons a page might need OCR, including scanned content, missing text, sparse text, embedded images, garbled text, and vector text issues.
LiteParse supports multiple output formats including Markdown with reconstructed headings, tables, lists, images, and links, as well as JSON and plain text. The Markdown output is designed specifically for feeding documents into language models and RAG pipelines. The library can also generate high-quality page screenshots for LLM agents to extract visual information that text alone cannot capture.
The project is available across multiple programming languages and platforms. Users can install LiteParse via npm for Node.js and TypeScript, pip for Python, cargo for Rust, or as a WebAssembly package for browser use. The same command-line interface is available across all installations, supporting batch parsing of entire directories, individual file parsing, screenshot generation, and complexity checking.
LiteParse also handles automatic conversion of various document formats to PDF before parsing, including Office documents like Word, PowerPoint, and spreadsheets through LibreOffice integration, and image formats through ImageMagick. This multi-format input support makes it versatile for different document sources.
According to GitGenius activity tracking, the repository shows strong maintenance with a median issue and pull request response latency of zero hours and a mean latency of 46.3 hours across 96 tracked items. The most active contributor is logan-markewich with 201 tracked events, followed by AdemBoukhris457 with 24 events. Bug reports and enhancement requests are the most common issue types, with 44 and 24 respectively. The repository shares overlapping contributors with related projects including datasette, claude-code, and deepagents, indicating integration within a broader ecosystem of document processing and AI tools.