IntroductionLast updated on
Last updated on
Everything you need to build with Asterdoc.
What is Asterdoc?
Asterdoc is a documents-as-code framework that enables developers and AI agents to automate business and compliance documentation. Asterdoc can work with any document, from a single-page HIPAA consent to a multi-document mortgage closing or tax filing.
With Asterdoc, documents are defined using schemas that capture the parties, fields, rules, instructions, and layers that make up a document. By treating documents as code, Asterdoc makes them typed, modular, composable, and portable. Once defined, a document can be populated, validated, and rendered with a few lines of code, then shared across systems or read by an LLM.
For developers, this replaces the usual stack of templates, field-mapping spreadsheets, scattered validation logic, and separate rendering pipelines. For AI agents, Asterdoc provides the structure and tooling to reason over documents, generate against them, and verify the result, enabling workflows like natural-text-to-submitted-form.
Open source
Asterdoc is open source and MIT licensed. See the LICENSE file for details.
Prerequisites
Our documentation assumes basic familiarity with Typescript, JSON, Markdown, and the command line.