vitna-local scrape <url>...CLI · /v1/readHTTP/2 scrape & Markdown
Strips navigation, cookie banners, and footers into clean Markdown, text, or HTML with SHA-256 content digests, --redact PII masking, and --injection strip.
DocumentationWeb API referenceSearch referenceInvoice reconcileOpenAPI specsllms.txt
v0.2.1Apache-2.0 · single Rust binary · 0 open advisories
One ~13 MB native executable with no Docker stack, Redis queue, or Node.js runtime. Plain HTTP/2 scraping, concurrent resumable crawling, shared Chrome CDP rendering, local PDF/Office parsing, deterministic PII and prompt-injection defense, and 6 offline stdio MCP tools run locally with zero phone-home by default.
Prebuilt SHA-256 verified archives on GitHub Releases and Homebrew tap convexityos/tap/vitna-local. Set VITNA_CLOUD=auto only if you later opt into hosted web.vitna.ai.
brew install convexityos/tap/vitna-local
vitna-local --versionPrebuilt binaries for Linux (x86_64, ARM64), macOS (ARM64, x86_64), and Windows (x86_64). Zero Rust or Node.js toolchain required.
==> Downloading vitna-local-aarch64-apple-darwin.tar.gz (v0.2.1)
==> Verifying SHA-256 digest against Formula/vitna-local.rb ... ok
==> Installing vitna-local from convexityos/tap
/opt/homebrew/bin/vitna-local
$ vitna-local --version
vitna-local 0.2.1Every archive is verified against SHA256SUMS.txt before touching your PATH. Linux (x86_64, aarch64), macOS (aarch64, x86_64), and Windows (x86_64) ship prebuilt on every tagged release.
Pinned to the verified release tarballs in convexityos/homebrew-tap.
brew install convexityos/tap/vitna-localDownloads the matching binary into ~/.local/bin and checks SHA-256.
curl -fsSL https://raw.githubusercontent.com/convexityos/vitna-local/main/install.sh | bashInstalls vitna-local.exe into %LOCALAPPDATA%\vitna-local\bin with hash verification.
irm https://raw.githubusercontent.com/convexityos/vitna-local/main/install.ps1 | iexPure-Rust release build with thin LTO and stripped symbols, Apache-2.0.
git clone https://github.com/convexityos/vitna-local.git
cd vitna-local && cargo build --releaseEvery CLI subcommand, local HTTP endpoint, and MCP tool shares the same Rust engine, HTML5-to-Markdown pipeline, SSRF guard, and Vitna Web API v1 JSON schema.
vitna-local scrape <url>...CLI · /v1/readStrips navigation, cookie banners, and footers into clean Markdown, text, or HTML with SHA-256 content digests, --redact PII masking, and --injection strip.
vitna-local crawl <url>--jsonl · --stateRust BFS frontier honoring RFC 9309 robots.txt and recursive XML sitemaps, writing YAML-frontmatter Markdown files (--out), streaming JSONL, or resumable checkpoints.
vitna-local extract <url>CSS · tables · OllamaPulls CSS selectors, JSON-LD, OpenGraph metadata, and HTML tables with zero LLM cost, plus optional opt-in --llm-url / --llm-model JSON Schema extraction.
vitna-local diff <a> <b>CLI · /v1/diffCompares two URLs or local Markdown snapshots deterministically with section-level status, similarity ratio, SHA-256 digests, and --unified output.
vitna-local map <url>CLI · /v1/mapEnumerates site URLs from XML sitemaps and start-page links with substring --search filtering, --include-subdomains, and robots.txt controls.
PDF · DOCX · XLSX · PPTXlopdf 0.47 · zip 9.9Sniffs magic bytes and parses digital PDFs and Office archives natively in Rust (32 MiB uncompressed entry guard), reporting pagesNeedingOcr for scanned PDFs.
--render auto|always --wait-forIncognito tabsLaunches local Chrome, Edge, or Chromium only on JS shells with isolated incognito BrowserContexts, crash respawn, Page.loadEventFired, and CSS wait selectors.
vitna-local serve127.0.0.1:8790Serves /v1/read, /v1/scrape, /v1/batch, /v1/map, /v1/crawl, /v1/jobs/:id, /v1/extract, and /v1/diff locally with Host-header DNS-rebinding and SSRF guards.
vitna-local mcp / init19 ms · 4.7 KiBNative Rust JSON-RPC 2.0 MCP server with 6 local tools and zero Node.js dependency. vitna-local init auto-wires 6 coding agents with .vitna.bak backups.
| Method | Route | Behavior on loopback |
|---|---|---|
| GET | /healthz · /v1/status | Liveness check, version, browser availability, and network policy |
| POST | /v1/read · /v1/scrape | Single URL Markdown/text/HTML, PDF/Office parse, PII redaction, and injection strip |
| POST | /v1/batch | Concurrent multi-URL scraping (up to 100 URLs) with per-URL error isolation |
| POST | /v1/map | XML sitemap and start-page link discovery with search filter |
| POST | /v1/crawl · GET/DELETE /v1/jobs/:id | Async concurrent site crawl jobs (1-hour in-memory TTL) with polling and cancel |
| POST | /v1/extract · /v1/diff | Local CSS/JSON-LD/OpenGraph/table extraction and structural Markdown diffs |
vitna-local mcp --public-only speaks JSON-RPC 2.0 over stdio directly from Rust. It starts in 19 ms, exposes 6 focused local tools in 4.7 KiB of schema, and makes zero outbound cloud calls.
Registers vitna-local mcp --public-only directly in Claude Code with automatic .vitna.bak backup.
read_page · batch_scrapemap_site · crawl_siteextract_page · diff_pagesRegister the native binary once; no npx download or cloud auth.
# Preview which agent configs exist on this machine
vitna-local init --dry-run
# Register vitna-local mcp --public-only (creates .vitna.bak backups)
vitna-local initSame Vitna Web API v1 contract on 127.0.0.1:8790 with zero API key.
import { Vitna } from "@vitna/web";
// Zero API key needed on loopback; switch baseUrl to https://web.vitna.ai later
const vitna = new Vitna({ baseUrl: "http://127.0.0.1:8790" });
const page = await vitna.read("https://example.com", {
redact: true,
injection: "strip",
});Measured on AMD Ryzen 7 3700X (8 cores / 16 threads), Windows 11, 5 interleaved runs via zero-dependency benchmarks/compare.mjs with identical flags (--concurrency 16 --browser never, FIRECRAWL_CLOUD=off) and identical HTTP request counts (102 / 1,002).
| Metric | vitna-local | firecrawl-local 0.1.1 | Verified delta |
|---|---|---|---|
| License | Apache-2.0 | AGPL-3.0 | Permissive vs copyleft |
| Release binary size (Windows x86_64) | 11.82 MiB (v0.2.0) / 13.07 MiB (v0.2.1) | 23.70 MiB (v0.1.1) | 1.81x - 2.00x smaller |
| 100-page crawl (c=16, --mode json, 5 runs) | 51.75 ms (1,932 pages/s) | 85.89 ms (1,164 pages/s) | 1.66x faster · 100/100 clean |
| 1,000-page crawl (c=16, --mode json, 5 runs) | 165.59 ms (6,039 pages/s) | 197.20 ms (5,071 pages/s) | 1.19x faster · 1,000/1,000 clean |
| Idle serve Working Set (2s after boot) | 8.54 MiB (9.35 MiB commit) | 11.56 MiB (11.16 MiB commit) | 26% lower idle RSS |
| Peak memory on 1,000-page crawl (--out) | 17.27 MiB WS · 24.57 MiB commit | 20.44 MiB WS · 40.69 MiB commit | 16% lower WS · 40% lower commit |
| MCP initialize + tools/list (stdio) | 19 ms · 4.7 KiB · 6 local tools | 2,344 ms · 114.9 KiB · 31 cloud tools | Offline local vs remote firecrawl-fastmcp |
| Safety & provenance (/security-test) | 5/5 (PII redacted, BiDi stripped, injection + SHA-256) | 0/5 (raw PII, invisible/BiDi, and injection passed through) | Verified by benchmarks/compare.mjs |
| Install & prebuilt binaries | 5-platform Releases, Homebrew tap, install.sh, install.ps1 | cargo install only (10m 09s compile) | Zero Rust toolchain required |
Loopback runs measure CLI startup, HTTP pooling, HTML5 parsing, boilerplate removal, Markdown conversion, SHA-256 hashing, and frontier scheduling, not public-internet RTT or Chromium execution. Full --mode out Windows NTFS breakdown (369.1 ms vs 435.5 ms on 100p; 3,935.2 ms vs 3,533.5 ms on 1,000p, where ~95% is Windows Defender scanning 1,000 temp files) is published in benchmarks/README.md.
Nothing leaves your machine unless you explicitly opt in. When a workflow needs residential anti-bot unblocking, scanned-PDF OCR, or hosted search and official data sources, point the same SDK or CLI at web.vitna.ai.
Link-local ranges (169.254.0.0/16, fe80::/10) and cloud metadata endpoints (169.254.169.254, fd00:ec2::254, metadata.google.internal) are blocked in every mode, including after DNS resolution and HTTP redirects.
vitna-local serve binds 127.0.0.1, rejects non-loopback binds without --token, enforces a Host-header gate against DNS rebinding, and blocks localhost/RFC1918 targets unless --allow-private is explicitly passed.
--redact masks emails, phones, Luhn-verified cards, IBANs, SSNs, and IPs with counts. --injection strip removes invisible Unicode and BiDi overrides and flags prompt-injection directives alongside a SHA-256 hash.
v0.2.1 ships zip 9.9.0 (pure-Rust zlib-rs) with a 32 MiB uncompressed Office entry cap and lopdf 0.47.0, closing all 4 Dependabot advisories on convexityos/vitna-local with 0 open alerts.
Straight answers on what runs offline, when Chrome is used, and how Vitna Local compares to hosted Vitna Web APIs.
Read reference as MarkdownNo. VITNA_CLOUD defaults to off, no install ID or usage ping is sent, and vitna-local mcp serves all 6 tools strictly over local stdio. Outbound calls to web.vitna.ai happen only when you explicitly set VITNA_CLOUD=auto and provide a VITNA_API_KEY.
Yes. convexityos/vitna-local is licensed under permissive Apache-2.0, with no AGPL copyleft network-use disclosure obligations.
No Node.js is ever required, including for MCP. Plain HTTP/2 scraping, crawling, extraction, diffing, and PDF/Office parsing need zero browser. If you pass --render auto or --render always, vitna-local auto-detects any existing Chrome, Edge, or Chromium binary on your machine and manages a shared multi-tab incognito CDP pool.
Digital PDFs (plus DOCX, XLSX, and PPTX) extract natively in Rust with lopdf 0.47 and zip 9.9. If a PDF contains scanned image-only pages with no embedded text layer, vitna-local reports pagesNeedingOcr so you know when to send it to hosted /v1/parse with ocr: "auto".
On Windows NTFS, creating 1,000 individual .md files in %TEMP% triggers Windows Defender real-time AV scanning (~3.5 ms per file for both binaries). Running compare.mjs --mode json isolates the crawler and HTML-to-Markdown engine from OS AV overhead, while Linux ext4 --mode out completes 1,000 full Markdown disk writes in 139.06 ms.
Change one base URL. Both the JavaScript and Python SDKs talk to http://127.0.0.1:8790 with zero API key during local development and switch to https://web.vitna.ai with a vitna_key_ or vitna_web_ bearer key when you need anti-bot unblocking, OCR, or hosted search.
Apache-2.0 · v0.2.1 · zero phone-home
Install in seconds from Homebrew or GitHub Releases, wire 6 offline MCP tools into your coding agent, and run the reproducible head-to-head benchmark yourself.
Inspect /docs/web/local.md, verify SHA256SUMS.txt, or read /llms.txt.