quillmark 0.127.0

A schema-driven document engine: turn Markdown into a fully typeset document with a Quill
Documentation

Quillmark

Crates.io PyPI npm CI License

Quillmark renders Markdown into typeset PDF, SVG, and PNG documents. A quill defines the format: a schema that validates each document's fields and fills their defaults, and a plate that lays out the page (a Typst template, or a field map over an existing PDF form). Authors write only the content.

Both pages come from one Markdown file, rendered through the usaf_memo quill. Its first card, abridged (full file):

~~~
$quill: usaf_memo
letterhead_title: NORTHWIND REGIONAL AUTHORITY
letterhead_seal: ""
memo_for:
  - ALL DIVISION CHIEFS
subject: Transition to the Records Portal (Suspense 15 Mar 26)
signature_block:
  - JANE Q. DOE
  - Chief, Records Management
date: 2026-02-02
~~~

The Records Portal replaces the shared drive for official records on 1 April 2026.
  • One core, four surfaces: a Rust crate, a Python package, an npm package (WebAssembly, with a live canvas preview), and a CLI.
  • Two backends: Typst typesets new pages; acroform fills the fields of an existing PDF form.
  • Written by people or by LLMs: the schema emits a blueprint, an annotated Markdown form an LLM fills in, and validation reports diagnostics with machine-readable codes.

Try it in the browser: edit a document and watch the page re-render.

TongueToQuill produces Air and Space Force correspondence with Quillmark. Quillmark is not affiliated with or endorsed by the Department of Defense, the Department of the Air Force, or any Military Service.

Maintained by borb-sh.

Status

Quillmark is pre-1.0, and its API changes between minor releases. Each breaking release ships a migration guide. A document saved as versioned JSON carries a version tag, and later releases migrate supported past versions forward on read.

Documentation

Installation

cargo add quillmark

Quick Start (Rust)

use quillmark::{quill_from_path, CalendarDate, OutputFormat, Quillmark, RenderOptions};

// A `Quill` is declarative data: no engine needed to load it.
let quill = quill_from_path("path/to/quill")?;
let engine = Quillmark::new();

let markdown = r#"~~~
$quill: my_quill
$kind: main
title: Example
~~~

# Hello World
"#;

// The bound door: parse and conform against the quill that will render it.
let doc = quill.parse(markdown)?.document;
// The engine reads no clock: the host passes its local date.
let today: CalendarDate = "2026-03-14".parse()?;
let result = engine.render(
    &quill,
    &doc,
    today,
    &RenderOptions::default().with_output_format(OutputFormat::Pdf),
)?;

let pdf_bytes = &result.artifacts[0].bytes;

Examples

cargo run --example usaf_memo
cargo run --example taro

Contributing

See CONTRIBUTING.md.

License

Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.