1. Home
  2. ChevronRightAPI Reference

API Reference

Complete API reference for Boltdocs — React hooks, layout components, and configuration helpers.

This section provides reference documentation for all public APIs exported by the boltdocs framework packages.


Architecture OverviewLink

Boltdocs splits its modules into separate entrypoints to isolate server-side configurations from browser-side interactive elements:

Module ImportPurposeEnvironment
boltdocsProject configuration schemas & pluginsNode / Build
boltdocs/clientDefault styled React components, context hooks, & helpersBrowser / SSR
boltdocs/primitivesUnstyled primitive elements for crafting custom layoutsBrowser / SSR

React HooksLink

Hooks let you consume Boltdocs state (active theme, navigation links, locale selections, search indexes) directly in your custom components.


UtilitiesLink

Helper functions for combining styles, translation indexing, text compilation, and config validation.


Command Line Interface (CLI)Link

Boltdocs includes CLI commands to build, preview, debug, and auto-fix documentation structures.


Plugin DevelopmentLink

References for authors building Boltdocs plugins — the PluginContext shape, the lifecycle hooks, and every enriched namespace (caches, diagnostics, paths, virtual modules, slots, middleware, server, hmr) exposed to plugin code.


Type ExportsLink

Import TypeScript interfaces directly from 'boltdocs' (for configuration schemas) or 'boltdocs/client' (for client-side routing elements):

Build Config TypesLink

import type { BoltdocsConfig, BoltdocsPlugin } from 'boltdocs'

Client Context TypesLink

import type { RouteMeta, SidebarGroup, Heading } from 'boltdocs/client'
Last updated on July 27, 2026

Was this page helpful?