82 points deyvium 2 hours ago 29 comments
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.
kleinicke 1 hour ago | parent
AIShill101 1 hour ago | parent
deyvium 1 hour ago | parent
bscphil 15 minutes ago | parent
Can I ask though, do you have a long term plan for keeping this project maintained? It's gotten way to easy too vibecode something that does everything you want, and then leave it languishing on Github in a couple of months after it loses its shine. I want software I know I can depend on... something I might expect to see in the Debian repos in 4-5 years, for example.
vablings 1 hour ago | parent
deyvium 1 hour ago | parent
The main difference with `--pdf-engine=embedded` is that it runs offline with no TeX bundle downloads and no subprocesses. That lets the same 9.3 MB binary write PDFs inside air-gapped CI, `--sandbox` mode, Python and Node bindings, and WebAssembly in the browser. If a document relies on raw LaTeX packages or custom TeX macros, `--pdf-engine=tectonic` or `lualatex` is still the right choice.
deyvium 1 hour ago | parent
Typst is a typesetting language and layout engine. If you are writing a paper or book with custom page layout from scratch, Typst gives you far more typographic control than Weavon's embedded PDF writer.
Weavon is a drop in Pandoc 3.13 replacement for converting all the input and output formats that Pandoc supports like Markdown, DOCX, HTML, EPUB, LaTeX, and Typst. I added `--pdf-engine=embedded` so Markdown and Pandoc pipelines can write PDFs from one 9.3 MB binary with no external tools, including inside containers, sandboxes, Python, Node, or WebAssembly in the browser.
I have not benchmarked `--pdf-engine=embedded` against Typst yet. But the difference would be the scope and the setup. Use Typst when you want a full modern typesetter, use `--pdf-engine=embedded` when you want zero dependency PDF output from Markdown or Pandoc, or combine them because Weavon reads and writes Typst and supports `--pdf-engine=typst`.
jwr 1 hour ago | parent
In other words, they are different things.
deyvium 53 minutes ago | parent
itishappy 47 minutes ago | parent
Both can read and write Typst as one of their formats.
loufe 1 hour ago | parent
seer 1 hour ago | parent
Dev if you are reading this thank you I now have one more reason to do a similar personal project!
And if you ever encounter bulgarians in the wild - sorry your surname does sound like a swear word in bulgarian :)
deyvium 54 minutes ago | parent
lukethorham 46 minutes ago | parent
deyvium 44 minutes ago | parent
sheesdev 28 minutes ago | parent
I stay alert for other really cool ones and this has got to be one of the best. It oozes personality.
up2isomorphism 1 hour ago | parent
thangalin 19 minutes ago | parent
https://repo.autonoma.ca/repo/keenwrite
https://keenwrite.com/docs/user-manual.pdf
Funny enough, I've been thinking about porting to rust to get a native Windows binary, and other speed improvements.
cobbal 1 hour ago | parent
genxy 1 hour ago | parent
This is a shitty laundering of GPL code into Apache+MIT. The right thing to do here would be to license Weavon identically to Pandoc.
riedel 59 minutes ago | parent
deyvium 56 minutes ago | parent
I did not pick MIT or Apache 2.0 to make a point against GPL or free software. I hear the ethical concern around AI assisted permissive rewrites of GPL projects, and as I mentioned elsewhere in the thread, I will replace the clean room wording in the README so it describes how I built it.
paaloeye 28 minutes ago | parent
Since it's a _clean-room_ rewrite in Rust, I expect Windows support because it's one of the most appealing reasons to use Rust in the first place (looking at your uutils/coreutils).
hmokiguess 27 minutes ago | parent
I feel like I rather stick with the OG, support the maintainer, and enjoy a bit of Haskell in the wild!
deyvium 24 minutes ago | parent
Weavon is mainly for cases where someone needs a small binary, faster batch runs, in process embedding in Rust, Python, Node, or Wasm, or zero-dependency PDF output.
paaloeye 16 minutes ago | parent
Ref: https://github.com/weavon/weavon/commit/689cfccdf0b4a84f1318...