Kreuzberg v4 LTS — long-term support for the v4 line (legacy; superseded by xberg for v5+). MIT-licensed.
See the code
[!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.
Documentation | Live Demo | Installation
Each language binding provides comprehensive documentation with examples and best practices. Choose your platform to get started:
Scripting Languages:
JavaScript/TypeScript:
Compiled Languages:
Native:
Containers:
Command-Line:
All language bindings include precompiled binaries for both x86_64 and aarch64 architectures on Linux and macOS.
Complete architecture coverage across all language bindings:
| Language | Linux x86_64 | Linux aarch64 | macOS ARM64 | Windows 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 require ONNX Runtime 1.24+ (brew install onnxruntime, or download a release). All other features work without it. See the Embeddings Guide.
91+ file formats across 8 categories with intelligent format detection and comprehensive metadata extraction:
.docx/.odt/.pages), spreadsheets (.xlsx/.ods/.numbers), presentations (.pptx/.key), .pdf, eBooks (.epub/.fb2), .dbf, Hangul (.hwp/.hwpx).png/.jpg/.gif/.webp/.bmp/.tiff, advanced (.jp2/.jbig2/.pnm via pure-Rust decoders), and .svg.html/.xml, structured data (.json/.yaml/.toml/.csv), and text/markup (.md/.djot/.rst/.org/.rtf).eml/.msg, and .zip/.tar/.gz/.7z with recursive extraction.bib/.ris/.nbib/.csl), .tex/.typ/.jats/.ipynb, and publishing/documentation formats (.docbook/.opml/.pod/.troff)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.
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:
npx 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.
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.:
Contributions are welcome! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
(top 30 of 40)
Rust
44.6%
HTML
21.7%
TypeScript
7.2%
Java
3.5%
Elixir
3.4%
MDX
3.0%
PHP
2.8%
Python
2.5%
C#
2.5%
Ruby
1.9%
Go
1.7%
C
1.6%
Rich Text Format
1.3%
Kreuzberg v4 LTS — long-term support for the v4 line (legacy; superseded by xberg for v5+). MIT-licensed.
See the code
[!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.
Documentation | Live Demo | Installation
Each language binding provides comprehensive documentation with examples and best practices. Choose your platform to get started:
Scripting Languages:
JavaScript/TypeScript:
Compiled Languages:
Native:
Containers:
Command-Line:
All language bindings include precompiled binaries for both x86_64 and aarch64 architectures on Linux and macOS.
Complete architecture coverage across all language bindings:
| Language | Linux x86_64 | Linux aarch64 | macOS ARM64 | Windows 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 require ONNX Runtime 1.24+ (brew install onnxruntime, or download a release). All other features work without it. See the Embeddings Guide.
91+ file formats across 8 categories with intelligent format detection and comprehensive metadata extraction:
.docx/.odt/.pages), spreadsheets (.xlsx/.ods/.numbers), presentations (.pptx/.key), .pdf, eBooks (.epub/.fb2), .dbf, Hangul (.hwp/.hwpx).png/.jpg/.gif/.webp/.bmp/.tiff, advanced (.jp2/.jbig2/.pnm via pure-Rust decoders), and .svg.html/.xml, structured data (.json/.yaml/.toml/.csv), and text/markup (.md/.djot/.rst/.org/.rtf).eml/.msg, and .zip/.tar/.gz/.7z with recursive extraction.bib/.ris/.nbib/.csl), .tex/.typ/.jats/.ipynb, and publishing/documentation formats (.docbook/.opml/.pod/.troff)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.
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:
npx 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.
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.:
Contributions are welcome! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
(top 30 of 40)
Rust
44.6%
HTML
21.7%
TypeScript
7.2%
Java
3.5%
Elixir
3.4%
MDX
3.0%
PHP
2.8%
Python
2.5%
C#
2.5%
Ruby
1.9%
Go
1.7%
C
1.6%
Rich Text Format
1.3%