liteparse

liteparse is a skill for Claude Code, Codex from jokull/icelandic-data. It costs 22 tokens per session (1,342 once invoked), scanned A, original, MIT.

A local tool for extracting text and visual details from PDF files. It can include the location of text on a page, page screenshots and detected visual elements.

In plain words
What is it for?
Use it to turn PDFs into text or JSON, capture page images, inspect layouts and process batches of documents. OCR can read scanned pages, while native PDFs can be parsed without OCR.
Why use it?
It avoids copying PDF contents by hand and helps preserve where text and visuals appear on each page. It can process individual files, selected pages or whole folders.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jokull/icelandic-data/liteparse
Any agent
npx skills add jokull/icelandic-data --skill liteparse
Clone the repo
git clone --depth 1 https://github.com/jokull/icelandic-data

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for liteparse

README.md
[![agentmods](https://agentmods.dev/badge/skills/jokull/icelandic-data/liteparse.svg)](https://agentmods.dev/skills/jokull/icelandic-data/liteparse)
Your own site
<a href="https://agentmods.dev/skills/jokull/icelandic-data/liteparse"><img src="https://agentmods.dev/badge/skills/jokull/icelandic-data/liteparse.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,342 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01342
Opus 5 $0.00011 $0.00671
Sonnet 5 $0.00004 $0.00268
Haiku 4.5 $0.00002 $0.00134

Measured 5d ago against content hash 3dbc7cb4e038, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

liteparse scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/liteparse/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LiteParse — PDF Parsing & Visual Extraction

Fast, local PDF parser (LlamaIndex) for text extraction with bounding box coordinates, page screenshots, and visual element detection. Wraps a Node.js CLI (lit) via a Python wrapper.

Installation

uv pip install liteparse
# CLI available as `lit` (requires Node.js/npx)

Current version: 1.2.1. Docs: https://developers.llamaindex.ai/liteparse/

CLI Usage

# Parse PDF to text
lit parse document.pdf

# Parse to JSON with bounding boxes
lit parse document.pdf --format json -o output.json

# Parse specific pages, no OCR (native PDFs)
lit parse document.pdf --format json --no-ocr --target-pages "1-5,10"

# Screenshot pages at high DPI
lit screenshot document.pdf -o ./screenshots --dpi 200

# Batch parse a directory
lit batch-parse ./pdfs ./outputs --recursive --extension ".pdf"

CLI Flags (lit parse)

Flag Default Description
-o, --output stdout Output file path
--format text text or json
--no-ocr false Disable OCR (use for native/digital PDFs)
--ocr-language en Language code (is for Icelandic)
--target-pages all Page ranges: "1-5,10,15-20"
--dpi 150 Rendering resolution
--num-workers CPU-1 Parallel OCR workers
--max-pages 10000 Page limit
--password For encrypted PDFs
-q, --quiet false Suppress progress

Python API

from liteparse import LiteParse

parser = LiteParse()

# Parse — use ocr_enabled=False for native PDFs (much faster)
result = parser.parse(
    "document.pdf",
    ocr_enabled=False,       # Skip OCR for digital PDFs
    ocr_language="is",       # Icelandic OCR when needed
    target_pages="1-10",     # Optional page selection
    dpi=150,                 # Resolution for OCR
)

# Full text
print(result.text)

# Per-page access
for page in result.pages:
    print(f"Page {page.pageNum}: {page.width}x{page.height}")
    print(f"  Text items: {len(page.textItems)}")
    print(f"  Bounding boxes: {len(page.boundingBoxes)}")

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 162 lines · 22 tokens per session scan A 3dbc7cb4e038

Subscribe to this mod's changes

liteparse is a skill published in the GitHub repository jokull/icelandic-data (52 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 1,342 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.