# `model`: The Typed Document Model (nodes, token bridge, and traversal) ```{py:currentmodule} myform.model ``` The absolute middle of the `myform` pipeline: `nodes` defines the myst-spec-aligned pydantic node vocabulary plus the `Doc` wrapper; `bridge` maintains the bijective mapping between markdown-it token streams and `Doc` trees (`to_tokens(from_tokens(T)) == T` for every stream the markdown readers produce); `walk` provides visitors, transforms, and node addressing. Nodes are pure data -- every operation on them lives here or in the readers/writers around them. ```{eval-rst} .. automodule:: myform.model :members: :imported-members: ```