pip install xbergWhat Xberg can do.
Capabilities in Xberg v1.5.5.
- Document extraction
- Turn PDFs, spreadsheets, and other files into text, tables, and metadata your application can use. Supports 107 formats across 141 file extensions.
- OCR and layout
- Read scanned pages and images. Use available OCR, layout, and table-recognition backends to recover structure.
- Transcription
- Turn audio and video speech into text with Whisper ONNX when transcription support is enabled.
- Chunking and embeddings
- Split content into chunks and generate embeddings with local presets or a configured model provider.
- Code intelligence
- Parse symbols and structure across 426 programming languages and create syntax-aware chunks.
- Structured extraction
- Map extracted content to a JSON schema with a configured local or hosted language model.
Six open-source libraries.
Explore the engine and the libraries that support it. Use the pieces your project needs.
Xberg
The content processing engine for extraction, OCR, and enrichment.
crawlberg
Crawl and scrape websites, with HTML-to-Markdown conversion and an optional browser backend.
html-to-markdown
Convert HTML to Markdown while preserving document structure.
liter-llm
Use a common client for multiple LLM providers.
tree-sitter-language-pack
Tree-sitter grammars and tooling for parsing source code.
alef
Generate language bindings from Rust.
MIT licensed.
Read the MIT licenseYou can use, modify, and distribute the engine, including in commercial products. Keep the copyright and permission notices when distributing copies or substantial portions of the software.
Fits into your workflow.
Drop-in integrations for the AI frameworks and tools you already build with.
from langchain_xberg import XbergLoader
# Load any document as LangChain Documents
loader = XbergLoader("report.pdf")
docs = loader.load()
# Drop straight into your vector store
db.add_documents(docs)pip install langchain-xbergOne engine. 15 language bindings.
Embed Xberg through a language binding, run it from the CLI, or call the self-hosted REST API.
Read the REST API guidepip install xbergOpen-source benchmarks.
Single-file plaintext extraction on two separate PDF test sets. The tables show the baseline Xberg configuration and other engines with recorded results. Text fidelity is scored from 0 to 1.
PDFs with embedded text
8 test documents
| Engine | Median time | Text fidelity | Peak memory |
|---|---|---|---|
| 22 ms | 0.987 | 43 MB | |
| 1.2 s | 0.971 | 160 MB | |
| 5.1 s | 0.984 | 1.03 GB | |
| 14.5 s | 0.951 | 1.61 GB | |
| 17 ms | 0.971 | 17 MB |
Scanned PDFs with OCR
4 test documents
| Engine | Median time | Text fidelity | Peak memory |
|---|---|---|---|
| 2.1 s | 0.978 | 359 MB | |
| 4.4 s | 0.976 | 379 MB | |
| 12.0 s | 0.973 | 1.68 GB | |
| 562 ms | 0.938 | 68 MB | |
| 34.2 s | 0.929 | 3.69 GB |
Some engines have no recorded result for these test sets in the October 9, 2026 run.
Questions developers ask.
How is open-source Xberg different from Pro and Enterprise?
Open-source Xberg is the content-processing engine. Xberg Pro packages it as a self-hosted platform with a management dashboard. Enterprise adds distributed deployment and organizational controls.
Can I use Xberg commercially?
Yes. The MIT license permits commercial use. Keep the copyright and permission notices when distributing copies or substantial portions of the software.
Do I need an account or API key?
Local library use requires no Xberg account or API key. For the REST server, configure authentication when serving beyond localhost. External services may require their own credentials.
Does my data leave my machine?
Processing with local models and backends can keep documents on your infrastructure. Features configured to use a remote model or OCR provider can send content to that provider.
Which languages can I use?
Xberg provides 15 language bindings, including Python, Node.js, Rust, Go, and Java. You can also call its REST API from any HTTP client.
Does OCR need extra setup?
It depends on the backend and package. Tesseract needs the appropriate language data. Some alternate backends require models, providers, or build features.
Where can I see releases or contribute?
Releases and development are public on GitHub. Open an issue or pull request there, or join Discord to ask questions.