content.init()

Initialize the instance by hydrating the manifest and reading source metadata.

content.init(options?)

Initializes the instance: hydrates the manifest (via cache.loadManifest when configured) and reads source metadata. Called lazily by get / list / navigation, so you rarely call it yourself. Idempotent.

Parameters:

Returns: Promise<void>

preload.ts
await content.init({ partial: false })   // warm every body at boot

Options

OptionTypeDefaultDescription
partialbooleantrueRead frontmatter only and skip body parsing.
ignoreCachebooleanfalseBypass cache.loadManifest and rebuild from sources.

partial

Defaults to true: init reads each entry's frontmatter meta to build the index, but does not parse bodies. Pass false to parse every body up front, warming the cache at boot instead of lazily on first get().

ignoreCache

Pass true to skip cache.loadManifest and rebuild the index directly from the sources, ignoring any pre-built manifest artifact.

Usage

preload.ts
await content.init({ partial: false })