Show HN: Weavon, 99.93% Pandoc in 9.3 MB of Rust, 15-50x faster, PDF without TeX (opens external site)
Comments loaded (44)
4 comments are not loaded here. Read them 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.
4 comments are not loaded here. Read them 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)
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.
https://dvgyl.com/
Replies (2)
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 :)
Replies (1)
Replies (1)
Replies (1)
I stay alert for other really cool ones and this has got to be one of the best. It oozes personality.
Replies (2)
I've always wondered if they are a good marketing avenue for clients/job prospects or if they just end up being fun personal projects
Replies (1)
Because of that I cannot say yet how well it works for clients or job prospects, though seeing people bring it up out of nowhere in this thread makes me think a personal site with some character definitely sticks in people's minds.
Replies (1)
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.
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.
Replies (2)
Replies (1)
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.
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).
I feel like I rather stick with the OG, support the maintainer, and enjoy a bit of Haskell in the wild!
Replies (2)
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.
Replies (2)
IMO, two things you should do here:
1) preserve Pandoc's licence choice
2) preserve the Pandoc authors' credits in some meaningful form
Otherwise, ehhh. It's not a show of huge respect for John McFarlane, and I don't think people should have any respect for this at all. To me it's at the very least a kind of piracy of the moral right of authorship.
Replies (1)
Replies (3)
If your code of ethics doesn't cover this kind of thing, frankly I feel a little sorry for you.
(Putting that aside, I view this kind of sealion-barking grilling that you do with some distaste, and I won't respond further)
Ref: https://github.com/weavon/weavon/commit/689cfccdf0b4a84f1318...
EDIT: wait you don’t. Enabling the pandoc compat mode disables PDF output on your website.
How did you "build" this? AI translation, which should be safe Rust because Haskell is functional?
I'm looking forward to try it, keep up the good work!
Replies (1)
But man, the entire "How Weavon is built, and where it stops" section is such a Claude thing.
And, should be licensed GPL. Asking your LLM to not peek at pandoc code is ineffective.