Weavon, a Rust drop-in for Pandoc 3.13, matches 99.93% of tests in 9.26 MB

Weavon is an open-source document converter written in Rust, published on GitHub (README for release v0.2.0). It reads Markdown, HTML, Word, LaTeX and other formats, and it is built to stand in for Pandoc 3.13. Run under the name pandoc, it switches to a compatibility mode that behaves as Pandoc 3.13, so existing scripts and filters keep working. The project says it matches 65,891 of 65,937 baseline test units (99.93%); the remaining 46 are covered by a published list of known differences. A unit counts as equal only when its output, its warnings and its exit code all equal those of Pandoc. Weavon is described as an independent project under the MIT or Apache 2.0 licence.
The size is part of the pitch. The stripped ARM64 dist binary is 9,256,784 bytes (9.26 MB, 8.83 MiB), which is 120,736 bytes smaller than the v0.1.0 binary in the same comparison. On macOS it links only to /usr/lib/libSystem.B.dylib. Benchmarks report median wall time in milliseconds on Apple Silicon ARM64 with macOS; text workloads use 1 MB inputs and the docx-json workload uses a 106 KB compressed DOCX corpus. The benchmark tables are linked from the README rather than reproduced in it, so the "15-50x faster" figure in the Hacker News title is not backed by numbers in the README text.
Installing is a one-liner on macOS and Linux (a curl script that puts weavon in ~/.local/bin) or a PowerShell script on Windows. Adding --as-pandoc also links pandoc to Weavon. The installers check the SHA-256 checksum of the downloaded prebuilt program before installing it. Prebuilt programs exist for macOS (arm64 and x86_64), Linux (x86_64 and arm64) and Windows (x86_64). Other routes are Homebrew, Scoop, cargo binstall, cargo install, a GitHub Actions step (with as-pandoc: true, existing Pandoc, Quarto and Make steps use Weavon unchanged) and a container image, ghcr.io/weavon/weavon, which has no shell and no TeX yet still writes PDF. A source build needs Rust 1.99 or later and a C compiler. weavon setup --as-pandoc turns on drop-in mode after a Homebrew, Scoop or Cargo install by creating a pandoc link to weavon; an unrelated pandoc stays in place unless --force is added.
The two modes work like this. Under the name pandoc, Weavon runs in compat mode: the first line of pandoc --version reads pandoc 3.13, the second names Weavon, it reads no configuration file and makes no network request that Pandoc does not make. Under any other name, --compat=pandoc-3.13 turns the same mode on. Run as weavon, it is in native mode, which accepts the same command line and adds extra workflows; native features are off in compat mode, and native-only extensions carry the prefix x_.
Compatibility with Pandoc 3.13 features covers Lua 5.4 filters, custom readers and writers (with LPeg 1.1.0), JSON filters, citations through --citeproc with CSL 1.0.2 styles and a bundled default style, PDF output through the 15 engines of --pdf-engine, and a server mode compatible with pandoc-server. Syntax highlighting covers all 194 Pandoc 3.13 built-in languages, using 62 KDE language definitions (plus the shared Alerts helper) and 132 Rust definitions written for Weavon, with 0 differences across 13,986 replay cases.
The native additions are the main draw. --pdf-engine=embedded writes PDF with a Rust engine that renders text, math and SVG without TeX, embeds font subsets and writes PDF tags. Native same-format conversions keep the original Word and PowerPoint package parts, so unchanged documents can make a lossless round trip. Sandboxed WebAssembly filters run with --filter FILE.wasm, accepting Weavon reactor modules and WASI Preview 1 command modules. PyO3 and Node-API bindings expose document trees to Python and Node.js. Further commands include weavon mcp (Model Context Protocol), weavon lsp (editor diagnostics), weavon preview (live preview), weavon extract, weavon redact (removes selected sensitive data) and weavon git-setup (Git text diffs). A project file can build a book for PDF, EPUB, DOCX and HTML, with tables from CSV, TSV, Excel or JSON and templates (book, paper, resume, slides, invoice, report) via weavon init --template.
Other native features: a weavon.yaml found in the input folder or a parent, with named profiles (--profile NAME) and --print-config to show each value and its origin; keys that run programs or write files apply only from a trusted file (--trust-config). weavon build and --output-dir convert many files in parallel (-j N), and weavon watch reconverts on change. For LLM and RAG work, --main-content keeps only the main article of an HTML page, --clean strips raw HTML and wrappers, -t llm-markdown applies these in one step, weavon chunk writes JSON Lines chunks with heading breadcrumbs and token estimates, and --emit-llms-txt writes llms.txt and llms-full.txt for a batch. weavon diff OLD NEW compares documents block by block and word by word and can write Word tracked changes, CriticMarkup, HTML with ins and del, Markdown or JSON. -f obsidian turns on callouts, alerts, embeds, block references and tags, and five writers produce static site Markdown (docusaurus-mdx, mkdocs-md, hugo-md, starlight-md, myst-md). x_crossref numbers figures, tables, equations, listings and sections, and x_diagrams draws Mermaid flowcharts and sequence diagrams, Graphviz DOT and D2 as SVG in pure Rust.
Integrations listed include a VS Code extension, a Neovim plugin, pre-commit hooks (weavon-lint, weavon-fmt, weavon-fmt-write), Python (pip install weavon, with a compat import for pypandoc), Node.js 22 or later (npm install weavon, with a Vite plugin and a bundled WebAssembly module), a browser WebAssembly build, and Quarto, R Markdown and Make, which find the drop-in pandoc link.
Key facts
- Weavon runs as pandoc in a Pandoc 3.13 compatibility mode and matches 65,891 of 65,937 baseline test units (99.93%); a unit is equal only if output, warnings and exit code all match Pandoc.
- The stripped ARM64 dist binary is 9,256,784 bytes (9.26 MB), 120,736 bytes smaller than v0.1.0; it is licensed MIT or Apache 2.0.
- --pdf-engine=embedded writes PDF from a built-in Rust engine (text, math, SVG) with no TeX installation, including in a shell-less, TeX-less container image.
- Native mode adds sandboxed WebAssembly filters, weavon diff with Word tracked changes, LLM and RAG ingestion tools (weavon chunk, llms.txt output), and an MCP server.
- Benchmarks (median wall time, Apple Silicon ARM64, macOS) are linked rather than shown in the README, so the "15-50x faster" claim in the HN title is not backed by figures in the README text.
Why it matters
Pandoc is the standard tool that scripts, build systems and publishing pipelines call to convert documents. Weavon aims to be a swap-in for it: one binary of 9.26 MB, a pandoc link, and the same Pandoc 3.13 behaviour, with output, warnings and exit codes compared against the original. The pitch goes beyond compatibility. A PDF engine in Rust that needs no TeX removes one of the heaviest dependencies in typical Pandoc setups, and the native mode adds tooling for LLM and RAG ingestion, Word redlines and Model Context Protocol access.
Who it affects
People who already run Pandoc in scripts, filters, GitHub Actions, Quarto, R Markdown or Make, and who want a smaller or faster install or PDF output without TeX. Docs and static-site teams (Docusaurus, MkDocs, Hugo, Starlight, MyST writers), Obsidian users, developers building RAG pipelines, and people who compare Word contracts through tracked changes are also named by the README. Python and Node.js developers can use the bindings and typed AST for filters in their own language.
How to use it
On macOS or Linux: curl -fsSL https://weavon.org/install.sh | sh, adding -s -- --as-pandoc to make pandoc point to Weavon. On Windows, run the PowerShell installer (irm https://weavon.org/install.ps1 | iex). Alternatives are brew install weavon/tap/weavon, Scoop from the Weavon bucket, cargo binstall or cargo install, a GitHub Actions step (uses: weavon/weavon@v0.2.0 with as-pandoc: true), or the ghcr.io/weavon/weavon container. After a package-manager install, weavon setup --as-pandoc creates the link. Typical commands: weavon notes.md -o notes.html, weavon notes.md -o notes.pdf --pdf-engine=embedded, weavon init to write a starter weavon.yaml with the profiles web, pdf and llm, weavon build docs/ --output-dir site/ --profile web, and weavon diff contract-v1.docx contract-v2.docx -o redline.docx. The project is under the MIT or Apache 2.0 licence. A source build needs Rust 1.99 or later and a C compiler.
How solid is it
The README is the project's own account. The 99.93% figure is a conformance rate from the project's own baseline of 65,937 test units for v0.2.0, with 46 units differing and a known-differences list linked. Syntax highlighting is reported as 0 differences across 13,986 replay cases. Benchmarks use median wall time on Apple Silicon ARM64 with macOS only, with tables linked rather than shown, so the "15-50x faster" claim in the HN title is not supported by the README text. No authors, maintainers or organisation behind Weavon are named, and no independent verification of the conformance or speed claims is mentioned. No release date is given for v0.2.0.
Risks and caveats
Drop-in means Pandoc 3.13 only: the README says Weavon is compared with that version, and 46 baseline units still differ. Native features are off in compat mode, so scripts relying on them must run under the weavon name. Benchmark timings are stated only for Apple Silicon ARM64 on macOS; no Linux or Windows timings or memory figures appear in the README text. Installing with --as-pandoc replaces what the pandoc command runs, and the curl-to-shell installer is a trust decision, though the installers check a SHA-256 checksum of the prebuilt program. Keys in weavon.yaml that run programs or write files apply only from a trusted file (--trust-config).
“Weavon is an independent project under the MIT or Apache 2.0 licence.”
— Weavon project README