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/ir— the Intermediate Representation, the shared error system, the compiler/renderer/plugin contracts, and the AST → IR transform.
Parsing
@docvia/core— the Markdown parsing pipeline (unified+remark+rehype).@docvia/schema— frontmatter validation (Zod), YAML extraction, and TypeScript codegen.
Compile core
@docvia/runtime—CompileService, the stateful compile core shared by build, dev, and SSR.@docvia/compiler— the batch build entry (compile()), content hashing, the incremental cache, and module-graph generation.@docvia/plugins—defineConfig,loadConfig, and thePluginRunner.
Rendering
@docvia/renderer-core— the framework-agnostic rendering engine and default node renderers.@docvia/renderer-react— the React adapter.@docvia/renderer-svelte— the Svelte adapter.
Runtime
@docvia/source— the runtime collection model (createCollection/createSource) the generatedsource.tsis built on.@docvia/ssr— request-time rendering for Node and edge runtimes.@docvia/search— section-level Orama indexing and the client search helper.
Integration
@docvia/cli— thedocviacommand (init,build,dev,preview).@docvia/plugin-vite— the in-processdocvia()Vite plugin, with virtual modules and incremental HMR.@docvia/plugin-next— the Next.jswithDocviawrapper (webpack and Turbopack).@docvia/plugin-shiki— build-time syntax highlighting via Shiki.@docvia/plugin-openapi— render OpenAPI 3.x endpoints inline in Markdown.