Skip to main content

Package exports

Supported package import paths, execution environments, and focused guides.

This page is generated by pnpm api-docs:generate; do not edit it directly. packages/content/package.json is the source of truth for import paths and declaration targets. The generator requires a purpose, execution environment, and focused guide for every manifest export, so an unclassified new subpath fails pnpm api-docs:check.

Public TypeScript declarations at each subpath define its complete symbol-level API. For example, the data-source declaration exposes createContentDataSourceError and ContentDataSourceErrorCode as well as the adapter interfaces and limits. See the data-source adapter guide for their use.

Package subpaths

A stable subpath follows semver: a breaking change needs a major version, a changelog note, and a migration path. An experimental subpath can change in a minor version; the changelog records each change.

ImportStabilityEnvironmentPurposeTypesGuide
@lupinum/ginko-contentStableNuxt module setupModule registration and content configuration helpers./dist/module.d.mtsQuickstart
@lupinum/ginko-content/configStableBuild timeCollection, schema, and source configuration./dist/config.d.mtsContent config
@lupinum/ginko-content/serverStableNitro / H3Server queries, sitemap reads, and cache helpers./dist/public/server.d.tsServer API
@lupinum/ginko-content/providerStableNitro / H3Runtime content-provider contract and binder./dist/public/provider.d.tsProviders
@lupinum/ginko-content/data-sourceStableFramework-freeBounded backend adapter contract and stable errors./dist/public/data-source.d.tsData-source adapters
@lupinum/ginko-content/clientStableVue SSR / browserClient query functions, page/search composables, and derivations./dist/public/client.d.tsQuery API
@lupinum/ginko-content/navigationStableFramework-freeNavigation-tree traversal and path helpers./dist/public/navigation.d.tsNavigation
@lupinum/ginko-content/agentExperimentalFramework-freeAgent-readable Markdown serialization and index rendering./dist/public/agent.d.tsAgent-readable output
@lupinum/ginko-content/agent-registryExperimentalBuild timeAgent component-serializer registry definitions./dist/public/agent-registry.d.tsAgent-readable output
@lupinum/ginko-content/agent-pathsExperimentalFramework-freeCanonical agent and raw-content route paths./dist/public/agent-paths.d.tsAgent-readable output
@lupinum/ginko-content/cms-contractStableFramework-freeResolved CMS contract, schema inspection, MDC, hashing, and safety./dist/cms-contract/index.d.tsData-source adapters
@lupinum/ginko-content/cms-contract/nodeStableNodeRead the canonical resolved Content contract artifact./dist/cms-contract-node/index.d.tsData-source adapters
@lupinum/ginko-content/body-rendererExperimentalVue SSR / browserValidated Markdown body renderer with explicit policy and component selection./dist/runtime/app/components/body-renderer.d.tsComponents
@lupinum/ginko-content/portabilityStableFramework-freePortable document, manifest, asset, and validation codecs./dist/portability/index.d.tsPortable reads and writes
@lupinum/ginko-content/portability/nodeStableNodeBounded portable-directory filesystem I/O./dist/portability-node/index.d.tsPortable reads and writes
@lupinum/ginko-content/testing/provider-fixtureExperimentalVitest / NodeReusable provider-contract fixture data./dist/testing/provider-fixture.d.tsProvider contract
@lupinum/ginko-content/testing/provider-contractExperimentalVitest / NodeExecutable provider conformance suite./dist/testing/provider-contract.d.tsProvider contract
@lupinum/ginko-content/testing/data-source-contractExperimentalVitest / NodeExecutable data-source and binder conformance suite./dist/testing/data-source-contract.d.tsAdapter evidence
@lupinum/ginko-content/testing/portability-contractExperimentalVitest / NodeExecutable portable-directory conformance suite./dist/testing/portability-contract.d.tsPortable reads and writes
@lupinum/ginko-content/transformersStableBuild timeCustom content-transformer definition helper./dist/runtime/transformers/define.d.tsModule options
@lupinum/ginko-content/agent-docsStableLocal Markdown fileDocumentation snapshot for the installed package version; resolve and read, do not import—Use a coding agent

CMS contract exports

@lupinum/ginko-content/cms-contract is stable and runs without Node, Nuxt, Nitro, or h3. A test follows its module graph and fails on any such import. Editors and CMS integrations use these groups:

GroupExports
Parse and serializeparseMdcDocument, serializeMdcDocument, projectMdcDocument, parseMdcBody, AngleComponentSyntaxError, MdcSerializationError
Editing document typesMdcDocument, MdcNode, MdcElementNode, MdcCommentNode, MdcElementProps, MdcSerializationIssueCode, ParseMdcDocumentOptions, SerializeMdcDocumentOptions, ParseMdcBodyOptions, ParseMdcBodyResult
Heading idsslugifyHeading, createHeadingIdGenerator, headingSlugText
Body validationvalidatePublicMarkdownAst, validateStoredPortableMarkdownAst, assertPublicMarkdownAst, classifyPortableMarkdownElement
URL and name rulesisSafePublicLinkUrl, isSafePublicMarkdownUrl, isStoredPortableAssetIdentity, isValidPortableComponentName, canonicalizePortableComponentName
Component policyassertPortableComponentPolicy, assertPortableComponentPolicyV2, PortableComponentPolicy, PortableComponentPolicyV1, PortableComponentPolicyV2
Limits and mediaPORTABLE_CONTENT_LIMITS, CONTENT_MANAGED_MEDIA_TYPES, ContentManagedMediaType
Resolved contractbuildResolvedContentContract, assertResolvedContentContract, assertResolvedContentContractV1, assertResolvedContentContractV2, RESOLVED_CONTENT_CONTRACT_VERSION_V1, RESOLVED_CONTENT_CONTRACT_VERSION_V2

assertPortableComponentPolicy validates the current policy version, 2. assertPortableComponentPolicyV2 is the same function under a version-pinned name. RESOLVED_CONTENT_CONTRACT_VERSION equals RESOLVED_CONTENT_CONTRACT_VERSION_V1; prefer the explicit name.

isSafePublicLinkUrl accepts https:, http:, mailto:, tel:, same-site paths, fragments, and $ Content references. Media sources accept only https: and same-site paths. Use the same functions in editor fields and server validation.