Get started
01 / 01DocumentationCorpus · reference · markdown
DocumentationWeb APIs

Vitna Local

Source

Single-binary Rust web reader, concurrent crawler, site mapper, local Vitna Web API v1 server, and native stdio MCP server under Apache-2.0. Public open-source repository: github.com/convexityos/vitna-local. No database, Docker stack, or Node.js runtime required.

vitna-local runs plain HTTP/2 fetches, HTML5-to-Markdown conversion, PDF and Office document extraction, lazy Chrome/Edge/Chromium CDP rendering on JavaScript shells, deterministic PII redaction, prompt-injection stripping, SHA-256 content digests, and stdio MCP serving in one native executable. Nothing leaves your machine unless you explicitly opt into cloud escalation (VITNA_CLOUD=auto).

Install

Prebuilt SHA-256 verified binaries are published at github.com/convexityos/vitna-local/releases for Linux (x86_64, aarch64), macOS (aarch64, x86_64), and Windows (x86_64):

bash
# Homebrew (macOS and Linux)
brew install convexityos/tap/vitna-local

# Shell installer (Linux and macOS)
curl -fsSL https://raw.githubusercontent.com/convexityos/vitna-local/main/install.sh | bash
powershell
# Windows (PowerShell)
irm https://raw.githubusercontent.com/convexityos/vitna-local/main/install.ps1 | iex

Or build from source with Rust 1.89+:

bash
git clone https://github.com/convexityos/vitna-local.git
cd vitna-local
cargo build --release
./target/release/vitna-local --version

Commands

CommandPurpose
vitna-local scrape <url>... (alias read)Read one or more URLs into Markdown, text, or HTML with optional `--render auto\never\always, --wait-for <css>, --injection scan\strip, and --redact`
vitna-local crawl <url>Crawl a site concurrently (--concurrency 1..64, --limit, --max-depth, --entire-domain, --allow-subdomains, --include, --exclude, --delay-ms, --ignore-robots, --out <dir>, --jsonl <file>, --state <ckpt.jsonl>)
vitna-local extract <url>Extract structured JSON locally via --selector name=css, JSON-LD, OpenGraph, HTML --tables, or optional opt-in BYOK/local --llm-url + --llm-model
vitna-local diff <before> <after>Compute deterministic structural Markdown diffs between two URLs or local snapshots (--unified or JSON)
vitna-local map <url>Discover URLs from XML sitemaps and page links with optional --search
vitna-local serveRun the Vitna Web API v1 server locally on http://127.0.0.1:8790 (in-memory jobs, 1-hour TTL)
vitna-local mcp --public-onlyRun a native Rust stdio JSON-RPC 2.0 MCP server (read_page, batch_scrape, map_site, crawl_site, extract_page, diff_pages) with zero Node.js dependency
vitna-local init [--dry-run]Register vitna-local mcp --public-only into Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI, and Codex (creating .vitna.bak backups)
vitna-local bench --pages 100 --concurrency 8Run the built-in reproducible 100-page loopback HTTP crawl benchmark

Local Vitna Web API v1

Start the local server (loopback only, no API key required on 127.0.0.1):

bash
vitna-local serve --host 127.0.0.1 --port 8790

Routes implemented locally:

  • GET /healthz and GET /v1/status
  • POST /v1/read and POST /v1/scrape
  • POST /v1/batch
  • POST /v1/map
  • POST /v1/crawl, GET /v1/jobs/{id}, and DELETE /v1/jobs/{id}
  • POST /v1/extract and POST /v1/diff

Point the Vitna JS/Python SDKs (new Vitna({ baseUrl: "http://127.0.0.1:8790" }) or Vitna(base_url="http://127.0.0.1:8790")) or curl at http://127.0.0.1:8790. Non-loopback binds require --token <secret> (constant-time Bearer comparison), and every request passes a Host header check against DNS rebinding.

Security and privacy defaults

  • Cloud metadata always blocked: link-local (169.254.0.0/16, fe80::/10) and cloud metadata addresses (169.254.169.254, fd00:ec2::254, metadata.google.internal) are refused in every mode, including after DNS resolution and HTTP redirects.
  • Public-only network policy in `serve` and `mcp --public-only`: localhost and RFC1918 private addresses are blocked by default so untrusted web pages cannot steer an agent toward internal services. Pass --allow-private to serve only when intentionally crawling local fixtures.
  • Deterministic safety transforms: --redact masks emails, phone numbers, Luhn-checked payment cards, IBANs, SSNs, and IP addresses with redaction counts; --injection strip removes invisible Unicode and BiDi override characters and flags prompt-injection directives. Every scraped response includes a contentSha256 digest.
  • Zero phone-home default: VITNA_CLOUD defaults to off. Set VITNA_CLOUD=auto and VITNA_API_KEY=vitna_web_... only when you want blocked pages or hosted-only routes (/v1/search, /v1/verify, /v1/diff, /v1/entity, /v1/sources, /v1/ir, /v1/grid) to escalate to https://web.vitna.ai.

Measured 100-page loopback benchmarks

Loopback benchmarks measure engine overhead (HTTP pooling, HTML5 DOM parsing, Markdown conversion, SHA-256 hashing, frontier scheduling), not public-internet RTT, TLS handshakes, or headless browser execution.

HostBinary sizeConcurrencyMedian wall time (5 runs)ThroughputIdle RSSPeak RSS
Ubuntu 24.04.4 LTS, AMD EPYC-Milan (8 vCPU)10.68 MiB stripped ELF (libc + libm only)810.3 ms (7.5 - 10.7 ms)9,669 pages/s12.2 MiB26.4 MiB
Ubuntu 24.04.4 LTS, AMD EPYC-Milan (8 vCPU)10.68 MiB stripped ELF168.4 ms (7.9 - 9.7 ms)11,890 pages/s12.2 MiB28.4 MiB
Ubuntu 24.04.4 LTS, AMD EPYC-Milan (8 vCPU)10.68 MiB stripped ELF327.3 ms (7.2 - 10.2 ms)13,703 pages/s12.2 MiB26.3 MiB
Windows 11, AMD Ryzen 7 3700X (8 cores)11.82 MiB .exe851.9 ms (19.2 - 58.7 ms)1,925 pages/s6.3 MiB10.9 MiB
Windows 11, AMD Ryzen 7 3700X (8 cores)11.82 MiB .exe1665.2 ms (35.4 - 84.0 ms)1,533 pages/s6.3 MiB11.3 MiB

Same-machine head-to-head vs firecrawl-local 0.1.1

Measured on AMD Ryzen 7 3700X (8 cores / 16 logical threads), Windows 11, 5 interleaved runs via benchmarks/compare.mjs (--concurrency 16, --browser never, FIRECRAWL_CLOUD=off, identical 102 / 1,002 HTTP requests, 100% clean Markdown verified on every page):

Metricvitna-local 0.2.0firecrawl-local 0.1.1
LicenseApache-2.0AGPL-3.0
Release binary size (Windows x86_64)11.82 MiB23.70 MiB
100-page crawl (--mode json)51.75 ms (1,932 pages/s)85.89 ms (1,164 pages/s)
1,000-page crawl (--mode json)165.59 ms (6,039 pages/s)197.20 ms (5,071 pages/s)
Idle serve Working Set8.54 MiB11.56 MiB
Peak memory on 1,000-page crawl (--out)17.27 MiB WS (24.57 MiB commit)20.44 MiB WS (40.69 MiB commit)
MCP initialize + tools/list19 ms, 4.7 KiB, 6 local tools (offline)2,344 ms, 114.9 KiB, 31 cloud tools (firecrawl-fastmcp)
Safety & provenance (/security-test)5/5 (PII redacted, \u200B/\u202E stripped, injection detected, SHA-256)0/5

Full methodology and Windows NTFS --mode out disk-write numbers (plus Linux vitna-local --out at 139.06 ms / 7,191 pages/s on 1,000 pages) are in benchmarks/README.md in convexityos/vitna-local.

Limits compared to hosted Vitna Web

  • Crawl jobs in vitna-local serve live in memory with a 1-hour TTL and end when the process stops. Use hosted https://web.vitna.ai or platform/web/ for SQLite crash-recoverable crawls, Camoufox/residential unblocking, and scheduled change monitors.
  • Digital PDFs, DOCX, XLSX, and PPTX parse locally; scanned image-only PDFs report pagesNeedingOcr and require hosted /v1/parse with ocr: "auto".