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 JSON Schema for the document an LLM writes as JSON, and validation reports diagnostics with machine-readable codes at document paths.
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. It promises process, not formats:
- Anything can change.
Quill.yaml, the document Markdown and every API can change in any release. - Every breaking release ships a migration guide. Each guide covers one version step, and a crossing of several works through them in order.
- A stored document migrates forward on read. A document saved as versioned JSON carries a version tag, and later releases migrate every supported past tag forward on read. A release that stops reading a tag says so in its guide, with how to rewrite the row before upgrading.
- A released quill version keeps meaning what it meant. A change to a quill ships as a new version, bumped by what it costs a document already stored against it (Quill Versioning), so every patch in a
MAJOR.MINORseries reads the documents an earlier patch stored, unchanged.
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.