Stone.js API
    Preparing search index...

    Framework-agnostic head context produced by a page's head().

    Richer than a bare title/meta list: supports a title template, <base>, HTML/body attributes, and JSON-LD structured data. The HeadManager builder produces this shape; serializeHead renders it for SSR/SSG and view engines apply it in the DOM.

    interface HeadContext {
        base?: { href?: string; target?: string };
        bodyAttributes?: Record<string, string>;
        description?: string;
        htmlAttributes?: Record<string, string>;
        jsonLd?: Record<string, unknown>[];
        links?: LinkDescriptor[];
        metas?: MetaDescriptor[];
        scripts?: ScriptDescriptor[];
        styles?: StyleDescriptor[];
        title?: string;
        titleTemplate?: string;
    }
    Index
    base?: { href?: string; target?: string }
    bodyAttributes?: Record<string, string>

    Attributes to set on the <body> element.

    description?: string
    htmlAttributes?: Record<string, string>

    Attributes to set on the <html> element (e.g. { lang: 'en' }).

    jsonLd?: Record<string, unknown>[]

    JSON-LD structured-data objects, rendered as <script type="application/ld+json">.

    links?: LinkDescriptor[]
    metas?: MetaDescriptor[]
    scripts?: ScriptDescriptor[]
    styles?: StyleDescriptor[]
    title?: string
    titleTemplate?: string

    Template applied to title, e.g. '%s — Stone.js' (%s is the page title).