xberg-io/xberg

The fast, precise document-intelligence engine for every language: text, tables and metadata from 100+ formats, with OCR, transcription and code intelligence.

What it solves

Xberg is a comprehensive document-intelligence engine designed to eliminate the need for assembling complex pipelines of multiple libraries to extract structured data from diverse file formats. It provides a single, unified interface for format detection, reading, OCR, and content extraction across a vast array of documents, images, audio, and web content.

How it works

The engine handles the entire ingestion process—from identifying the MIME type of a file to extracting its content. It supports 107 document formats (including PDFs, Office files, and e-books), OCR via multiple backends (Tesseract, PaddleOCR, Candle, or VLM), and speech-to-text transcription using Whisper ONNX. It can also crawl URLs, recursively extract nested archives, and perform syntax-aware chunking for code in 371 programming languages. The extracted content can be output in six different formats, including Markdown and JSON.

Who it’s for

Developers building RAG (Retrieval-Augmented Generation) pipelines, AI agents, or any application requiring high-precision document parsing and structured data extraction from a wide variety of sources.

Highlights

  • Massive Format Support: Handles 107 formats across 141 file extensions, including academic citations, emails, and databases.
  • Multi-Language Bindings: Available for 15 languages, including Rust, Python, Node.js, Go, Java, C#, Ruby, PHP, Elixir, Dart, Swift, Zig, WASM, and Kotlin.
  • AI-Ready Features: Includes built-in support for embeddings, reranking, NER, summarization, and schema-driven JSON extraction via local or hosted LLMs.
  • Flexible Deployment: Can be run as a library, CLI tool, REST API, or MCP server, and is CPU-optimized by default.
  • Advanced Layout Analysis: Uses ML models to reconstruct reading order and table grids for clean Markdown output.

Related

  • Project
  • Dispatch
  • Project
  • Project
  • Project