kreuzberg-lts

Library Listed

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 91+ formats and 248 programming languages via tree-sitter code intelligence with async/sync APIs.

Checked · Sources

Downloads
54,366
Dependents
7
Stars
21
Forks
5
Contributors
39
Commits
4,641
Latest release
4.10.4 ·

About

From the project README ·

[!NOTE] Kreuzberg v4 LTS — the long-term-support line for Kreuzberg v4. Active development has moved to Xberg (v5+). This repository receives critical bug and security fixes until the end of 2026, on a best-effort basis. New features land in Xberg. See the migration guide & LTS policy →

Extract text, metadata, and code intelligence from 97+ file formats and 300+ programming languages at native speeds without needing a GPU.

Read the full README

Key Features

  • Code intelligence – Functions, classes, imports, symbols, and docstrings from 248 programming languages via tree-sitter, with semantic chunking
  • 91+ file formats – PDF, Office documents, images, HTML/XML, emails, archives, and academic formats across 8 categories
  • Polyglot – Native bindings for Rust, Python, TypeScript/Node.js, Ruby, Go, Java, C#, PHP, Elixir, R, and C
  • LLM intelligence – VLM OCR, schema-constrained JSON extraction, and provider-hosted embeddings across 146 LLM providers (including local engines) via liter-llm
  • OCR support – Tesseract (incl. WASM), PaddleOCR, EasyOCR (Python), and VLM OCR; extensible via plugin API
  • High performance – Rust core with native PDFium, SIMD, full parallelism, and streaming parsers for multi-GB files
  • Flexible deployment – Library, CLI, REST API server, or MCP server
  • GFM-quality output – Comrak rendering with cross-format parity (Markdown, HTML, Djot, Plain) plus token-efficient TOON serialization

Documentation | Live Demo | Installation

Installation

Each language binding provides comprehensive documentation with examples and best practices. Choose your platform to get started:

Scripting Languages:

  • Python – PyPI package, async/sync APIs, OCR backends (Tesseract, PaddleOCR, EasyOCR)
  • Ruby – RubyGems package, idiomatic Ruby API, native bindings
  • PHP – Composer package, modern PHP 8.4+ support, type-safe API, async extraction
  • Elixir – Hex package, OTP integration, concurrent processing
  • R – r-universe package, idiomatic R API, extendr bindings

JavaScript/TypeScript:

  • @kreuzberg/node – Native NAPI-RS bindings for Node.js/Bun, fastest performance
  • @kreuzberg/wasm – WebAssembly for browsers/Deno/Cloudflare Workers, full feature parity (PDF, Excel, OCR, archives)

Compiled Languages:

  • Go – Go module with FFI bindings, context-aware async
  • Java – Maven Central, Foreign Function & Memory API
  • C# – NuGet package, .NET 6.0+, full async/await support

Native:

  • Rust – Core library, flexible feature flags, zero-copy APIs
  • C (FFI) – C header + shared library, pkg-config/CMake support, cross-platform

Containers:

  • Docker – Official images with API, CLI, and MCP server modes (Core: ~1.0-1.3GB, Full: ~1.0-1.3GB with OCR + legacy format support)

Command-Line:

  • CLI – Cross-platform binary, batch processing, MCP server mode

All language bindings include precompiled binaries for both x86_64 and aarch64 architectures on Linux and macOS.

Platform Support

Complete architecture coverage across all language bindings:

LanguageLinux x86_64Linux aarch64macOS ARM64Windows x64
Python✅✅✅✅
Node.js✅✅✅✅
WASM✅✅✅✅
Ruby✅✅✅-
R✅✅✅✅
Elixir✅✅✅✅
Go✅✅✅✅
Java✅✅✅✅
C#✅✅✅✅
PHP✅✅✅✅
Rust✅✅✅✅
C (FFI)✅✅✅✅
CLI✅✅✅✅
Docker✅✅✅-

Note: ✅ = Precompiled binaries available with instant installation. WASM runs in any environment with WebAssembly support (browsers, Deno, Bun, Cloudflare Workers). All platforms are tested in CI. MacOS support is Apple Silicon only.

Embeddings Support (Optional)

Embeddings require ONNX Runtime 1.24+ (brew install onnxruntime, or download a release). All other features work without it. See the Embeddings Guide.

Supported Formats

91+ file formats across 8 categories with intelligent format detection and comprehensive metadata extraction:

  • Office – Word (.docx/.odt/.pages), spreadsheets (.xlsx/.ods/.numbers), presentations (.pptx/.key), .pdf, eBooks (.epub/.fb2), .dbf, Hangul (.hwp/.hwpx)
  • Images (OCR) – .png/.jpg/.gif/.webp/.bmp/.tiff, advanced (.jp2/.jbig2/.pnm via pure-Rust decoders), and .svg
  • Web & Data – .html/.xml, structured data (.json/.yaml/.toml/.csv), and text/markup (.md/.djot/.rst/.org/.rtf)
  • Email & Archives – .eml/.msg, and .zip/.tar/.gz/.7z with recursive extraction
  • Academic & Scientific – citations (.bib/.ris/.nbib/.csl), .tex/.typ/.jats/.ipynb, and publishing/documentation formats (.docbook/.opml/.pod/.troff)

Complete Format Reference →

Code Intelligence (248 Languages)

Extract structure (functions, classes, imports, symbols), parse docstrings (Google, NumPy, Sphinx, JSDoc, RustDoc, +10 more), and split code by semantic boundaries. Powered by tree-sitter-language-pack with dynamic grammar download — see the TSLP documentation for the full language list.

AI Coding Assistants

Kreuzberg ships with an Agent Skill that teaches AI coding assistants how to use the library correctly. It works with Claude Code, Codex, Gemini CLI, Cursor, VS Code, Amp, Goose, Roo Code, and any tool supporting the Agent Skills standard.

Install the skill into any project using the Vercel Skills CLI:

pnpm dlx skills add kreuzberg-dev/kreuzberg-lts

The skill is located at skills/kreuzberg/SKILL.md and is automatically discovered by supported AI coding tools once installed.

Documentation

Part of Xberg.io

Kreuzberg v4 LTS is the legacy line of the document-intelligence library now developed as Xberg. It is one of the open-source projects from Kreuzberg, Inc.:

  • Xberg — document intelligence: text, tables, metadata from 91+ formats with optional OCR (the active successor to Kreuzberg).
  • Xberg Enterprise — managed extraction API with SDKs, dashboards, and observability.
  • crawlberg — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
  • html-to-markdown — fast, lossless HTML→Markdown engine.
  • liter-llm — universal LLM API client with native bindings for 14 languages and 143 providers.
  • tree-sitter-language-pack — tree-sitter grammars and code-intelligence primitives.
  • alef — the polyglot binding generator that produces every per-language binding across the polyglot repos.

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
Required
  • Binds native code: kreuzberg_tesseract, clipper-sys, ort-sys, tree-sitter (feature tree-sitter), tree-sitter-language (feature tree-sitter)
  • Build uses a native toolchain: pkg-config, cc (feature build-tesseract), cmake (feature build-tesseract)
Python bindings
No Python binding crate found
License
MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

kreuzberg-lts beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
kreuzberg-lts This page Listed

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 91+ formats and 248 programming languages via tree-sitter code intelligence with async/sync APIs.

54,366 downloads over 30 days 7 21 4.10.4 GPU support unknown Binds native code: kreuzberg_tesseract, clipper-sys, ort-sys, tree-sitter (feature tree-sitter), tree-sitter-language (feature tree-sitter). Build uses a native toolchain: pkg-config, cc (feature build-tesseract), cmake (feature build-tesseract) MIT
pdf_oxide Featured

The fastest Rust PDF library — 0.8ms mean, 5× faster than the industry leaders, 100% pass rate on 3,830 real-world PDFs. Text extraction, Markdown/HTML conversion, PDF creation and editing.

Python bindings

Also in Documents and OCR.

316,729 downloads over 30 days 30 1,180 0.3.78 GPU support unknown Binds native code: aws-lc-rs (feature fips), lcms2-sys (feature icc-lcms2), ort-sys (feature gpu) Apache-2.0 OR MIT
gline-rs Listed

Inference engine for GLiNER models

Also in Run and serve models.

40,619 downloads over 30 days 3 173 1.1.0 CUDA, ROCm Binds native code: ort-sys Apache-2.0
rust-bert Listed Dormant

Ready-to-use NLP pipelines and language models

Also in Run and serve models.

24,605 downloads over 30 days 23 3,091 0.23.0 CUDA Binds native code: torch-sys, ort-sys (feature onnx) Apache-2.0
extractous Listed Dormant

Extractous provides a fast and efficient way to extract content from all kind of file formats including PDF, Word, Excel CSV, Email etc... Internally it uses a natively compiled Apache Tika for formats are not supported natively by the Rust core

Also in Documents and OCR.

1,515 downloads over 30 days 3 1,787 0.3.0 GPU support unknown No native code found Apache-2.0
blazr App Listed

Inference server for LLMs, speech and embeddings: OpenAI-compatible routes with streaming, plus speech synthesis (TTS) and transcription (ASR). Serves Llama, Mistral, Qwen, Mamba2, MLA+MoE and hybrid models from SafeTensors, AWQ, GPTQ and GGUF.

Also in Run and serve models.

8 binary downloads per release Not applicable 7 0.7.1 CUDA, WebGPU Binds native code: ring (feature distributed) Apache-2.0
xberg New

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 107 formats and 371 programming languages via tree-sitter code intelligence with async/sync APIs.

Also in Documents and OCR.

26,095 downloads over 30 days 2 9,565 1.3.10 CUDA, Metal Binds native code: libheif-sys, libz-sys, xberg_libwpd, xberg_tesseract, clipper-sys and 4 more. Build uses a native toolchain: cc, bindgen (feature bindings), cmake (feature build-tesseract), pkg-config (feature dynamic-linking), vcpkg (feature dynamic-linking) MIT
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 3 active dependents and 3 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 21 stars, 5 forks and 39 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.

What else the check found

  • The last activity is on 31 Oct 2026, 9 days ago. The rules expect an update within 1400 days. Dormancy rule

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 4.10.4 base 700, doubled for 54366 downloads per month: E = 1400 days
  • dormancy: last activity 2026-10-31, 9 days ago, E = 1400: active
  • featured: not featured: active_users 3 < 11 and new_adopters 3 < 9 and repository route stars 21 (needs 4539), forks 5 (needs 434), contributors 39 (needs 79)
  • listed: listed: no archive, new or featured rule applies
Crates3 crates

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption3 active dependents, 3 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents3crates.io database dumpYes
New dependents (365 days)3crates.io database dumpYes
Peak active dependents3crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 9 days ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-10-31GitHub repositoryYes
Latest release2026-09-21crates.io database dumpYes
First release2025-11-15crates.io database dumpYes
Latest version4.10.4crates.io database dumpYes
Days the oldest outside issue waits for a reply64GitHub repositoryYes
Maintainer replies over 365 days0GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution76 releases, 54,366 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases76crates.io database dumpYes
Downloads over 30 days54366crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository21 stars, 5 forks, 39 contributors, 4,641 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars21GitHub repositoryYes — one part of the repository route
GitHub forks5GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account39GitHub contributorsYes — one part of the repository route
Commits on the default branch4641GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesBinds native code: kreuzberg_tesseract, clipper-sys, ort-sys, tree-sitter (feature tree-sitter), tree-sitter-language (feature tree-sitter). Build uses a native toolchain: pkg-config, cc (feature build-tesseract), cmake (feature build-tesseract)crates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly7crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.