LiteParse tutorial: custom OCR with EasyOCR

Install LiteParse, parse PDFs and office files, and replace its default OCR with an EasyOCR HTTP server. Includes a Claude Code skill example.

Player not loading? Watch on YouTube

LiteParse is an open source document parser from LlamaIndex. The presenter introduces it as a local tool with no LLM or cloud dependency, with standalone binaries for Linux, macOS and Windows. The tutorial covers npm installation and a CLI help check before parsing a PDF.

Text output preserves the document's spatial layout. JSON output includes page dimensions and text items with bounding boxes, font information and font sizes. In the demonstration, the presenter reports extracting a 22-page PDF in less than a second; this is an example result, not a general performance guarantee. Batch parsing processes a folder of PDFs, while the screenshot command exports selected pages as PNG files.

Office documents and images require extra dependencies: LibreOffice and ImageMagick. The presenter installs them on macOS with Brew and notes apt-get for Ubuntu or Debian. These parsing examples take longer than the initial PDF example.

The OCR section replaces the built-in tesseract.js backend with an HTTP server using EasyOCR. A custom endpoint accepts a required file and an optional language, defaulting to English. LiteParse also has TypeScript library usage; the speaker describes a Python package and UV tool as forthcoming. The final example installs a skill for Claude Code, then asks the coding assistant to parse a paper and write a report from the extracted text.