Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

xberg

Skill by xberg-io

Guides writing code that extracts text, tables, metadata, and images from 107 document formats using Xberg. Built for developers working in Python, Node.js/TypeScript, Rust, or the CLI.

  • Score 90
  • 9.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install xberg

Built from the published package, never by AI.

git clone --depth 1 https://github.com/xberg-io/xberg /tmp/xberg && mkdir -p ~/.claude/skills && cp -r /tmp/xberg/plugin/.ai-rulez/skills/xberg ~/.claude/skills/xberg

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install xberg in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Xberg is a document extraction library with a Rust core and bindings for Python, TypeScript/Node.js, Ruby, PHP, Go, Java, C#, Elixir, WebAssembly, Dart, Kotlin Android, Swift, Zig, and C. It extracts text, tables, metadata, and images from 107 document formats, including PDF, Office documents, images, HTML, email, archives, and academic formats. This skill covers installation, extraction, configuration, batch processing, error handling, and plugins.

The skill helps an assistant write code that calls Xberg APIs in Python, Node.js/TypeScript, Rust, or the CLI. Extraction uses extract and extract_batch functions that return a result envelope with per-document fields. OCR runs automatically for images and scanned PDFs, with Tesseract as the default backend. It is aimed at developers who need structured content from mixed document collections.

Written from the project's SKILL.md and checked against it.

What it can do

  • Document extractionExtracts text, tables, metadata, and images from 107 document formats.
  • OCRRuns OCR on images and scanned PDFs, with Tesseract as the default backend.
  • Batch processingProcesses multiple files with extract_batch and reports per-input errors.
  • ConfigurationSets OCR, chunking, output format, and PDF password options.
  • Error handlingShows how to catch extraction errors in Python, Node.js, and Rust.
  • PluginsExplains how to implement custom post-processors, validators, and OCR backends.

What you need

  • Python, Node.js, Rust, or the Xberg CLI
  • Tesseract is built in as the default OCR backend

Try asking

  • Write Python code that extracts text and tables from a PDF with Xberg
  • Show me how to batch process a folder of DOCX files with extract_batch
  • Configure Xberg OCR with English and German for scanned PDFs

Good to know

  • Python and Node.js bindings are async-only
  • The Node binding throws plain Error objects, not typed error subclasses
  • The single-string language shorthand is not accepted in the OcrConfig constructor

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugin/.ai-rulez/skills/xberg/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md18 KB
  • index.md399 B

Alternatives to xberg

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

xberg: common questions

Which file formats does Xberg support?

The source says Xberg extracts from 107 formats across 140 file extensions, including PDF, Office documents, images, HTML, email, archives, and academic formats.

Which OCR backends are available?

Tesseract is the default native backend. The source also lists PaddleOCR, an ONNX-based option, and a Vision-Language-Model backend configured through vlm_config.

How does Xberg report errors in batch jobs?

Per-input failures in extract_batch are reported in result.errors with an input index, so one failed file does not stop the rest.

How do I install xberg?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is xberg free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is xberg safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to xberg?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

Add to stack

Loading.