Hacker News new | ask | show | jobs
Show HN: Weavon, 99.93% Pandoc in 9.3 MB of Rust, 15-50x faster, PDF without TeX (github.com)
6 points by deyvium 1 hour ago
Hi HN, I built Weavon, a drop-in Pandoc 3.13 replacement written in safe Rust.

Pandoc ships as a 195 MB binary, and producing PDFs usually requires installing gigabytes of TeX Live. Weavon is a single 9.3 MB stripped binary on macOS ARM64 with no runtime dependencies beyond libSystem. It supports all 52 Pandoc 3.13 input formats and 77 output formats, including Lua 5.4.8, LPeg, citeproc, and 194 syntax highlighting languages. Across 65,937 Pandoc 3.13 baseline tests, Weavon matches 65,891 units, or 99.93%, and the remaining 46 differ on purpose. On 1 MB benchmarks on Apple Silicon, it runs 15.3x to 49.7x faster than Pandoc 3.13 with 5.6x to 19.2x lower peak memory.

Beyond drop-in Pandoc mode, v0.2.0 includes a pure-Rust embedded PDF engine with Unicode font subsetting, TeX math, SVG rendering, and PDF/A and PDF/UA tags so you don't need TeX Live. It also adds lossless DOCX and PPTX round-trips, sandboxed WebAssembly filters, built-in LSP and MCP servers, live preview, a git diff driver for Office and PDF files, and Python and Node bindings.

You can test it locally in your browser at https://weavon.org/playground or install the CLI with `curl -fsSL https://weavon.org/install.sh | sh`. Benchmarks and docs are at https://weavon.org.

1 comments

I know that latex is super slow and annoying. For a while now there is typst: https://typst.app Which is basically a faster version of latex with an easier syntax. Is your approach faster/more convenient than typst?
There is also Tectonic which is pretty fast and comes as a single binary served that will create your LaTeX documents
Yea same I'd like the OP to answer how it compares to typst.