DocLang reference toolkit
Actively maintained. Last release 10 days ago, commits in 16 of the last 26 weeks. A safe choice.
pip install doclangDocLang
DocLang is the AI-native markup format for unstructured content — including documents, images, and more. It maps cleanly to LLM tokens while preserving structure, semantics, layout, and geometry in a single, unambiguous representation.
This repository is the home of the normative specification and the reference toolkit for DocLang. If you build with LLMs and VLMs on real-world content, this is where the standard lives.
For additional background information see MOTIVATION.md.
Specification
The source of the specification is available in spec.md and exports to different formats can be found in the exports/ directory.
In case of discrepancies, the authoritative version of the specification is the original Markdown document.