run-llama/liteparse

A fast, helpful, and open-source document parser

What it solves

LiteParse is a fast, lightweight, and standalone open-source PDF parsing tool. It solves the problem of extracting high-quality spatial text and structure from documents locally, without requiring proprietary LLM features or cloud-based dependencies.

How it works

Built with a Rust core, LiteParse uses PDFium for fast text extraction and a grid projection system for spatial layout reconstruction. It supports multiple input formats (PDF, DOCX, XLSX, PPTX, and images) by converting them via LibreOffice or Rust-based image crates. For documents requiring OCR, it offers a built-in Tesseract engine or the ability to plug in external OCR servers (like EasyOCR or PaddleOCR) via a standard HTTP API. The tool can then classify pages into blocks (headings, tables, lists, etc.) to render structured Markdown, JSON, or plain text.

Who it’s for

It is designed for developers building RAG pipelines and LLM agents who need a local, high-performance document parser that provides precise bounding boxes and structured output without the latency or cost of cloud services.

Highlights

  • High Performance: Spatial text parsing typically takes 2-5ms per page.
  • Local Execution: Runs entirely on the user's machine across Linux, macOS, and Windows.
  • Multi-language Support: Available as libraries and CLI tools for Rust, Node.js/TypeScript, Python, and the browser (WASM).
  • Flexible OCR: Bundles Tesseract for zero-setup OCR and supports custom OCR servers via a standard API.
  • Structured Output: Generates Markdown (with tables and headings), JSON, and plain text, including precise bounding boxes for text and layout blocks.
  • Agent-Ready: Can be integrated as an agent skill and generates high-quality page screenshots for LLM agents.

Related

  • Project
  • Project
  • Project
  • Project
  • Project