Registry, reusable components, formatters and migrations

Extending the engine. Code examples in the DocStudio developer reference.

Component registry

A registry holds the component definitions the validator and compiler know. Register a custom type with a category and its child slots.

Reusable components

A component store gives the compiler a pinned template for name@version. Props are read with $props and slots are filled by the instance.

Formatters

Add a custom formatter next to the built-in ones.

Migrations

Register a migration between two schema versions. migrate applies the chain and reports what it applied.