Completely besides the point, but, man, the author's personal website is one of the coolest personal website's I've ever seen. This sort of thing can be tacky, but the implementation is clean and performant. Check the "full site" button if curious.
Thank you for sharing this, I think in this world of achievements and goals we often neglect these little bits of personal expression, how many devs have millions of tokens at their disposal every day, but chose to use them on building tooling or just working for the man, where something like this is technically easy to do, but requires artistic creativity and just taste and vision.
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 :)
Reading this made my day, thank you. If it pushes you to build your own personal project, that is even better than the Show HN itself. And thanks for the warning about Bulgaria, I will keep that in mind if I ever visit :)
I think it’s not just Chile but much of the Spanish speaking world? I believe in Mexico it means brave (ballsy) and other countries south of the US it means lazy?
Between my surname in Bulgaria and Weavon in Chile, my international naming luck is off to a great start. At least in Chile it can mean dude depending on the tone so I will take that as a win.
Wow it really is amazing. It's very clean. I'm a big fan of portfolios and I spent a little over 2 years myself on mine. (https://shees.dev) (I even consider mine, albeit egotistically, one of the better ones).
I stay alert for other really cool ones and this has got to be one of the best. It oozes personality.
I am not looking for jobs or client work right now, so I have not really tested it that way. I mostly built the site for fun and only ever link it on things like grant applications.
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.
It definitely seems like a huge challenge to the GPL that people can do this.
It will raise some significant questions eventually I think. GPL seems to have been successful in an empirical sense in that a lot of GPL projects exist and are highly used. Did that happen because of the GPL? If we believe that, are we losing something valuable by obviating it?
To the extent that all GPL facilitated was protection of the intellectual effort in writing code, you can argue that we aren't losing anything fundamental because LLM's do that now. But was GPL protecting more than just the code effort? If it was, does re-implementation mean we are losing that? Is it the community around it? The actual intellectual ideas that were protected by a shield of code but now are so trivially re-implementable? We've seen significant projects that survived via dual licensing, allowing commercial entities to support commercial users while releasing GPL code into the community. Is this dead now? Does it matter? Does it mean we'll have a world full of unsupported vibe coded projects but no way at all for anybody to make money supporting software?
I am very curious to see how things evolve. I hope as a community software engineers can be kind to each other along the way.
> To the extent that all GPL facilitated was protection of the intellectual effort in writing code, you can argue that we aren't losing anything fundamental because LLM's do that now. But was GPL protecting more than just the code effort?
Correct me if I’m wrong, but it was never about protecting code effort or anything like that. It’s protecting the freedom of the individual to have control over their computing. The license is just a means to that end in a corporate IP world.
I don’t release A/GPL code because I want to protect my effort, I do it because I want my end users to have control over their software, regardless of who distributes it.
As the effort and cost of coding and testing goes to zero, the value of everything else will get relatively more valuable.
There will be a mountain of vibe coded repositories, but only a few will have an active steward, conceptual integrity, constant updates, and a community around. Network effects will still apply.
And maybe, we should start paying more attention to documenting and copyrighting/copylefting higher-level concepts, not particular implementations.
These are all really great questions. You don’t see a whole lot of people who are confident enough to just display their curiosity without making a judgment. It’s admirable.
Corporations do that now. You could delegate to a corporation before: you don't need a free pdf viewer, because Adobe does Acrobat for you, and you don't need a free text editor, because Microsoft does Office 356 for you, remote first. Isn't that cool? What can possibly go wrong?
Not necessarily, considering how big a pile of crap Adobe Acrobat is.. One talented Polish guy wrote SumatraPDF, many years ago long before LLMs, which runs circles around the "official" viewer in everything but name recognition.
Mixed feelings here, I think a faster pandoc in rust is probably a good idea but the pandoc author is such an incredible contributor and pandoc is maybe one of the few really amazing Haskell repos out there.
I feel like I rather stick with the OG, support the maintainer, and enjoy a bit of Haskell in the wild!
Agreed, it's not about whether a new project popping up is technically superior e.g. faster, more efficient, safer. It's also about the community behind it, the history of the project, the cumulative knowledge and spirit. Something a vibe coded clone will rarely get.
It’s different things to different people. For me as a user of software, it usually is solely about the functionality. I mean I’m happy if you have a fun club and enjoy implementing the software but I am not going to accept worse software so you can continue to do that. You can implement whatever you want and hang out with whoever you want but that does not entitle you to an audience for your work.
Just be aware that most typical vibe coded rewrites are likely to be abandoned at some point, and then your sole requirement about functionality will suffer.
Well that's certainly the case today. Functionality to me does encompass reliability and a notion of forward support. I suspect almost all prospective software users feel this way. It will be interesting to see how this evolves over the next years. How will the best vibe-coded software be supported compared to legacy software?
Totally fair, and I have huge respect for John MacFarlane. Pandoc and its companion libraries are an incredible piece of work, and sticking with the original when it already works for you makes sense.
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.
Given that your pandoc clone was built with LLMs which were trained on pandoc, your work is by any ethical definition a derivative of pandoc. You really ought to respect pandoc's license terms.
But that's the thing. LLMs by their very nature encourage ignoring other people. It's all about the individual. What I can do. What benefits me. That's LLMs in a nutshell.
Is it not ethically dubious to you that you've automatically rewritten a GPL app based inevitably on someone's extraordinary efforts and you're going to distribute it in ways that disrespect those efforts?
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.
OSS software has been reimplementing proprietary software for decades. Does this disrespect the moral right of authorship?
Should Wine, Samba, ReactOS, and FreeDOS morally belong to Microsoft, and respect its license terms?
OSS hackers fought for years for the right to make new software that interoperates with existing ecosystems. Personally, I think that is an important right, and that people should be able to license their interoperating implementations on their own terms.
> OSS software has been reimplementing proprietary software for decades. Does this disrespect the moral right of authorship?
Clean-room re-implementation of the specs, of a commercial application, for interoperability, with considerable human effort behind that re-implementation, is a considerably greater mark of respect than getting an LLM to slop-regenerate someone's existing open source app and relicense it, especially when the app in question is surely directly in the LLM's training set.
There's an obvious change in degree here, and I find it puzzling that people don't see it.
I'm pretty sure BSD was the polar opposite of clean room; do you think they should have lost UNIX System Laboratories, Inc. v. Berkeley Software Design, Inc.?
Commercial application means people's livelihoods depend on it, and I don't think it implies any less pride of authorship (I'm proud of the code and designs I've produced working both for companies and for OSS).
I came of age during this era of OSS reimplementations, and I can't remember anyone making the argument that the effort involved is what justified it. If Andrew Tridgell had found a way to make his network analyzer spit out precisely the right code so that all of Samba could be developed in a day, nobody would have said "oh, that was too easy, Microsoft should own it now."
I personally applaud the author of Weavon for finding a way to make a radically more efficient version of Pandoc. I doubt this accomplishment would have been possible with a prompt like "Reimplement Pandoc in Rust, make no mistakes." It takes creativity, ingenuity, and design insight to achieve such a result, even with an LLM. If the original authors feel that it's inappropriately derivative, they can point to the specific code they feel was copied without authorization.
No, there isn't, since almost nothing you wrote is actually definitively provable with today's LLMs. If I give you a function from an LLM-generated code base, you cannot definitively prove that it came from a GPL'd work.
Samba (and probably all others as well) was true reverse engineering of the protocol/behavior and definitely clean room.
This one is by a clanker that has been trained on Pandoc. It is not clean room.
It is different to take from Bell Labs or Microsoft than from a small project. It is different to interoperate with Windows that was forced on almost all PCs.
In this case it's very easy: Keep the original license and don't launder/steal.
FOSS licenses are becoming irrelevant. AI can rewrite any code base without using snippets at all. And it seems evident that no copyright can be claimed, because no human creativity was creating the new code. Just an idea and some prompting will probably not enough, legally spoken. So any AI-vibed clone should be public domain, and forget about the GPL.
It's not something I wished to come, but I fear we must face reality. Concerning your second point, fully agree. At least some credit for the original author is a minimum we could ask for from a human perspective.
And here we get to the funniest curveball: releasing to public domain you speak of is an Americanism, that may or may not have an equivalent in other legal systems. We're absolutely not ready as a society to deal with this problem.
As of now, all the AI-models and their impact on the world at large are opinionated and not neutral. The creators of such models determine the game we have to play now. And this is in the hand of a bunch of questionable US-American billionaires. So yes, I agree, we are getting to the core of this whole transition. But it still takes a while until all are awake and start thinking. If it's not too late anyhow.
I said what I said. I consider it a kind of piracy of the moral right of authorship. It is ethically questionable to me to simply clone someone's life's work entirely and yet lop off any sense of preserving the ethical choices that went into the creation of that work and its distribution.
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)
I have already explained the MIT and Apache-2.0 choice elsewhere in the thread, and I understand why you disagree with it.
On credits, you make a fair point. All of John MacFarlane's copyright notices for the BSD companion libraries and default templates were already preserved in third_party/licences/ and listed in https://github.com/weavon/weavon/blob/main/THIRD_PARTY_NOTIC..., but the main README did not credit John MacFarlane and the Pandoc contributors directly. I just added an Acknowledgements section to the README at https://github.com/weavon/weavon#acknowledgements.
Agreed. Re-implementing Adobe products to stick-it-to-the-man is cool, not least because Adobe is one of the most despicable (and hated) companies in existence.
Re-implementing Pandoc is... sad? This is just one more vibe coded project that will probably never be maintained and just harms the original project and author.
Because these vibe coders are just like clickbait YouTubers. They just want attention for themselves, to stand out. On YouTube it's common for some people to simply clone the videos of others and add something small to get ahead. It's sickening.
While really impressive, useful, and fast, I wonder why you chose to remove GPL. Pandoc works IMHO perfectly in many systems because linking is hardly needed. I personally find "clean-room" rewrites of GPLed software ethically borderline—it basically shows the non-enforceability of software licenses in the age of LLMs. Still, making this point often seems plainly unnecessary to me, at least if one believes a tiny bit in the ideals of free software.
I’m starting to not really see the point in dynamic linking any more. Statically linked things are significantly less of a headache. You don’t need system specific binaries, you don’t need to worrying about dependencies as much. It’s unlikely you need to care about saving that much space, either.
Am I missing something? Other than it feeling weirdly individualistic and non communal as an approach…
The whole point is that you can upgrade a single tls stack lib on the OS level and have it work with all apps installed instead of having to rebuild and redistribute new versions for each app. And probably also for multiple maintained versions of said app.
For standalone CLI use, you are right that GPL rarely gets in the way. I chose MIT or Apache 2.0 because I built much of Weavon for in process embedding where shelling out to a subprocess is slow or impossible, including Rust crates, native Python and Node bindings, a C ABI, and WebAssembly in browser apps. That also matches the Rust ecosystem and the BSD and MIT licences on Pandoc's own companion libraries like pandoc-types, doclayout, doctemplates, commonmark-hs, and citeproc.
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.
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?
FWIW, I've been using a pipeline where pandoc is used to convert markdown and typst is the rendering engine. Very happy with this solution so far. I get beautifully formatted PDFs for all my work (mostly software design files).
Markdown to Typst setup is hard to beat for design docs. If you ever try swapping Pandoc for Weavon in that pipeline with --pdf-engine=typst, open an issue if anything breaks.
Tectonic is a nice middle ground when you need full LaTeX packages without installing all of TeX Live, and Weavon supports `--pdf-engine=tectonic` out of the box.
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.
Just answered in more detail above. The short version is that Typst is a full typesetting language while Weavon is a 52 format Pandoc replacement with a built in zero dependency PDF writer. There is Typst support available in Weavon. They work very well together because Weavon reads and writes Typst and supports `--pdf-engine=typst`.
I've been using Pandoc to convert my markdown documents to readable PDFs for years now, with Typst as the backend, so I will definitely be checking this out.
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.
That is a fair question to ask, and honestly no solo developer can prove 4 to 5 year longevity on launch day. Anyone promising Debian stability on day one is just guessing.
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.
Addressing the project's author — thank you for responding to comments here thoughtfully, and taking the criticism well. That, and seeing your personal site, gives me more hope in the project because it signals that you have taste
Typst and Weavon solve different problems, and they pair very well together. And there is Typst support in Weavon.
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 practice, the repository contains no Pandoc Haskell source code and no Pandoc test files, and project rules forbid reading Pandoc's Haskell source. Behavior is developed against the Pandoc manual, documented interfaces, and Pandoc 3.13 run as a black-box test oracle. ... GPL-licensed Pandoc assets, such as reference Office documents and shell completion scripts, are excluded.
I'm curious how a lawyer would view the licensing for the Pandoc manual and API docs. There's no separate docs license mentioned in the repo but the end of the manual explicitly cites GPLv2. The API docs appear to be generated from code and therefore could arguably be a derivative work. Both contain code snippets and examples that are as relevant as any of the reference Office docs or scripts.
It feels like an edge case, and I'm not a lawyer, but using a derivative work to generate a derivative work feels like a trap. Not a Pandoc-specific concern, a lot of vibecoded reproductions are in a similar boat, but it feels like someone will figure this out the hard way sooner than later.
> In practice, the repository contains no Pandoc Haskell source code and no Pandoc test files, and project rules forbid reading Pandoc's Haskell source
How to prove Claude never read the Pandoc code? Or do these rules only count for the wielder of the harness?
How do you even do it without actual TeXLive? Pandoc’s flavor of markdown allows embedding arbitrary TeX code. Would appreciate that you explain the software implementation a bit more.
EDIT: wait you don’t. Enabling the pandoc compat mode disables PDF output on your website.
The short answer is that --pdf-engine=embedded does not try to reimplement TeX Live or arbitrary TeX macros. If a Markdown document depends on arbitrary LaTeX packages like TikZ or custom macro packages, you still pass --pdf-engine=lualatex, pdflatex, xelatex, typst, or any of the other 15 external engines, just like Pandoc.
When you opt into --pdf-engine=embedded, Weavon skips generating .tex completely and lays out the Pandoc AST directly into PDF 1.7 in pure Rust inside crates/weavon-pdf/src/embedded/. The layout pass paginates headings, paragraphs, tables, footnotes, callouts, and two column layouts straight into zlib-compressed content streams. It embeds TrueType subsets as CID fonts with Unicode maps, using bundled Croscore Arimo and Cousine by default alongside optional font packs or custom fonts. It also converts SVGs directly into PDF vector form XObjects and writes structure trees and metadata for PDF/UA-1 and PDF/A-2u.
For TeX math, weavon-math parses each formula and lays it out against the actual glyph metrics of the embedded fonts, then draws positioned glyphs, rules, and vector paths in crates/weavon-pdf/src/embedded/math.rs.
For embedded raw LaTeX inside Markdown, crates/weavon-pdf/src/embedded/latex_boundary.rs acts as an explicit boundary scanner. It handles the common commands people put in Pandoc Markdown natively, including \newpage, \clearpage, \pagebreak, \vspace, \bigskip, \noindent, \hfill, line breaks, \textbf, \emph, \textit, \texttt, geometry options, and bounded \newcommand expansion inside math.
When it hits raw LaTeX outside that subset, --pdf-fallback controls what happens. The default mode, --pdf-fallback=off, skips the unsupported block and emits a W_PDF_UNSUPPORTED_RAW_LATEX warning. With --pdf-fallback=fragment, Weavon compiles just that raw block as a standalone fragment using lualatex, xelatex, or pdflatex and imports the resulting page as a vector form XObject via page_import.rs. With --pdf-fallback=document, it returns E_PDF_FALLBACK_DOCUMENT so a caller or build script can route the whole file to an external TeX engine instead.
> When you opt into --pdf-engine=embedded, Weavon skips generating .tex completely and lays out the Pandoc AST directly into PDF 1.7 in pure Rust inside crates/weavon-pdf/src/embedded/.
Wouldn't it have been easier to implement this for Pandoc? Without having to clone Pandoc around it?
Appreciate the honesty here. But then again if I’m using LaTeX I’m almost always relying on its superior typography (line-breaking algorithms, microtype etc). I won’t use your project for PDF output but I would try your project next time I need to convert markdown to HTML.
This looks really handy, and I would love to see Weavon wired into clview. Whether you call the single binary or embed it as a library, open an issue on GitHub if you run into any rough edges, or let me know if you want a hand with a PR.
I used subscriptions, so I didn't pay 1000s in API costs. I didn't document the token usage for this project but I did run the numbers for a similar rewrite that I did for CMake. Here is the full thing:
https://dvgyl.com/logbook/making-wefti
Edit: you might have to navigate the site because I think that it is redirecting to the home page. Try to go to Full Site>Logbook>Making Wefti
Hm… I’m working on something in this space but am taking an approach that build on and work with the pandoc ecosystem, and is more modular and respecting the original license. I don’t have the final products yet, but if some of you are interested:
Porting pandoc-type to python, rust, Julia, and TS: https://github.com/ickc/panir
This is what process pandoc JSON AST and let you write pandoc filters for example.
libpandoc: https://github.com/ickc/libpandoc
A C library for calling pandoc, from which I built the same 4 language variants such as libpandoc-py, etc., so that basically if you build something with a host language such as Python and want pandoc, you don’t need to use subprocess. Command line program are built as pandocpy, etc. that would be a drop in replacement of pandoc with some augmented features. Eg support wasm filters for security isolations.
And I also have a parser, private at the moment, with markdown reader/writer and html writer only, unlike this project. This is intended to be use in a text editor and would leave other pandoc functionality such as other formats, or citeproc, texmath, etc handled by pandoc. (Speed up in a similar ballpark but my concern is primarily keeping it O(N) and its use with a text editor such as source position.) Because I believe we need the core pandoc and its ecosystem to be thriving and continued to be designed by people who have taste as good as jgm, as believe it or not pandoc is still not a done product: it has steadily been improved over the years.
And I’m also developing a pandoc text editor that would be putting the above ideas together, and designed to be secure oriented (wasm filter and running pandoc in wasm are some of the ways to contain filters in sandbox and limit their blast radius.) This is a personal passion that I want Pandoc to be used everywhere, and the pandoc filter ecosystem to be useful in collaborative settings similar to texlive, unlike the current situation that you need to somehow obtain filters and put it somewhere.
And that’s why I’m also starting pandoc-forge, leveraging the conda ecosystem to distribute environments with pandoc and filters that’s guaranteed to be consistent (eg by version constraining the pandoc ast version as well.): https://github.com/pandoc-forge
Note that all these are still alpha, some are still private. Agentic engineering is heavily used. And I’m taking slow but steady progress primarily limited by token budget.
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).
And fair point on the clean room wording. Based on feedback in this thread, I just updated the README to drop that label and describe the AI assisted process.
Fair question, and the honest answer is that nobody can match Pandoc's two decade track record on launch day and I get why you would be skeptical.
My plan is to keep maintaining it, fix real issues people hit, and track new Pandoc releases. In the meantime, trying it is low risk because it is a drop in Pandoc 3.13 CLI with no format lock in, and every change runs through a 65,937 unit differential test suite against Pandoc so keeping it working is repeatable rather than guesswork.
Thank you. Skipping a multi gigabyte TeX Live install just to get a clean PDF from Markdown was one of my main reasons for building --pdf-engine=embedded. Open an issue on GitHub if you hit any edge cases when you try it.
No, `--pdf-engine=embedded` uses a single pass greedy line wrap based on Unicode UAX #14 break opportunities, shaped glyph widths, and bidi reordering in `crates/weavon-pdf/src/embedded/layout.rs`. It does not do Knuth Plass paragraph optimization or hyphenation. If you want Knuth-Plass line breaking and book grade typography, `--pdf-engine=lualatex`, tectonic, or typst is still the right tool.
it seems a lot of the reply comments by OP are [dead] and AIUI that's from them tripping a "posted an AI response" filter, but https://news.ycombinator.com/item?id=50763805 and https://news.ycombinator.com/item?id=50765827 make me wonder if the heuristic, I dunno, like adds up a score on the account or something? Or maybe I just have a failure of imagination for the circumstances where one would "@claude post a reply on HN for me"
I also just realized citing those links won't help if show-dead is off but I felt it helpful to cite specifics
I've been developing https://keenwrite.com/ for about 15 years. I used AI to fix several bugs that annoyed me for a few years. And AI added a citations feature that would have been arduous to implement. By and large, KeenWrite aims to be compatible with pandoc Markdown and can do most of what Weavon can do plus interpolated variables. My application invokes ConTeXt instead of LaTeX to typeset.
Can you really call something a clean-room implementation if it was written by ( I assume, website looks like something claude would spit out) a model trained on pandoc's source code? Automated GPL-washing leaves a bad taste in my mouth.
That is fair. I used AI coding tools heavily to build this, so questioning whether LLM assisted work counts as clean room when models train on GPL repos makes sense. I will reword that section of the README to describe the actual process instead of calling it "clean room".
What I enforced in practice was keeping Pandoc's Haskell source and test suite out of the repo and testing against the Pandoc 3.13 binary as a black box oracle. Everything reused from Pandoc's ecosystem comes from packages already under BSD or MIT, including pandoc-types, doclayout, doctemplates, commonmark-hs, citeproc, tagsoup, hslua, and Pandoc's BSD-3-Clause default templates. I listed every item in https://github.com/weavon/weavon/blob/main/THIRD_PARTY_NOTIC... and left out GPL assets like Pandoc's reference Office files and shell completions.
All the source and notices are public, so anyone can inspect the code and judge it for themselves.
These Rust rewrites of proven software are getting old. Not only the GPL license is typically abandoned, but these projects tend to be one off LLM efforts that will see little to no maintenance in the future.
Why are you emphasising "safe rust"?! Pandoc is written in Haskell not C. There's nothing to make safer here. For all we know you might have made it less safe.
Yes, it embeds Lua 5.4 and LPeg 1.1.0, so `--lua-filter`, custom Lua readers (`-f FILE.lua`), custom Lua writers (`-t FILE.lua`), and `weavon lua` all work, along with JSON filters via `--filter`.
On the licensing point, I already updated the README to drop the clean room wording and explained the MIT and Apache-2.0 choice elsewhere in the thread.
I answered the AI and clean room point in more detail elsewhere in this thread. I kept Pandoc's source and tests out of the repo, tested against the binary as a black box oracle, and reused only BSD and MIT libraries from the ecosystem, listed in https://github.com/weavon/weavon/blob/main/THIRD_PARTY_NOTIC... I chose MIT or Apache-2.0 because embedding Weavon as a Rust, Python, Node, and Wasm library was a main goal, though I understand why you disagree with that choice.
https://dvgyl.com/
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 :)
I could be totally off here…
huevon is still lazy also on mexico
I stay alert for other really cool ones and this has got to be one of the best. It oozes personality.
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
For me personally even if I did have a job already I would still make one since it's so fun.
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.
A web game with a volume control!
Astounding.
It will raise some significant questions eventually I think. GPL seems to have been successful in an empirical sense in that a lot of GPL projects exist and are highly used. Did that happen because of the GPL? If we believe that, are we losing something valuable by obviating it?
To the extent that all GPL facilitated was protection of the intellectual effort in writing code, you can argue that we aren't losing anything fundamental because LLM's do that now. But was GPL protecting more than just the code effort? If it was, does re-implementation mean we are losing that? Is it the community around it? The actual intellectual ideas that were protected by a shield of code but now are so trivially re-implementable? We've seen significant projects that survived via dual licensing, allowing commercial entities to support commercial users while releasing GPL code into the community. Is this dead now? Does it matter? Does it mean we'll have a world full of unsupported vibe coded projects but no way at all for anybody to make money supporting software?
I am very curious to see how things evolve. I hope as a community software engineers can be kind to each other along the way.
Correct me if I’m wrong, but it was never about protecting code effort or anything like that. It’s protecting the freedom of the individual to have control over their computing. The license is just a means to that end in a corporate IP world.
I don’t release A/GPL code because I want to protect my effort, I do it because I want my end users to have control over their software, regardless of who distributes it.
There will be a mountain of vibe coded repositories, but only a few will have an active steward, conceptual integrity, constant updates, and a community around. Network effects will still apply.
And maybe, we should start paying more attention to documenting and copyrighting/copylefting higher-level concepts, not particular implementations.
Corporations do that now. You could delegate to a corporation before: you don't need a free pdf viewer, because Adobe does Acrobat for you, and you don't need a free text editor, because Microsoft does Office 356 for you, remote first. Isn't that cool? What can possibly go wrong?
Or maybe in some future we’ll get copyright law that prevents LLM laundering.
I feel like I rather stick with the OG, support the maintainer, and enjoy a bit of Haskell in the wild!
Just be aware that most typical vibe coded rewrites are likely to be abandoned at some point, and then your sole requirement about functionality will suffer.
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.
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.
Should Wine, Samba, ReactOS, and FreeDOS morally belong to Microsoft, and respect its license terms?
OSS hackers fought for years for the right to make new software that interoperates with existing ecosystems. Personally, I think that is an important right, and that people should be able to license their interoperating implementations on their own terms.
Clean-room re-implementation of the specs, of a commercial application, for interoperability, with considerable human effort behind that re-implementation, is a considerably greater mark of respect than getting an LLM to slop-regenerate someone's existing open source app and relicense it, especially when the app in question is surely directly in the LLM's training set.
There's an obvious change in degree here, and I find it puzzling that people don't see it.
I came of age during this era of OSS reimplementations, and I can't remember anyone making the argument that the effort involved is what justified it. If Andrew Tridgell had found a way to make his network analyzer spit out precisely the right code so that all of Samba could be developed in a day, nobody would have said "oh, that was too easy, Microsoft should own it now."
I personally applaud the author of Weavon for finding a way to make a radically more efficient version of Pandoc. I doubt this accomplishment would have been possible with a prompt like "Reimplement Pandoc in Rust, make no mistakes." It takes creativity, ingenuity, and design insight to achieve such a result, even with an LLM. If the original authors feel that it's inappropriately derivative, they can point to the specific code they feel was copied without authorization.
I don't think that is what the author has done here.
This one is by a clanker that has been trained on Pandoc. It is not clean room.
It is different to take from Bell Labs or Microsoft than from a small project. It is different to interoperate with Windows that was forced on almost all PCs.
In this case it's very easy: Keep the original license and don't launder/steal.
It's not something I wished to come, but I fear we must face reality. Concerning your second point, fully agree. At least some credit for the original author is a minimum we could ask for from a human perspective.
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)
On credits, you make a fair point. All of John MacFarlane's copyright notices for the BSD companion libraries and default templates were already preserved in third_party/licences/ and listed in https://github.com/weavon/weavon/blob/main/THIRD_PARTY_NOTIC..., but the main README did not credit John MacFarlane and the Pandoc contributors directly. I just added an Acknowledgements section to the README at https://github.com/weavon/weavon#acknowledgements.
Re-implementing Pandoc is... sad? This is just one more vibe coded project that will probably never be maintained and just harms the original project and author.
Why not contribute to the original instead?
Because these vibe coders are just like clickbait YouTubers. They just want attention for themselves, to stand out. On YouTube it's common for some people to simply clone the videos of others and add something small to get ahead. It's sickening.
Am I missing something? Other than it feeling weirdly individualistic and non communal as an approach…
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.
In other words, they are different things.
Switching from Markdown to Typst is mostly switching out a few symbols.
Both can read and write Typst as one of their formats.
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.
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.
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.
Addressing the project's author — thank you for responding to comments here thoughtfully, and taking the criticism well. That, and seeing your personal site, gives me more hope in the project because it signals that you have taste
The comment was clearly uncalled for, as illright explained and as the "lol" in it makes clear.
And no intelligent and literate person thinks that the prior comment was actually written by Claude.
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`.
Ref: https://github.com/weavon/weavon/commit/689cfccdf0b4a84f1318...
689cfcc adds:
> In practice, the repository contains no Pandoc Haskell source code and no Pandoc test files, and project rules forbid reading Pandoc's Haskell source. Behavior is developed against the Pandoc manual, documented interfaces, and Pandoc 3.13 run as a black-box test oracle. ... GPL-licensed Pandoc assets, such as reference Office documents and shell completion scripts, are excluded.
I'm curious how a lawyer would view the licensing for the Pandoc manual and API docs. There's no separate docs license mentioned in the repo but the end of the manual explicitly cites GPLv2. The API docs appear to be generated from code and therefore could arguably be a derivative work. Both contain code snippets and examples that are as relevant as any of the reference Office docs or scripts.
It feels like an edge case, and I'm not a lawyer, but using a derivative work to generate a derivative work feels like a trap. Not a Pandoc-specific concern, a lot of vibecoded reproductions are in a similar boat, but it feels like someone will figure this out the hard way sooner than later.
https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_....
How to prove Claude never read the Pandoc code? Or do these rules only count for the wielder of the harness?
Also, how to prove Claude does not contain Pandoc in its training data?
EDIT: wait you don’t. Enabling the pandoc compat mode disables PDF output on your website.
When you opt into --pdf-engine=embedded, Weavon skips generating .tex completely and lays out the Pandoc AST directly into PDF 1.7 in pure Rust inside crates/weavon-pdf/src/embedded/. The layout pass paginates headings, paragraphs, tables, footnotes, callouts, and two column layouts straight into zlib-compressed content streams. It embeds TrueType subsets as CID fonts with Unicode maps, using bundled Croscore Arimo and Cousine by default alongside optional font packs or custom fonts. It also converts SVGs directly into PDF vector form XObjects and writes structure trees and metadata for PDF/UA-1 and PDF/A-2u.
For TeX math, weavon-math parses each formula and lays it out against the actual glyph metrics of the embedded fonts, then draws positioned glyphs, rules, and vector paths in crates/weavon-pdf/src/embedded/math.rs.
For embedded raw LaTeX inside Markdown, crates/weavon-pdf/src/embedded/latex_boundary.rs acts as an explicit boundary scanner. It handles the common commands people put in Pandoc Markdown natively, including \newpage, \clearpage, \pagebreak, \vspace, \bigskip, \noindent, \hfill, line breaks, \textbf, \emph, \textit, \texttt, geometry options, and bounded \newcommand expansion inside math.
When it hits raw LaTeX outside that subset, --pdf-fallback controls what happens. The default mode, --pdf-fallback=off, skips the unsupported block and emits a W_PDF_UNSUPPORTED_RAW_LATEX warning. With --pdf-fallback=fragment, Weavon compiles just that raw block as a standalone fragment using lualatex, xelatex, or pdflatex and imports the resulting page as a vector form XObject via page_import.rs. With --pdf-fallback=document, it returns E_PDF_FALLBACK_DOCUMENT so a caller or build script can route the whole file to an external TeX engine instead.
Wouldn't it have been easier to implement this for Pandoc? Without having to clone Pandoc around it?
AI tools are great—we use them heavily ourselves. Just please don't use them to generate or edit text to be read by fellow humans on Hacker News.
I just wanted to let you know this was happening!
Edit: you might have to navigate the site because I think that it is redirecting to the home page. Try to go to Full Site>Logbook>Making Wefti
Porting pandoc-type to python, rust, Julia, and TS: https://github.com/ickc/panir This is what process pandoc JSON AST and let you write pandoc filters for example. libpandoc: https://github.com/ickc/libpandoc A C library for calling pandoc, from which I built the same 4 language variants such as libpandoc-py, etc., so that basically if you build something with a host language such as Python and want pandoc, you don’t need to use subprocess. Command line program are built as pandocpy, etc. that would be a drop in replacement of pandoc with some augmented features. Eg support wasm filters for security isolations. And I also have a parser, private at the moment, with markdown reader/writer and html writer only, unlike this project. This is intended to be use in a text editor and would leave other pandoc functionality such as other formats, or citeproc, texmath, etc handled by pandoc. (Speed up in a similar ballpark but my concern is primarily keeping it O(N) and its use with a text editor such as source position.) Because I believe we need the core pandoc and its ecosystem to be thriving and continued to be designed by people who have taste as good as jgm, as believe it or not pandoc is still not a done product: it has steadily been improved over the years. And I’m also developing a pandoc text editor that would be putting the above ideas together, and designed to be secure oriented (wasm filter and running pandoc in wasm are some of the ways to contain filters in sandbox and limit their blast radius.) This is a personal passion that I want Pandoc to be used everywhere, and the pandoc filter ecosystem to be useful in collaborative settings similar to texlive, unlike the current situation that you need to somehow obtain filters and put it somewhere. And that’s why I’m also starting pandoc-forge, leveraging the conda ecosystem to distribute environments with pandoc and filters that’s guaranteed to be consistent (eg by version constraining the pandoc ast version as well.): https://github.com/pandoc-forge
Note that all these are still alpha, some are still private. Agentic engineering is heavily used. And I’m taking slow but steady progress primarily limited by token budget.
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).
You can install it in PowerShell with irm https://weavon.org/install.ps1 | iex, grab the prebuilt x86_64-pc-windows-msvc zip from https://github.com/weavon/weavon/releases/tag/v0.2.0, or build from source with Cargo. PowerShell completions are built in too.
And fair point on the clean room wording. Based on feedback in this thread, I just updated the README to drop that label and describe the AI assisted process.
My plan is to keep maintaining it, fix real issues people hit, and track new Pandoc releases. In the meantime, trying it is low risk because it is a drop in Pandoc 3.13 CLI with no format lock in, and every change runs through a 65,937 unit differential test suite against Pandoc so keeping it working is repeatable rather than guesswork.
I'm looking forward to try it, keep up the good work!
I also just realized citing those links won't help if show-dead is off but I felt it helpful to cite specifics
You can vouch for those comments by clicking the vouch button (I did for the latter).
The OP doesn't have a strong history on HN, which any algo will treat with suspicion.
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.
What I enforced in practice was keeping Pandoc's Haskell source and test suite out of the repo and testing against the Pandoc 3.13 binary as a black box oracle. Everything reused from Pandoc's ecosystem comes from packages already under BSD or MIT, including pandoc-types, doclayout, doctemplates, commonmark-hs, citeproc, tagsoup, hslua, and Pandoc's BSD-3-Clause default templates. I listed every item in https://github.com/weavon/weavon/blob/main/THIRD_PARTY_NOTIC... and left out GPL assets like Pandoc's reference Office files and shell completions.
All the source and notices are public, so anyone can inspect the code and judge it for themselves.
And, should be licensed GPL. Asking your LLM to not peek at pandoc code is ineffective.
On the licensing point, I already updated the README to drop the clean room wording and explained the MIT and Apache-2.0 choice elsewhere in the thread.
But man, the entire "How Weavon is built, and where it stops" section is such a Claude thing.
Rewriting in Rust and getting a 15-50x speedup is just pragmatic engineering.
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.