Show HN: Weavon, 99.93% Pandoc in 9.3 MB of Rust, 15-50x faster, PDF without TeX (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (5)
Replies (1)
Replies (1)
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.
Replies (1)
Two things make trying it lower risk than a typical one off project. First, because Weavon implements Pandoc 3.13's CLI, formats, and Typst backend, it does not lock you into a proprietary format. If it ever stopped fitting your workflow, switching back to Pandoc is a single binary swap.
Second, I tried to build it so it can actually be maintained long term instead of being a throwaway prototype. The codebase is split into modular format crates with architecture docs and ADRs explaining the design, and every change runs through scripts/gate.sh against a 65,937-unit differential test harness comparing output to Pandoc 3.13. That makes fixing bugs and tracking future Pandoc releases repeatable rather than guesswork, and lowers the bar for outside contributors or packagers too.
My plan is to keep maintaining it, fix real-world issues people hit, track new Pandoc releases, and work toward a 1.0. Steady commits and releases over the next year are the only real proof of that, so watching from the sidelines until you see it stick is completely fair.
Replies (1)
Replies (1)
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.
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`.
In other words, they are different things.
Replies (1)
Both can read and write Typst as one of their formats.