Skip to content

Installation

The fastest way to get started. No Rust toolchain needed if you use Homebrew.

Terminal window
brew trust xberg-io/tap
brew install xberg-io/tap/crawlberg

Verify:

Terminal window
crawlberg --version

Add to your Cargo.toml:

Cargo.toml
[dependencies]
crawlberg = "0.3"
tokio = { version = "1", features = ["full"] }

Optional feature flags:

Feature Description
native-runtime Native OS runtime marker; enabled by default outside wasm32
browser Chromiumoxide browser backend
browser-native In-process native browser backend
ai LLM extraction via liter-llm
otel One-call OpenTelemetry/OTLP setup
interact Compatibility alias for browser-backed page interaction
mcp Model Context Protocol server
api REST API server via Axum
mcp-http MCP over HTTP transport
warc WARC archive output

Enable features as needed:

Cargo.toml
[dependencies]
crawlberg = { version = "0.3", features = ["browser", "ai", "mcp"] }

Pull the official image:

Terminal window
docker pull ghcr.io/xberg-io/crawlberg:latest

Run the CLI:

Terminal window
docker run --rm ghcr.io/xberg-io/crawlberg:latest scrape https://example.com

Run with a volume for WARC output:

Terminal window
docker run --rm -v $(pwd)/output:/output \
ghcr.io/xberg-io/crawlberg:latest \
crawl https://example.com --depth 2 --warc-output /output/archive.warc

  • Quick start — Scrape a page, run a crawl, and map a site in under five minutes. Covers the CLI and the Rust API side by side.
  • Configuration guide — Every CrawlConfig field with its default and validation rules. Start here if you need to tune depth, concurrency, or content filtering.
  • Features overview — What the engine can do: browser rendering, LLM extraction, REST API, MCP, WARC output, and more. Useful for figuring out which feature flags you need.