Packages
Deep reference for every @docvia/* package: contracts, parsing, orchestration, rendering, runtime, and integration.
docvia ships as a set of focused, single-purpose packages. This section is the deep API reference for each one: every export, signature, and option. For task-oriented walkthroughs, see the Guides.
Contracts
@docvia/iris the Intermediate Representation, the shared error system, the compiler/renderer/plugin contracts, and the AST → IR transform.
Parsing
@docvia/coreis the Markdown parsing pipeline (unified+remark+rehype).@docvia/schemahandles frontmatter validation (Zod), YAML extraction, and TypeScript codegen.
Compile core
@docvia/runtimeholdsCompileService, the stateful compile core shared by build, dev, and SSR.@docvia/compileris the batch build entry (compile()), content hashing, the incremental cache, and module-graph generation.@docvia/pluginsprovidesdefineConfig,loadConfig, and thePluginRunner.
Rendering
@docvia/renderer-coreis the framework-agnostic rendering engine and default node renderers.@docvia/renderer-reactis the React adapter.@docvia/renderer-svelteis the Svelte adapter.
Runtime
@docvia/sourceis the runtime collection model (createCollection/createSource) the generatedsource.tsis built on.@docvia/ssrdoes request-time rendering for Node and edge runtimes.@docvia/searchprovides section-level Orama indexing and the client search helper.
Integration
@docvia/cliis thedocviacommand (init,build,dev,preview).@docvia/plugin-viteis the in-processdocvia()Vite plugin, with virtual modules and incremental HMR.@docvia/plugin-nextis the Next.jswithDocviawrapper (webpack and Turbopack).@docvia/plugin-shikidoes build-time syntax highlighting via Shiki.@docvia/plugin-mermaidturns Mermaid fences into diagram components.@docvia/plugin-openapirenders OpenAPI 3.x endpoints inline in Markdown.