Quillmark
Quillmark is a schema-driven document framework. You define a document format once, as a quill: a schema for its fields and a layout for its pages, either a Typst plate or an existing PDF form. Authors then write plain Markdown, and Quillmark validates each document against its quill and renders it to PDF, SVG, or PNG.
Both pages come from one Markdown file, rendered through the usaf_memo quill. Its main card, abridged (full file):
~~~
$quill: usaf_memo
letterhead_title: NORTHWIND REGIONAL AUTHORITY
letterhead_seal: ""
memo_for:
- - -
- One implementation, 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;
acroformfills 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.
To write a quill of your own, start a quiver with quillkit and open it in studio, a form beside the live page. Creating Quills walks through it:
&& &&
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
- User Guide - Tutorials, concepts, and bindings
- Rust API Reference - Rust crate docs
- Changelog - Release notes and version history (GitHub Releases)
Installation
Quick Start (Rust)
use ;
// A `Quill` is declarative data: no engine needed to load it.
let quill = quill_from_path?;
let engine = new;
let markdown = r#"~~~
$quill: my_quill
$kind: main
title: Example
~~~
# Hello World
"#;
// Parse the Markdown and conform it to the quill's schema.
let doc = quill.parse?.document;
// A render reads no clock: the host passes its local date.
let today: CalendarDate = "2026-03-14".parse?;
let result = engine.render?;
let pdf_bytes = &result.artifacts.bytes;
Examples
Contributing
See CONTRIBUTING.md.
License
Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.