typstgenv0.6.2

Installation

typstgen ships as one crate on crates.io. Install the CLI with cargo, or add the crate as a library.

cargo install typstgen
typstgen --version

Installs the current state of the master branch instead of the last release:

cargo install --git https://github.com/casoon/typstgen

The default features build the full CLI: cli, download, mcp (which brings tokio and rmcp), zugferd and archive, see Features. Turn them off when you only need the library, and add back what you use, for example png for page previews:

cargo add typstgen --no-default-features
cargo add typstgen --no-default-features --features download,png

The CLI includes the MCP server. Register it with your AI client, for example Claude Code:

cargo install typstgen
claude mcp add typstgen -- typstgen mcp --root .

Its tools and other clients are covered in AI agents.

Requirements

Minimum Notes
Rust 1.92 rust-version in Cargo.toml, edition 2021
Typst – Embedded: compiled with typst and typst-pdf 0.15

No typst binary and no system fonts are needed. Typst’s fallback fonts are compiled into every build, see Fonts.

Features

Feature Default Adds
cli yes The typstgen binary (via clap)
download yes Downloads missing @preview packages from Typst Universe (native only)
mcp yes typstgen mcp, the MCP server; enables cli and png
zugferd yes ZUGFeRD / Factur-X invoice data, see E-invoices
archive yes Build manifests and typstgen verify, see Archiving (native only)
png no Page previews as PNG (render_png)
wasm no A wasm-bindgen export for JavaScript hosts

The Wasm build is covered in the Rust and Wasm reference.

Next steps

Continue with the Quickstart.

Edit this page on GitHub · Docs for v0.6.2