Daily Specs
Software & DevOps
Published on 2026-12-05Updated on 2026-12-05

Weavon: 99.93% Pandoc in 9.3 MB of Rust

Binary NameWeavon
Binary Size9.3 MB (macOS ARM64, stripped)
Compatibility TargetPandoc 3.13 (99.93% feature parity)
Implementation LanguageSafe Rust
Detailed technical specification diagram for Show HN: Weavon, 99.93% Pandoc in 9.3 MB of Rust, 15-50x faster, PDF without TeX

Key Takeaways

  • •Weavon provides a 99.93% drop-in feature-complete compatibility layer for Pandoc 3.13 inside a lean 9.3 MB binary.
  • •Engineered entirely in safe Rust, bypassing the massive dependency chain typically required by Haskell-based utilities.
  • •Delivers staggering 15-50x performance improvements while rendering complex documents directly to PDF without TeX Live.
  • •Includes built-in support for Lua 5.4.8, LPeg parsing, robust citeproc formatting, and 52 input/77 output formats.
Advertisement

Technical Specifications & Data

Binary NameWeavon
Binary Size9.3 MB (macOS ARM64, stripped)
Compatibility TargetPandoc 3.13 (99.93% feature parity)
Implementation LanguageSafe Rust
Performance Boost15x - 50x faster than standard Pandoc
Supported Input FormatsAll 52 Pandoc 3.13 formats
Supported Output FormatsAll 77 Pandoc 3.13 formats
PDF GenerationNative (No TeX Live dependency required)
Embedded ScriptingLua 5.4.8 with LPeg support
Citation ProcessingBuilt-in native citeproc engine
Runtime DependenciesNone beyond libSystem

Technical Architecture Overview

Building a high-fidelity, drop-in replacement for a mature document conversion Swiss Army knife like Pandoc is an extraordinary engineering challenge. Traditional Pandoc builds distribute as massive, heavy binaries often exceeding 190 MB, relying on complex Haskell runtimes and requiring multi-gigabyte installations of TeX Live just to render standard documents to PDF. Weavon radically re-imagines this pipeline by implementing a 99.93% specification-compliant engine entirely within safe, highly optimized Rust. By eliminating garbage collection overhead and leveraging zero-cost abstractions, the core architecture manages memory with deterministic precision.

Under the hood, Weavon seamlessly integrates embedded subsystems to match legacy functionality down to the metal. It incorporates an integrated Lua 5.4.8 runtime alongside high-performance LPeg grammar parsing, ensuring that complex custom filters written for standard Pandoc execute without modification. Furthermore, the robust citeproc engine handles academic bibliographies and citation styling natively. Because the binary is compiled statically down to a mere 9.3 MB on macOS ARM64 with zero runtime dependencies beyond libSystem, containerization and deployment in continuous integration pipelines become virtually frictionless.

Developers migrating from traditional document toolchains do not need to rewrite their build scripts or adjust input parameters. Weavon supports all 52 native Pandoc 3.13 input formats—ranging from Markdown and reStructuredText to complex LaTeX and HTML sources—and translates them efficiently into any of the 77 supported output formats. This architectural leap transforms document engineering from a sluggish, resource-heavy bottleneck into an instantaneous, memory-safe operation.

Deep-Dive Systems & Performance Benchmarks

Performance metrics reveal an astonishing leap forward when evaluating document processing throughput at scale. Standard Pandoc implementations spend significant CPU cycles managing Haskell's runtime overhead during massive multi-file conversions. Weavon's safe Rust implementation optimizes tokenization and AST (Abstract Syntax Tree) transformations, yielding consistent 15-50x faster execution speeds across standard benchmarks. When stress-tested against multi-hundred-page technical manuals containing embedded mathematical equations, syntax-highlighted code blocks, and extensive cross-references, Weavon processes the payloads in milliseconds rather than seconds.

The elimination of TeX Live dependency chains represents the most dramatic systems-level optimization. Historically, generating publication-quality PDFs required invoking heavy external engines like pdflatex or xelatex, which introduced brittle execution environments prone to missing package errors. Weavon solves this by constructing layout trees internally, bypassing external LaTeX invocations entirely. This native PDF pipeline not only guarantees reproducible builds across disparate operating systems but also slashes storage footprints in serverless computing environments where execution storage and cold-start times dictate infrastructure costs.

Memory profiling further underscores the efficiency of the engine. While legacy toolchains routinely consume hundreds of megabytes of RAM while parsing large Markdown bundles with heavy bibliography references, Weavon operates within a tightly bounded memory footprint. The use of custom allocators and immutable data structures ensures that concurrent document compilation requests scale linearly across available CPU cores without inducing garbage collection pauses or thread contention.

Why This Matters & Industry Impact

The introduction of Weavon marks a paradigm shift for technical writers, documentation teams, and automated publishing pipelines. For years, the friction of maintaining gigabyte-sized TeX installations inside Docker images has plagued DevOps engineers managing documentation sites. By compressing the entire document transformation stack into a portable, self-contained 9.3 MB executable, Weavon dramatically simplifies CI/CD workflows, reduces container image sizes, and accelerates deployment pipelines.

Moreover, the commitment to maintaining 99.93% compatibility with Pandoc 3.13 ensures that organizations can adopt the tool instantly without suffering vendor lock-in or rewriting existing automation scripts. Whether generating API reference documentation, academic preprints, or enterprise whitepapers, teams can rely on deterministic output rendering.

"Weavon transforms document conversion from a heavy, multi-gigabyte chore into an instantaneous, lightweight utility that fits comfortably in any minimalist toolchain."
As the software engineering community increasingly favors memory-safe systems languages over legacy runtimes, projects like Weavon demonstrate the practical benefits of rewriting foundational utilities for maximum speed, security, and portability.

Supercharge your documentation pipelines with Weavon—experience lightning-fast, TeX-free document conversion today.

Chronological Timeline

Phase 1: Core Engine Design

Architected the safe Rust parser and AST transformer to mirror Pandoc's syntax tree structure.

Phase 2: Subsystem Integration

Embedded Lua 5.4.8, LPeg, and citeproc engines to support complex custom filters and bibliography formatting.

Phase 3: Performance Tuning

Optimized memory allocation and pipeline execution, achieving 15-50x speed improvements over traditional builds.

Phase 4: Show HN Launch

Released Weavon as a drop-in 9.3 MB binary replacement for Pandoc 3.13 with native PDF capabilities.

Frequently Asked Questions

Is Weavon completely compatible with existing Pandoc commands?
Yes, Weavon is engineered as a 99.93% drop-in replacement supporting existing command-line flags and pipelines.
Do I need to install TeX Live to generate PDFs with Weavon?
No, Weavon features a native PDF generation pipeline that operates entirely without external TeX dependencies.
Does Weavon support custom Lua filters?
Yes, Weavon includes an integrated Lua 5.4.8 runtime and LPeg support to execute custom filters seamlessly.
DS

Daily Specs Editorial Staff

Lead Technical Analyst & Hardware Researcher

Verified Expert

The Daily Specs editorial staff compiles, benchmarks, and verifies emerging technical specifications directly from system architecture manuals, hardware datasheets, and open-source codebases to deliver high-gain technical intelligence.

Advertisement

Related Technical Specs