[{"data":1,"prerenderedAt":2629},["ShallowReactive",2],{"duxt-navigation-docs-docs":3,"i-lucide:puzzle":942,"i-lucide:search":947,"i-lucide:rocket":949,"i-lucide:compass":951,"i-lucide:book-open":953,"i-lucide:list":955,"i-lucide:ruler":957,"i-lucide:gavel":959,"duxt-preferred-missing-\u002Fadd-ons\u002Ftypesense":945,"i-lucide:menu":961,"i-lucide:chevron-down":963,"i-lucide:keyboard":965,"i-simple-icons:github":967,"i-flag:gb-4x3":969,"i-lucide:moon":973,"docs-en-GB-\u002Fadd-ons\u002Ftypesense":975,"i-lucide:copy":2569,"i-lucide:thumbs-up":2571,"i-lucide:thumbs-down":2573,"i-lucide:star":2575,"i-lucide:circle-alert":2577,"i-simple-icons:discord":2579,"i-lucide:book-open-text":2581,"i-lucide:arrow-up-right":2583,"i-lucide:file-code-2":2585,"duxt-code-ts-export default defineNuxtConfig({\n  extends: ['@kirchdev\u002Fduxt', 'duxt-typesense']\n});\n":13,"i-lucide:info":2587,"i-lucide:lightbulb":2589,"i-lucide:arrow-left":2591,"i-lucide:arrow-right":2593,"duxt-code-ts-export default defineNuxtConfig({\n  extends: ['@kirchdev\u002Fduxt', '@kirchdev\u002Fduxt-typesense'],\n  duxtTypesense: {\n    endpoint: process.env.TYPESENSE_ENDPOINT,\n    collection: 'docs',\n    adminKey: process.env.TYPESENSE_ADMIN_KEY,\n    searchKey: process.env.TYPESENSE_SEARCH_KEY\n  }\n})\n":13,"duxt-code-ts-import type { CollectionCreateSchema } from 'typesense';\n\nexport const docs: CollectionCreateSchema = {\n  name: 'docs',\n  fields: [\n    { name: 'url', type: 'string' },\n    { name: 'title', type: 'string' },\n    { name: 'content', type: 'string' },\n    { name: 'source', type: 'string', facet: true },\n    { name: 'version', type: 'string', facet: true, optional: true },\n    { name: 'locale', type: 'string', facet: true }\n  ]\n};\n":13,"duxt-code-ts-import { defineNuxtModule } from '@nuxt\u002Fkit';\nimport { Client } from 'typesense';\nimport type { DuxtSearchRecord } from '@kirchdev\u002Fduxt\u002Fsearch-records';\nimport { docs } from '..\u002Fserver\u002Ftypesense-schema';\n\nexport default defineNuxtModule({\n  meta: { name: 'typesense-sync' },\n  setup(_options, nuxt) {\n    const key = process.env.TYPESENSE_ADMIN_KEY;\n    \u002F\u002F No key is a local build, not a failure: skip rather than break it.\n    if (!key) return;\n\n    nuxt.hook('duxt:search:records', async (records) => {\n      const client = new Client({\n        nodes: [{ url: process.env.TYPESENSE_URL! }],\n        apiKey: key\n      });\n\n      await sync(client, records);\n    });\n  }\n});\n":13,"duxt-code-ts-async function sync(client: Client, records: readonly DuxtSearchRecord[]) {\n  const collection = client.collections(docs.name);\n\n  \u002F\u002F Typesense creates nothing implicitly: importing into a collection\n  \u002F\u002F that does not exist fails outright, so the first build makes it.\n  if (!(await collection.exists())) await client.collections().create(docs);\n\n  await collection.documents().import(\n    records.map((record) => ({ ...record })),\n    { action: 'upsert' }\n  );\n\n  \u002F\u002F Everything the build did not hand over is no longer on the site.\n  const kept = new Set(records.map((record) => record.id));\n  const live = await collection.documents().export();\n\n  const stale = live\n    .split('\\n')\n    .filter(Boolean)\n    .map((line) => JSON.parse(line).id as string)\n    .filter((id) => !kept.has(id));\n\n  \u002F\u002F Delete in batches: every id goes into the filter string, and one\n  \u002F\u002F large rename would build one long enough for Typesense to reject.\n  for (let index = 0; index \u003C stale.length; index += 100) {\n    const batch = stale.slice(index, index + 100).join(',');\n    await collection.documents().delete({ filter_by: `id:[${batch}]` });\n  }\n}\n":13,"duxt-code-ts-\u002F\u002F `locale` is the language the CONTENT is in, not the interface language.\n\u002F\u002F `version` is absent on an unversioned source, so the clause is added\n\u002F\u002F only when there is one — pasted in flat, it filters on `undefined`.\nconst filters = [`locale:${locale}`];\nif (version) filters.push(`version:${version}`);\n\nconst results = await client.collections('docs').documents().search({\n  q: query,\n  query_by: 'title,content',\n  filter_by: filters.join(' && ')\n});\n":13,"package-managers-add @kirchdev\u002Fduxt-typesense":2595,"package-managers-add -D typesense":2600,"i-lucide:chevron-right":2605,"i-vscode-icons:file-type-light-pnpm":2607,"i-vscode-icons:file-type-pnpm":2610,"i-vscode-icons:file-type-npm":2612,"i-vscode-icons:file-type-yarn":2614,"i-vscode-icons:file-type-bun":2616,"i-simple-icons:meilisearch":2618,"duxt-version-missing-\u002Fadd-ons\u002Ftypesense":2620},[4,31,111,183,826,845,853,878],{"title":5,"path":6,"stem":7,"children":8},"Introduction","\u002Fgetting-started","1.getting-started",[9,14,20,26],{"title":5,"path":6,"stem":10,"icon":11,"description":12,"subcategory":13},"1.getting-started\u002Findex","lucide:rocket","What duxt is, and what arrives with a single line of config.",null,{"title":15,"path":16,"stem":17,"icon":18,"description":19,"subcategory":13},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","lucide:download","Add the layer, extend it, write Markdown.",{"title":21,"path":22,"stem":23,"icon":24,"description":25,"subcategory":13},"Configuration","\u002Fgetting-started\u002Fconfiguration","1.getting-started\u002F2.configuration","lucide:settings","One file configures the whole site — what belongs in it, and how it merges.",{"title":27,"path":28,"stem":29,"icon":11,"description":30,"subcategory":13},"Start from the starter","\u002Fgetting-started\u002Ffrom-starter","1.getting-started\u002F3.from-starter","Create a ready-to-run duxt documentation site with Nuxi.",{"title":32,"path":33,"stem":34,"children":35},"Concepts","\u002Fconcepts","2.concepts",[36,40,46,52,58,64,70,76,81,87,93,99,105],{"title":32,"path":33,"stem":37,"icon":38,"description":39,"subcategory":13},"2.concepts\u002Findex","lucide:compass","How the layer works — the sources model, the URL scheme, the collections and the checks.",{"title":41,"path":42,"stem":43,"icon":44,"description":45,"subcategory":13},"Layers and overriding","\u002Fconcepts\u002Flayers","2.concepts\u002F1.layers","lucide:layers","What a Nuxt layer gives you, what it takes away, and which paths do not resolve the way they read.",{"title":47,"path":48,"stem":49,"icon":50,"description":51,"subcategory":13},"Theming","\u002Fconcepts\u002Ftheming","2.concepts\u002F10.theming","lucide:palette","How the theme is put together — owned components, one token layer, and a dark mode that switches on a class.",{"title":53,"path":54,"stem":55,"icon":56,"description":57,"subcategory":13},"Databases","\u002Fconcepts\u002Fdatabases","2.concepts\u002F11.databases","lucide:database","Which Content database adapters a duxt site can deploy on, which of them have been verified, and the one rule that keeps the layer out of the way.",{"title":59,"path":60,"stem":61,"icon":62,"description":63,"subcategory":13},"Keyboard shortcuts","\u002Fconcepts\u002Fkeyboard-shortcuts","2.concepts\u002F12.keyboard-shortcuts","lucide:keyboard","The four keys the theme binds, where each one applies, and where the reader is told about it.",{"title":65,"path":66,"stem":67,"icon":68,"description":69,"subcategory":13},"Sources","\u002Fconcepts\u002Fsources","2.concepts\u002F2.sources","lucide:git-branch","One list of sources becomes every collection, prefix and version the site serves.",{"title":71,"path":72,"stem":73,"icon":74,"description":75,"subcategory":13},"URLs and versions","\u002Fconcepts\u002Furls-and-versions","2.concepts\u002F3.urls-and-versions","lucide:git-compare","How the repository and version segments appear, and what a reader in an old version is told.",{"title":77,"path":78,"stem":79,"icon":56,"description":80,"subcategory":13},"Collections","\u002Fconcepts\u002Fcollections","2.concepts\u002F4.collections","What Content builds from the sources, and the four things the schema adds.",{"title":82,"path":83,"stem":84,"icon":85,"description":86,"subcategory":13},"Generated sections","\u002Fconcepts\u002Fgenerated-sections","2.concepts\u002F5.generated-sections","lucide:file-cog","An artefact plus a type, published as pages — what the registry is, and the two policies a type answers.",{"title":88,"path":89,"stem":90,"icon":91,"description":92,"subcategory":13},"What the build checks","\u002Fconcepts\u002Fbuild-checks","2.concepts\u002F6.build-checks","lucide:shield-check","The silent failures this layer had, turned into messages.",{"title":94,"path":95,"stem":96,"icon":97,"description":98,"subcategory":13},"Machine readers","\u002Fconcepts\u002Fmachine-readers","2.concepts\u002F7.machine-readers","lucide:bot","What a model gets — llms.txt, the raw Markdown of any page, and a real MCP server.",{"title":100,"path":101,"stem":102,"icon":103,"description":104,"subcategory":13},"SEO","\u002Fconcepts\u002Fseo","2.concepts\u002F8.seo","lucide:search","What every page emits for crawlers and social cards, which module writes it, and the one value the layer cannot guess.",{"title":106,"path":107,"stem":108,"icon":109,"description":110,"subcategory":13},"Localisation","\u002Fconcepts\u002Flocalisation","2.concepts\u002F9.localisation","lucide:languages","Seven locales ship with the layer, and every configured string takes three forms.",{"title":112,"path":113,"stem":114,"children":115},"Guides","\u002Fguides","3.guides",[116,120,126,132,138,143,148,153,159,165,171,177],{"title":112,"path":113,"stem":117,"icon":118,"description":119,"subcategory":13},"3.guides\u002Findex","lucide:book-open","One task per page, start to finish — several repositories, several versions, several languages, and a deploy.",{"title":121,"path":122,"stem":123,"icon":124,"description":125,"subcategory":13},"Several repositories","\u002Fguides\u002Fseveral-repositories","3.guides\u002F1.several-repositories","lucide:folder-git","Serve the documentation of several projects from one site.",{"title":127,"path":128,"stem":129,"icon":130,"description":131,"subcategory":13},"Publish Terraform provider docs","\u002Fguides\u002Fpublish-terraform-provider-docs","3.guides\u002F10.publish-terraform-provider-docs","simple-icons:terraform","Turn a tfplugindocs Markdown tree into a versioned provider reference with provider-aware navigation.",{"title":133,"path":134,"stem":135,"icon":136,"description":137,"subcategory":13},"Cache remote sources and OG images","\u002Fguides\u002Fcache-build-work","3.guides\u002F11.cache-build-work","lucide:database-zap","Reuse downloaded public repositories and rendered social cards safely between CI builds.",{"title":139,"path":140,"stem":141,"icon":74,"description":142,"subcategory":13},"Several versions","\u002Fguides\u002Fseveral-versions","3.guides\u002F2.several-versions","Serve the same documentation at several refs, with a switcher and a banner.",{"title":144,"path":145,"stem":146,"icon":109,"description":147,"subcategory":13},"Several languages","\u002Fguides\u002Fseveral-languages","3.guides\u002F3.several-languages","Serve the interface in several languages, and translate the pages themselves.",{"title":149,"path":150,"stem":151,"icon":50,"description":152,"subcategory":13},"Override the theme","\u002Fguides\u002Foverride-the-theme","3.guides\u002F4.override-the-theme","Change a colour, replace a component, add a shadcn-vue primitive.",{"title":154,"path":155,"stem":156,"icon":157,"description":158,"subcategory":13},"Move a page","\u002Fguides\u002Fmove-a-page","3.guides\u002F5.move-a-page","lucide:signpost","redirectFrom in the frontmatter, turned into route rules under every prefix.",{"title":160,"path":161,"stem":162,"icon":163,"description":164,"subcategory":13},"Deploy a site","\u002Fguides\u002Fdeploy-a-site","3.guides\u002F6.deploy-a-site","lucide:cloud-upload","Where a duxt site can run, what it needs there, and why content is not refreshed at runtime.",{"title":166,"path":167,"stem":168,"icon":169,"description":170,"subcategory":13},"Collect page feedback","\u002Fguides\u002Fcollect-page-feedback","3.guides\u002F7.collect-page-feedback","lucide:thumbs-up","Wrap DuxtPageFeedback, keep the answer where your analytics already live.",{"title":172,"path":173,"stem":174,"icon":175,"description":176,"subcategory":13},"Brand your site","\u002Fguides\u002Fbrand-your-site","3.guides\u002F8.brand-your-site","lucide:badge-check","Set the name, the wordmark and the icons, so the site reads as yours rather than as the layer's.",{"title":178,"path":179,"stem":180,"icon":181,"description":182,"subcategory":13},"Send analytics events","\u002Fguides\u002Fsend-analytics-events","3.guides\u002F9.send-analytics-events","lucide:chart-line","One callback, five events, no provider — wire duxt's reader interactions into the analytics you already run.",{"title":184,"path":185,"stem":186,"children":187},"Reference","\u002Freference","4.reference",[188,192,196,228,258,264,268,273,413,570,696,741,801],{"title":184,"path":185,"stem":189,"icon":190,"description":191,"subcategory":13},"4.reference\u002Findex","lucide:list","The layer's public surface — config keys, frontmatter, components, composables and endpoints.",{"title":21,"path":193,"stem":194,"icon":24,"description":195,"subcategory":13},"\u002Freference\u002Fconfiguration","4.reference\u002F1.configuration","Every key under duxt in app.config.ts — what it controls, and when it is read.",{"title":197,"path":198,"stem":199,"children":200,"icon":202,"description":203,"subcategory":13},"Changelog","\u002Freference\u002Fchangelog","4.reference\u002F10.changelog\u002Findex",[201,204,210,216,222],{"title":197,"path":198,"stem":199,"icon":202,"description":203,"subcategory":13},"lucide:tag","A release log, published as pages — a timeline, a page per release, and a feed.",{"title":205,"path":206,"stem":207,"icon":208,"description":209,"subcategory":13},"Declaring the section","\u002Freference\u002Fchangelog\u002Fsection","4.reference\u002F10.changelog\u002F1.section","lucide:file-clock","The `changelog` section type — where the file lives, and the two policies it answers.",{"title":211,"path":212,"stem":213,"icon":214,"description":215,"subcategory":13},"Granularity","\u002Freference\u002Fchangelog\u002Fgranularity","4.reference\u002F10.changelog\u002F2.granularity","lucide:split","A page per release, or the file as the one page it was written as.",{"title":217,"path":218,"stem":219,"icon":220,"description":221,"subcategory":13},"What is read","\u002Freference\u002Fchangelog\u002Fwhat-is-read","4.reference\u002F10.changelog\u002F3.what-is-read","lucide:scan-text","Which headings become releases, which become groups, and what happens to the rest.",{"title":223,"path":224,"stem":225,"icon":226,"description":227,"subcategory":13},"Layout and components","\u002Freference\u002Fchangelog\u002Fcomponents","4.reference\u002F10.changelog\u002F4.components","lucide:box","The layout a split history renders in, and the two MDC components its pages are made of.",{"title":229,"path":230,"stem":231,"children":232,"icon":234,"description":235,"subcategory":13},"Bruno collections","\u002Freference\u002Fbruno","4.reference\u002F11.bruno\u002Findex",[233,236,241,247,253],{"title":229,"path":230,"stem":231,"icon":234,"description":235,"subcategory":13},"lucide:send","A Bruno collection, published as request-centred reference pages with a downloadable archive.",{"title":205,"path":237,"stem":238,"icon":239,"description":240,"subcategory":13},"\u002Freference\u002Fbruno\u002Fsection","4.reference\u002F11.bruno\u002F1.section","lucide:file-code","The `bruno` section type — where the collection lives, and what it becomes.",{"title":242,"path":243,"stem":244,"icon":245,"description":246,"subcategory":13},"What is published","\u002Freference\u002Fbruno\u002Fwhat-is-published","4.reference\u002F11.bruno\u002F2.what-is-published","lucide:shield","Environments, credentials, scripts and tests never reach a page — and what that means for the archive.",{"title":248,"path":249,"stem":250,"icon":251,"description":252,"subcategory":13},"The request client","\u002Freference\u002Fbruno\u002Ftry-it","4.reference\u002F11.bruno\u002F3.try-it","lucide:send-horizontal","Off until a site turns it on, and pointed only at what the site declared public.",{"title":254,"path":255,"stem":256,"icon":18,"description":257,"subcategory":13},"Getting the collection","\u002Freference\u002Fbruno\u002Fgetting-the-collection","4.reference\u002F11.bruno\u002F4.getting-the-collection","The archive is pinned to the page you are on; the Bruno deep link is not.",{"title":259,"path":260,"stem":261,"icon":262,"description":263,"subcategory":13},"Hooks","\u002Freference\u002Fhooks","4.reference\u002F12.hooks","lucide:plug","The one build-time hook duxt emits, what it hands you, and why there is only one.",{"title":65,"path":265,"stem":266,"icon":68,"description":267,"subcategory":13},"\u002Freference\u002Fsources","4.reference\u002F2.sources","The fields of a source entry, its refs, and the options that shape the URLs.",{"title":269,"path":270,"stem":271,"icon":239,"description":272,"subcategory":13},"Frontmatter","\u002Freference\u002Ffrontmatter","4.reference\u002F3.frontmatter","The fields a page may carry beyond title and description, and the two the build fills in.",{"title":274,"path":275,"stem":276,"children":277,"icon":279,"description":280,"subcategory":13},"MDC components","\u002Freference\u002Fmdc-components","4.reference\u002F4.mdc-components\u002Findex",[278,281,287,293,299,305,311,317,323,329,367,373,378,384,390,396,402,408],{"title":274,"path":275,"stem":276,"icon":279,"description":280,"subcategory":13},"lucide:blocks","The blocks a Markdown page can call, one page each, with their props.",{"title":282,"path":283,"stem":284,"icon":285,"description":286,"subcategory":13},"Callout","\u002Freference\u002Fmdc-components\u002Fcallout","4.reference\u002F4.mdc-components\u002F1.callout","lucide:message-square-warning","An aside the reader is meant to stop at — a tip, a warning, a danger.",{"title":288,"path":289,"stem":290,"icon":291,"description":292,"subcategory":13},"Package managers","\u002Freference\u002Fmdc-components\u002Fpackage-managers","4.reference\u002F4.mdc-components\u002F10.package-managers","lucide:package","One command, one tab per package manager, remembered across pages.",{"title":294,"path":295,"stem":296,"icon":297,"description":298,"subcategory":13},"File tree","\u002Freference\u002Fmdc-components\u002Ffile-tree","4.reference\u002F4.mdc-components\u002F11.file-tree","lucide:folder-tree","A folder structure, with icons per file type.",{"title":300,"path":301,"stem":302,"icon":303,"description":304,"subcategory":13},"Preview","\u002Freference\u002Fmdc-components\u002Fpreview","4.reference\u002F4.mdc-components\u002F12.preview","lucide:eye","A component rendered as the page renders it, with its source beside it.",{"title":306,"path":307,"stem":308,"icon":309,"description":310,"subcategory":13},"Page cards","\u002Freference\u002Fmdc-components\u002Fpage-cards","4.reference\u002F4.mdc-components\u002F13.page-cards","lucide:layout-grid","A section's children, as cards.",{"title":312,"path":313,"stem":314,"icon":315,"description":316,"subcategory":13},"Partial","\u002Freference\u002Fmdc-components\u002Fpartial","4.reference\u002F4.mdc-components\u002F14.partial","lucide:puzzle","A block written once and rendered in every source that needs it.",{"title":318,"path":319,"stem":320,"icon":321,"description":322,"subcategory":13},"Since","\u002Freference\u002Fmdc-components\u002Fsince","4.reference\u002F4.mdc-components\u002F15.since","lucide:milestone","The version something arrived in, beside a heading.",{"title":324,"path":325,"stem":326,"icon":327,"description":328,"subcategory":13},"Mermaid","\u002Freference\u002Fmdc-components\u002Fmermaid","4.reference\u002F4.mdc-components\u002F16.mermaid","lucide:workflow","A diagram from a fence or a prop.",{"title":330,"path":331,"stem":332,"children":333,"icon":335,"description":336,"subcategory":13},"Prose overrides","\u002Freference\u002Fmdc-components\u002Fprose","4.reference\u002F4.mdc-components\u002F17.prose\u002Findex",[334,337,343,349,355,361],{"title":330,"path":331,"stem":332,"icon":335,"description":336,"subcategory":13},"lucide:type","What the layer changes about plain Markdown — links, headings, images, code and tables.",{"title":338,"path":339,"stem":340,"icon":341,"description":342,"subcategory":13},"ProseA","\u002Freference\u002Fmdc-components\u002Fprose\u002Fprose-a","4.reference\u002F4.mdc-components\u002F17.prose\u002F1.prose-a","lucide:link","A link, resolved against the source it was written in.",{"title":344,"path":345,"stem":346,"icon":347,"description":348,"subcategory":13},"ProseH2, ProseH3, ProseH4","\u002Freference\u002Fmdc-components\u002Fprose\u002Fprose-headings","4.reference\u002F4.mdc-components\u002F17.prose\u002F2.prose-headings","lucide:heading","Headings, each with a permalink anchor.",{"title":350,"path":351,"stem":352,"icon":353,"description":354,"subcategory":13},"ProseImg","\u002Freference\u002Fmdc-components\u002Fprose\u002Fprose-img","4.reference\u002F4.mdc-components\u002F17.prose\u002F3.prose-img","lucide:image","An image: theme-aware, responsive, and zoomable.",{"title":356,"path":357,"stem":358,"icon":359,"description":360,"subcategory":13},"ProsePre","\u002Freference\u002Fmdc-components\u002Fprose\u002Fprose-pre","4.reference\u002F4.mdc-components\u002F17.prose\u002F4.prose-pre","lucide:terminal","The code block: filename, language icon, copy button.",{"title":362,"path":363,"stem":364,"icon":365,"description":366,"subcategory":13},"ProseTable","\u002Freference\u002Fmdc-components\u002Fprose\u002Fprose-table","4.reference\u002F4.mdc-components\u002F17.prose\u002F5.prose-table","lucide:table","A table that scrolls instead of the page.",{"title":368,"path":369,"stem":370,"icon":371,"description":372,"subcategory":13},"Steps","\u002Freference\u002Fmdc-components\u002Fsteps","4.reference\u002F4.mdc-components\u002F2.steps","lucide:list-ordered","An ordered list drawn as numbered steps on a rail.",{"title":374,"path":375,"stem":376,"icon":239,"description":377,"subcategory":13},"Code group","\u002Freference\u002Fmdc-components\u002Fcode-group","4.reference\u002F4.mdc-components\u002F3.code-group","Several fences as one tabbed block, labelled by filename.",{"title":379,"path":380,"stem":381,"icon":382,"description":383,"subcategory":13},"Tab group","\u002Freference\u002Fmdc-components\u002Ftab-group","4.reference\u002F4.mdc-components\u002F4.tab-group","lucide:panels-top-left","Tabs for anything that is not code.",{"title":385,"path":386,"stem":387,"icon":388,"description":389,"subcategory":13},"Tab","\u002Freference\u002Fmdc-components\u002Ftab","4.reference\u002F4.mdc-components\u002F5.tab","lucide:square","One panel of a tab group.",{"title":391,"path":392,"stem":393,"icon":394,"description":395,"subcategory":13},"Accordion","\u002Freference\u002Fmdc-components\u002Faccordion","4.reference\u002F4.mdc-components\u002F6.accordion","lucide:chevrons-up-down","Collapsible sections — a FAQ, or answers a reader picks from.",{"title":397,"path":398,"stem":399,"icon":400,"description":401,"subcategory":13},"Accordion item","\u002Freference\u002Fmdc-components\u002Faccordion-item","4.reference\u002F4.mdc-components\u002F7.accordion-item","lucide:chevron-down","One collapsible section.",{"title":403,"path":404,"stem":405,"icon":406,"description":407,"subcategory":13},"Field group","\u002Freference\u002Fmdc-components\u002Ffield-group","4.reference\u002F4.mdc-components\u002F8.field-group","lucide:list-tree","A list of fields as one block.",{"title":409,"path":410,"stem":411,"icon":202,"description":412,"subcategory":13},"Field","\u002Freference\u002Fmdc-components\u002Ffield","4.reference\u002F4.mdc-components\u002F9.field","One parameter, property or option, with its type and default.",{"title":414,"path":415,"stem":416,"children":417,"icon":419,"description":420,"subcategory":13},"Components","\u002Freference\u002Fcomponents","4.reference\u002F5.components\u002Findex",[418,421,447,488,539],{"title":414,"path":415,"stem":416,"icon":419,"description":420,"subcategory":13},"lucide:component","The layer's own components, one page each — what each is for, and what it takes.",{"title":422,"path":423,"stem":424,"children":425,"icon":427,"description":428,"subcategory":13},"Layout","\u002Freference\u002Fcomponents\u002Flayout","4.reference\u002F5.components\u002F1.layout\u002Findex",[426,429,435,441],{"title":422,"path":423,"stem":424,"icon":427,"description":428,"subcategory":13},"lucide:layout-panel-top","The three components that frame a page — the navbar, the footer and the site notices.",{"title":430,"path":431,"stem":432,"icon":433,"description":434,"subcategory":13},"DuxtHeader","\u002Freference\u002Fcomponents\u002Flayout\u002Fduxt-header","4.reference\u002F5.components\u002F1.layout\u002F1.duxt-header","lucide:panel-top","The navbar: title, navigation, search, and the icon links.",{"title":436,"path":437,"stem":438,"icon":439,"description":440,"subcategory":13},"DuxtFooter","\u002Freference\u002Fcomponents\u002Flayout\u002Fduxt-footer","4.reference\u002F5.components\u002F1.layout\u002F2.duxt-footer","lucide:panel-bottom","The footer: the site's name, its legal links, and the layer's own line.",{"title":442,"path":443,"stem":444,"icon":445,"description":446,"subcategory":13},"DuxtAnnouncements","\u002Freference\u002Fcomponents\u002Flayout\u002Fduxt-announcements","4.reference\u002F5.components\u002F1.layout\u002F3.duxt-announcements","lucide:megaphone","The site's own notices: one strip per placement, drawn only when there is something to say.",{"title":448,"path":449,"stem":450,"children":451,"icon":38,"description":453,"subcategory":13},"Navigation","\u002Freference\u002Fcomponents\u002Fnavigation","4.reference\u002F5.components\u002F2.navigation\u002Findex",[452,454,460,465,471,477,482],{"title":448,"path":449,"stem":450,"icon":38,"description":453,"subcategory":13},"Getting around — the section row, the sidebar, the trail, the contents and prev\u002Fnext.",{"title":455,"path":456,"stem":457,"icon":458,"description":459,"subcategory":13},"DuxtSections","\u002Freference\u002Fcomponents\u002Fnavigation\u002Fduxt-sections","4.reference\u002F5.components\u002F2.navigation\u002F1.duxt-sections","lucide:rows-3","The second navbar row — the top-level parts of the documentation.",{"title":461,"path":462,"stem":463,"icon":406,"description":464,"subcategory":13},"DuxtNavigation","\u002Freference\u002Fcomponents\u002Fnavigation\u002Fduxt-navigation","4.reference\u002F5.components\u002F2.navigation\u002F2.duxt-navigation","The sidebar tree.",{"title":466,"path":467,"stem":468,"icon":469,"description":470,"subcategory":13},"DuxtNavigationLink","\u002Freference\u002Fcomponents\u002Fnavigation\u002Fduxt-navigation-link","4.reference\u002F5.components\u002F2.navigation\u002F3.duxt-navigation-link","lucide:link-2","One entry of the sidebar.",{"title":472,"path":473,"stem":474,"icon":475,"description":476,"subcategory":13},"DuxtBreadcrumb","\u002Freference\u002Fcomponents\u002Fnavigation\u002Fduxt-breadcrumb","4.reference\u002F5.components\u002F2.navigation\u002F4.duxt-breadcrumb","lucide:chevrons-right","The trail above the page title.",{"title":478,"path":479,"stem":480,"icon":190,"description":481,"subcategory":13},"DuxtToc","\u002Freference\u002Fcomponents\u002Fnavigation\u002Fduxt-toc","4.reference\u002F5.components\u002F2.navigation\u002F5.duxt-toc","The table of contents, and the aside under it.",{"title":483,"path":484,"stem":485,"icon":486,"description":487,"subcategory":13},"DuxtPageNav","\u002Freference\u002Fcomponents\u002Fnavigation\u002Fduxt-page-nav","4.reference\u002F5.components\u002F2.navigation\u002F6.duxt-page-nav","lucide:arrow-left-right","Previous and next, bounded by the section.",{"title":489,"path":490,"stem":491,"children":492,"icon":494,"description":495,"subcategory":13},"Controls","\u002Freference\u002Fcomponents\u002Fcontrols","4.reference\u002F5.components\u002F3.controls\u002Findex",[493,496,501,506,512,517,523,528,534],{"title":489,"path":490,"stem":491,"icon":494,"description":495,"subcategory":13},"lucide:sliders-horizontal","What a reader operates — search, the switchers, the shortcut sheet, and two indicators.",{"title":497,"path":498,"stem":499,"icon":103,"description":500,"subcategory":13},"DuxtSearch","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-search","4.reference\u002F5.components\u002F3.controls\u002F1.duxt-search","Search every active source and interleave its locally ranked results.",{"title":502,"path":503,"stem":504,"icon":44,"description":505,"subcategory":13},"DuxtVersion","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-version","4.reference\u002F5.components\u002F3.controls\u002F2.duxt-version","The version badge, and the switcher when there is more than one.",{"title":507,"path":508,"stem":509,"icon":510,"description":511,"subcategory":13},"DuxtVersionBanner","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-version-banner","4.reference\u002F5.components\u002F3.controls\u002F3.duxt-version-banner","lucide:triangle-alert","The bar telling a reader this version is not the current one.",{"title":513,"path":514,"stem":515,"icon":109,"description":516,"subcategory":13},"DuxtLocale","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-locale","4.reference\u002F5.components\u002F3.controls\u002F4.duxt-locale","The language switcher.",{"title":518,"path":519,"stem":520,"icon":521,"description":522,"subcategory":13},"DuxtProgress","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-progress","4.reference\u002F5.components\u002F3.controls\u002F5.duxt-progress","lucide:loader","How far down the page the reader is.",{"title":524,"path":525,"stem":526,"icon":62,"description":527,"subcategory":13},"DuxtShortcuts","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-shortcuts","4.reference\u002F5.components\u002F3.controls\u002F6.duxt-shortcuts","The keyboard shortcut sheet, on ?.",{"title":529,"path":530,"stem":531,"icon":532,"description":533,"subcategory":13},"DuxtSkipLink","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-skip-link","4.reference\u002F5.components\u002F3.controls\u002F7.duxt-skip-link","lucide:skip-forward","The first focusable element on the page.",{"title":535,"path":536,"stem":537,"icon":62,"description":538,"subcategory":13},"DuxtShortcutsTrigger","\u002Freference\u002Fcomponents\u002Fcontrols\u002Fduxt-shortcuts-trigger","4.reference\u002F5.components\u002F3.controls\u002F8.duxt-shortcuts-trigger","The button that opens the shortcut sheet.",{"title":540,"path":541,"stem":542,"children":543,"icon":545,"description":546,"subcategory":13},"Page","\u002Freference\u002Fcomponents\u002Fpage","4.reference\u002F5.components\u002F4.page\u002Findex",[544,547,553,559,564],{"title":540,"path":541,"stem":542,"icon":545,"description":546,"subcategory":13},"lucide:file-text","The components that belong to the page itself.",{"title":548,"path":549,"stem":550,"icon":551,"description":552,"subcategory":13},"DuxtPageInfo","\u002Freference\u002Fcomponents\u002Fpage\u002Fduxt-page-info","4.reference\u002F5.components\u002F4.page\u002F1.duxt-page-info","lucide:git-commit-horizontal","Where the page came from: edit link, last updated, contributors.",{"title":554,"path":555,"stem":556,"icon":557,"description":558,"subcategory":13},"DuxtCopyPage","\u002Freference\u002Fcomponents\u002Fpage\u002Fduxt-copy-page","4.reference\u002F5.components\u002F4.page\u002F2.duxt-copy-page","lucide:clipboard-copy","Hand this page to a model, or read its source.",{"title":560,"path":561,"stem":562,"icon":169,"description":563,"subcategory":13},"DuxtPageFeedback","\u002Freference\u002Fcomponents\u002Fpage\u002Fduxt-page-feedback","4.reference\u002F5.components\u002F4.page\u002F3.duxt-page-feedback","Was this page helpful?",{"title":565,"path":566,"stem":567,"icon":568,"description":569,"subcategory":13},"DuxtCodeBlock","\u002Freference\u002Fcomponents\u002Fpage\u002Fduxt-code-block","4.reference\u002F5.components\u002F4.page\u002F4.duxt-code-block","lucide:code","The card around a code block.",{"title":571,"path":572,"stem":573,"children":574,"icon":576,"description":577,"subcategory":13},"Composables","\u002Freference\u002Fcomposables","4.reference\u002F6.composables\u002Findex",[575,578,612,641],{"title":571,"path":572,"stem":573,"icon":576,"description":577,"subcategory":13},"lucide:function-square","The functions the layer exposes to your own components, one page each.",{"title":579,"path":580,"stem":581,"children":582,"icon":56,"description":584,"subcategory":13},"Config and content","\u002Freference\u002Fcomposables\u002Fconfig-and-content","4.reference\u002F6.composables\u002F1.config-and-content\u002Findex",[583,585,590,596,601,607],{"title":579,"path":580,"stem":581,"icon":56,"description":584,"subcategory":13},"The merged config, and which collection serves the page being read.",{"title":586,"path":587,"stem":588,"icon":24,"description":589,"subcategory":13},"useDuxtConfig()","\u002Freference\u002Fcomposables\u002Fconfig-and-content\u002Fuse-duxt-config","4.reference\u002F6.composables\u002F1.config-and-content\u002F1.use-duxt-config","The merged config, every text field already resolved.",{"title":591,"path":592,"stem":593,"icon":594,"description":595,"subcategory":13},"useDuxtCollection()","\u002Freference\u002Fcomposables\u002Fconfig-and-content\u002Fuse-duxt-collection","4.reference\u002F6.composables\u002F1.config-and-content\u002F2.use-duxt-collection","lucide:library","Which collection serves this route.",{"title":597,"path":598,"stem":599,"icon":406,"description":600,"subcategory":13},"useDuxtNavigation()","\u002Freference\u002Fcomposables\u002Fconfig-and-content\u002Fuse-duxt-navigation","4.reference\u002F6.composables\u002F1.config-and-content\u002F3.use-duxt-navigation","The navigation tree for the collection serving this route.",{"title":602,"path":603,"stem":604,"icon":605,"description":606,"subcategory":13},"useDuxtSection()","\u002Freference\u002Fcomposables\u002Fconfig-and-content\u002Fuse-duxt-section","4.reference\u002F6.composables\u002F1.config-and-content\u002F4.use-duxt-section","lucide:folder-open","The part of the documentation this page is in.",{"title":608,"path":609,"stem":610,"icon":475,"description":611,"subcategory":13},"useDuxtBreadcrumb()","\u002Freference\u002Fcomposables\u002Fconfig-and-content\u002Fuse-duxt-breadcrumb","4.reference\u002F6.composables\u002F1.config-and-content\u002F5.use-duxt-breadcrumb","The trail from the section down to a page.",{"title":613,"path":614,"stem":615,"children":616,"icon":618,"description":619,"subcategory":13},"Paths and versions","\u002Freference\u002Fcomposables\u002Fpaths-and-versions","4.reference\u002F6.composables\u002F2.paths-and-versions\u002Findex",[617,620,625,630,635],{"title":613,"path":614,"stem":615,"icon":618,"description":619,"subcategory":13},"lucide:route","Reading a URL, writing one back out, and knowing which version is being read.",{"title":621,"path":622,"stem":623,"icon":321,"description":624,"subcategory":13},"useDuxtPath()","\u002Freference\u002Fcomposables\u002Fpaths-and-versions\u002Fuse-duxt-path","4.reference\u002F6.composables\u002F2.paths-and-versions\u002F1.use-duxt-path","The path the documentation is at, locale stripped.",{"title":626,"path":627,"stem":628,"icon":341,"description":629,"subcategory":13},"useDuxtLink()","\u002Freference\u002Fcomposables\u002Fpaths-and-versions\u002Fuse-duxt-link","4.reference\u002F6.composables\u002F2.paths-and-versions\u002F2.use-duxt-link","A documentation path, written back out as a link.",{"title":631,"path":632,"stem":633,"icon":44,"description":634,"subcategory":13},"useDuxtVersion()","\u002Freference\u002Fcomposables\u002Fpaths-and-versions\u002Fuse-duxt-version","4.reference\u002F6.composables\u002F2.paths-and-versions\u002F3.use-duxt-version","What the switcher shows, what the banner says, whether to index.",{"title":636,"path":637,"stem":638,"icon":639,"description":640,"subcategory":13},"useDuxtSiteUrl()","\u002Freference\u002Fcomposables\u002Fpaths-and-versions\u002Fuse-duxt-site-url","4.reference\u002F6.composables\u002F2.paths-and-versions\u002F4.use-duxt-site-url","lucide:globe","The configured origin, and paths made absolute.",{"title":642,"path":643,"stem":644,"children":645,"icon":118,"description":647,"subcategory":13},"Reading experience","\u002Freference\u002Fcomposables\u002Freading","4.reference\u002F6.composables\u002F3.reading\u002Findex",[646,648,652,658,663,669,675,680,686,691],{"title":642,"path":643,"stem":644,"icon":118,"description":647,"subcategory":13},"Search, headings, focus, history, and the choices a reader makes.",{"title":649,"path":650,"stem":651,"icon":103,"description":500,"subcategory":13},"useDuxtSearch()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-duxt-search","4.reference\u002F6.composables\u002F3.reading\u002F1.use-duxt-search",{"title":653,"path":654,"stem":655,"icon":656,"description":657,"subcategory":13},"useFuzzySearch()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-fuzzy-search","4.reference\u002F6.composables\u002F3.reading\u002F2.use-fuzzy-search","lucide:spell-check","Typo tolerance beside the exact index.",{"title":659,"path":660,"stem":661,"icon":347,"description":662,"subcategory":13},"useActiveHeading()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-active-heading","4.reference\u002F6.composables\u002F3.reading\u002F3.use-active-heading","The heading currently in view.",{"title":664,"path":665,"stem":666,"icon":667,"description":668,"subcategory":13},"useDuxtPageFocus()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-duxt-page-focus","4.reference\u002F6.composables\u002F3.reading\u002F4.use-duxt-page-focus","lucide:focus","Moves focus to the heading after a client-side navigation.",{"title":670,"path":671,"stem":672,"icon":673,"description":674,"subcategory":13},"useRecentPages()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-recent-pages","4.reference\u002F6.composables\u002F3.reading\u002F5.use-recent-pages","lucide:history","The most recent pages this reader opened, up to the configured limit.",{"title":676,"path":677,"stem":678,"icon":291,"description":679,"subcategory":13},"usePackageManager()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-package-manager","4.reference\u002F6.composables\u002F3.reading\u002F6.use-package-manager","The package manager a reader picked.",{"title":681,"path":682,"stem":683,"icon":684,"description":685,"subcategory":13},"useDuxtToast()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-duxt-toast","4.reference\u002F6.composables\u002F3.reading\u002F7.use-duxt-toast","lucide:bell","Notifications, wrapped so no component imports the library.",{"title":687,"path":688,"stem":689,"icon":62,"description":690,"subcategory":13},"useDuxtShortcuts()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-duxt-shortcuts","4.reference\u002F6.composables\u002F3.reading\u002F8.use-duxt-shortcuts","The keys the theme listens to.",{"title":692,"path":693,"stem":694,"icon":181,"description":695,"subcategory":13},"useDuxtAnalytics()","\u002Freference\u002Fcomposables\u002Freading\u002Fuse-duxt-analytics","4.reference\u002F6.composables\u002F3.reading\u002F9.use-duxt-analytics","Report one reader interaction to the site's own callback, or to nobody.",{"title":697,"path":698,"stem":699,"children":700,"icon":618,"description":702,"subcategory":13},"Endpoints","\u002Freference\u002Fendpoints","4.reference\u002F7.endpoints\u002Findex",[701,703,708,714,719,724,729,735],{"title":697,"path":698,"stem":699,"icon":618,"description":702,"subcategory":13},"Everything the site serves besides pages, one page each.",{"title":704,"path":705,"stem":706,"icon":545,"description":707,"subcategory":13},"\u002Fllms.txt","\u002Freference\u002Fendpoints\u002Fllms-txt","4.reference\u002F7.endpoints\u002F1.llms-txt","The documentation as a Markdown index, per llmstxt.org.",{"title":709,"path":710,"stem":711,"icon":712,"description":713,"subcategory":13},"\u002Fllms-full.txt","\u002Freference\u002Fendpoints\u002Fllms-full-txt","4.reference\u002F7.endpoints\u002F2.llms-full-txt","lucide:file-stack","A duxt extension with the same pages in one Markdown file.",{"title":715,"path":716,"stem":717,"icon":239,"description":718,"subcategory":13},"\u003Cpage>.md","\u002Freference\u002Fendpoints\u002Fpage-markdown","4.reference\u002F7.endpoints\u002F3.page-markdown","Any page source, at its own URL plus .md.",{"title":720,"path":721,"stem":722,"icon":97,"description":723,"subcategory":13},"\u002Fmcp","\u002Freference\u002Fendpoints\u002Fmcp","4.reference\u002F7.endpoints\u002F4.mcp","An MCP server over the same content.",{"title":725,"path":726,"stem":727,"icon":103,"description":728,"subcategory":13},"\u002Fsitemap.xml and \u002Frobots.txt","\u002Freference\u002Fendpoints\u002Fsitemap-and-robots","4.reference\u002F7.endpoints\u002F5.sitemap-and-robots","What a crawler is pointed at, and what it is kept out of.",{"title":730,"path":731,"stem":732,"icon":733,"description":734,"subcategory":13},"\u002Frss.xml","\u002Freference\u002Fendpoints\u002Frss-xml","4.reference\u002F7.endpoints\u002F6.rss-xml","lucide:rss","The feed, once a section is named.",{"title":736,"path":737,"stem":738,"icon":739,"description":740,"subcategory":13},"\u002F_duxt\u002Fdevtools","\u002Freference\u002Fendpoints\u002Fdevtools","4.reference\u002F7.endpoints\u002F7.devtools","lucide:wrench","The route the Nuxt Devtools panel is served from. Dev only.",{"title":742,"path":743,"stem":744,"children":745,"icon":739,"description":747,"subcategory":13},"Devtools","\u002Freference\u002Fdevtools","4.reference\u002F8.devtools\u002Findex",[746,748,752,757,762,768,774,780,785,790,795],{"title":742,"path":743,"stem":744,"icon":739,"description":747,"subcategory":13},"Ten panels that show what your sources became. Dev only.",{"title":65,"path":749,"stem":750,"icon":594,"description":751,"subcategory":13},"\u002Freference\u002Fdevtools\u002Fsources","4.reference\u002F8.devtools\u002F1.sources","What `duxt.sources` became — one collection per source, version and language.",{"title":753,"path":754,"stem":755,"icon":157,"description":756,"subcategory":13},"Redirects","\u002Freference\u002Fdevtools\u002Fredirects","4.reference\u002F8.devtools\u002F10.redirects","Every redirect the server ships, and which of them the layer wrote.",{"title":758,"path":759,"stem":760,"icon":618,"description":761,"subcategory":13},"Paths","\u002Freference\u002Fdevtools\u002Fpaths","4.reference\u002F8.devtools\u002F2.paths","Paste a URL, see which source claims it and what it finds there.",{"title":763,"path":764,"stem":765,"icon":766,"description":767,"subcategory":13},"Pages","\u002Freference\u002Fdevtools\u002Fpages","4.reference\u002F8.devtools\u002F3.pages","lucide:files","Every page of every collection, with its frontmatter and git metadata.",{"title":769,"path":770,"stem":771,"icon":772,"description":773,"subcategory":13},"Versions","\u002Freference\u002Fdevtools\u002Fversions","4.reference\u002F8.devtools\u002F4.versions","lucide:columns-3","Which version — and which language — carries which page.",{"title":775,"path":776,"stem":777,"icon":778,"description":779,"subcategory":13},"Checks","\u002Freference\u002Fdevtools\u002Fchecks","4.reference\u002F8.devtools\u002F5.checks","lucide:check-check","The build validator, run against what the site is serving now.",{"title":781,"path":782,"stem":783,"icon":103,"description":784,"subcategory":13},"Search","\u002Freference\u002Fdevtools\u002Fsearch","4.reference\u002F8.devtools\u002F6.search","What the search index holds, through the same query the dialog runs.",{"title":786,"path":787,"stem":788,"icon":494,"description":789,"subcategory":13},"Config","\u002Freference\u002Fdevtools\u002Fconfig","4.reference\u002F8.devtools\u002F7.config","The merged `duxt` config, and which side of the merge each value came from.",{"title":791,"path":792,"stem":793,"icon":109,"description":794,"subcategory":13},"i18n","\u002Freference\u002Fdevtools\u002Fi18n","4.reference\u002F8.devtools\u002F8.i18n","Message keys per locale, against the base language.",{"title":796,"path":797,"stem":798,"icon":799,"description":800,"subcategory":13},"Cache","\u002Freference\u002Fdevtools\u002Fcache","4.reference\u002F8.devtools\u002F9.cache","lucide:hard-drive","Content's download cache, and a way to drop one entry.",{"title":802,"path":803,"stem":804,"children":805,"icon":262,"description":807,"subcategory":13},"API reference","\u002Freference\u002Fopenapi","4.reference\u002F9.openapi\u002Findex",[806,808,812,816,821],{"title":802,"path":803,"stem":804,"icon":262,"description":807,"subcategory":13},"An OpenAPI document, published as reference pages with a client that sends real requests.",{"title":205,"path":809,"stem":810,"icon":239,"description":811,"subcategory":13},"\u002Freference\u002Fopenapi\u002Fsection","4.reference\u002F9.openapi\u002F1.section","The `openapi` section type — where the document lives, and what it becomes.",{"title":414,"path":813,"stem":814,"icon":226,"description":815,"subcategory":13},"\u002Freference\u002Fopenapi\u002Fcomponents","4.reference\u002F9.openapi\u002F2.components","The three MDC components a generated reference page is made of.",{"title":817,"path":818,"stem":819,"icon":234,"description":820,"subcategory":13},"The try-it client","\u002Freference\u002Fopenapi\u002Ftry-it","4.reference\u002F9.openapi\u002F3.try-it","A real request, sent by the reader's own browser.",{"title":822,"path":823,"stem":824,"icon":568,"description":825,"subcategory":13},"Request samples","\u002Freference\u002Fopenapi\u002Frequest-samples","4.reference\u002F9.openapi\u002F4.request-samples","The same request in twelve clients, and how to add your own.",{"title":827,"path":828,"stem":829,"children":830},"Add-ons","\u002Fadd-ons","5.add-ons",[831,834,839],{"title":827,"path":828,"stem":832,"icon":315,"description":833,"subcategory":13},"5.add-ons\u002Findex","Companion layers that extend a duxt site — each one its own package, added with one more entry in extends.",{"title":835,"path":836,"stem":837,"icon":103,"description":838,"subcategory":13},"Typesense","\u002Fadd-ons\u002Ftypesense","5.add-ons\u002F1.typesense","Consume duxt's one build hook into a Typesense collection — every source, version and language, upserted by a stable id.",{"title":840,"path":841,"stem":842,"icon":843,"description":844,"subcategory":13},"Meilisearch","\u002Fadd-ons\u002Fmeilisearch","5.add-ons\u002F2.meilisearch","simple-icons:meilisearch","Add the official companion layer for atomic build-time indexing and optional browser search.",{"title":846,"path":847,"stem":848,"children":849,"icon":851,"description":852,"subcategory":13},"Credits","\u002Fcredits","6.credits\u002Findex",[850],{"title":846,"path":847,"stem":848,"icon":851,"description":852,"subcategory":13},"lucide:heart","What duxt is built on, and what it was built after.",{"title":854,"path":855,"stem":856,"children":857},"Conventions","\u002Fconventions","7.conventions",[858,862,868,873],{"title":854,"path":855,"stem":859,"icon":860,"description":861,"subcategory":13},"7.conventions\u002Findex","lucide:ruler","Project-specific rules — the ones a reader could not infer from the code.",{"title":863,"path":864,"stem":865,"icon":866,"description":867,"subcategory":13},"Branding","\u002Fconventions\u002Fbranding","7.conventions\u002F1.branding","lucide:shapes","The [d]uxt mark — where each asset is used, why the icon's brackets are redrawn, and the colours that are fixed.",{"title":869,"path":870,"stem":871,"icon":353,"description":872,"subcategory":13},"Icons","\u002Fconventions\u002Ficons","7.conventions\u002F2.icons","Four icon sets, and the one question that decides which of them draws a given mark.",{"title":874,"path":875,"stem":876,"icon":91,"description":877,"subcategory":13},"Dependency security","\u002Fconventions\u002Fdependency-security","7.conventions\u002F3.dependency-security","Review dependency advisories without hiding affected paths.",{"title":879,"path":880,"stem":881,"children":882},"Architecture decisions","\u002Fadr","99.adr",[883,887,892,897,902,907,912,917,922,927,932,937],{"title":879,"path":880,"stem":884,"icon":885,"description":886,"subcategory":13},"99.adr\u002Findex","lucide:gavel","The decision log — every architecture decision recorded for duxt.",{"title":888,"path":889,"stem":890,"icon":13,"description":891,"subcategory":13},"Build duxt as a layer carrying a module","\u002Fadr\u002F0001-build-duxt-as-a-layer-carrying-a-module","99.adr\u002F0001-build-duxt-as-a-layer-carrying-a-module","Distribute the theme as a Nuxt layer whose root is the package, rather than as a starter template.",{"title":893,"path":894,"stem":895,"icon":13,"description":896,"subcategory":13},"Generate the collections from one source list","\u002Fadr\u002F0002-generate-the-collections-from-one-source-list","99.adr\u002F0002-generate-the-collections-from-one-source-list","Compute Content collections from a compact sources list at config load time instead of having consumers declare them.",{"title":898,"path":899,"stem":900,"icon":13,"description":901,"subcategory":13},"Decide the URL prefixes at build time","\u002Fadr\u002F0003-decide-the-url-prefixes-at-build-time","99.adr\u002F0003-decide-the-url-prefixes-at-build-time","Whether a repository or version segment appears is settled by the source list before the first request, never per request.",{"title":903,"path":904,"stem":905,"icon":13,"description":906,"subcategory":13},"Render Markdown components with MDC","\u002Fadr\u002F0004-render-markdown-components-with-mdc","99.adr\u002F0004-render-markdown-components-with-mdc","Use Content's own MDC syntax for components inside Markdown rather than adopting MDX.",{"title":908,"path":909,"stem":910,"icon":13,"description":911,"subcategory":13},"Ship the layer without owner-specific links","\u002Fadr\u002F0005-ship-the-layer-without-owner-specific-links","99.adr\u002F0005-ship-the-layer-without-owner-specific-links","Every default that would name a specific project — repository, issue tracker, community, imprint — ships empty.",{"title":913,"path":914,"stem":915,"icon":13,"description":916,"subcategory":13},"Rebuild on a schedule rather than refresh at runtime","\u002Fadr\u002F0006-rebuild-on-a-schedule-rather-than-refresh-at-runtime","99.adr\u002F0006-rebuild-on-a-schedule-rather-than-refresh-at-runtime","A site reading another repository picks up its changes when it builds, and no runtime refresh is offered.",{"title":918,"path":919,"stem":920,"icon":13,"description":921,"subcategory":13},"Serve translations as collections of their own","\u002Fadr\u002F0007-serve-translations-as-collections-of-their-own","99.adr\u002F0007-serve-translations-as-collections-of-their-own","Add a locale dimension to a source rather than a locale segment to the content path.",{"title":923,"path":924,"stem":925,"icon":13,"description":926,"subcategory":13},"Build the theme on owned shadcn-vue components","\u002Fadr\u002F0008-build-the-theme-on-owned-shadcn-vue-components","99.adr\u002F0008-build-the-theme-on-owned-shadcn-vue-components","The layer holds the source of its interface components rather than importing them from a component library or a ready-made documentation theme.",{"title":928,"path":929,"stem":930,"icon":13,"description":931,"subcategory":13},"Take the SEO stack from the Nuxt SEO bundle","\u002Fadr\u002F0009-take-the-seo-stack-from-the-nuxt-seo-bundle","99.adr\u002F0009-take-the-seo-stack-from-the-nuxt-seo-bundle","The layer installs @nuxtjs\u002Fseo and hands it the head tags and structured data it used to write by hand, keeping only the rules that depend on versions and translations.",{"title":933,"path":934,"stem":935,"icon":13,"description":936,"subcategory":13},"Keep Content's per-collection search as the default","\u002Fadr\u002F0010-keep-contents-per-collection-search-as-the-default","99.adr\u002F0010-keep-contents-per-collection-search-as-the-default","One index across every source was measured against Content's one-index-per-collection search and is not the layer's default; the build-time hook makes it a provider layer instead.",{"title":938,"path":939,"stem":940,"icon":13,"description":941,"subcategory":13},"Host the provider layers in a Turborepo monorepo","\u002Fadr\u002F0011-host-the-provider-layers-in-a-turborepo-monorepo","99.adr\u002F0011-host-the-provider-layers-in-a-turborepo-monorepo","The layer moves to packages\u002Fduxt and the site to apps\u002Fwww, every published package versions and tags on its own as \u003Cname>@vX.Y.Z, and the own-repository decision recorded in",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":946},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M15.39 4.39a1 1 0 0 0 1.68-.474a2.5 2.5 0 1 1 3.014 3.015a1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474a2.5 2.5 0 1 0-3.014 3.015a1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474a2.5 2.5 0 1 1-3.014-3.015a1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474a2.5 2.5 0 1 0 3.014-3.015a1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":948},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"m21 21l-4.34-4.34\"\u002F>\u003Ccircle cx=\"11\" cy=\"11\" r=\"8\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":950},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09\"\u002F>\u003Cpath d=\"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z\"\u002F>\u003Cpath d=\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":952},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"m16.24 7.76l-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":954},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 5v16m8.001-2A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2z\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":956},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":958},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Zm-6.8-2.8l2-2m-5-1l2-2m-5-1l2-2m7 11l2-2\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":960},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m14 13l-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381M16 16l6-6m-.5.5l-8-8M8 8l6-6M8.5 7.5l8 8\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":962},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":964},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":966},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M10 8h.01M12 12h.01M14 8h.01M16 12h.01M18 8h.01M6 8h.01M7 16h10m-9-4h.01\"\u002F>\u003Crect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":968},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":943,"top":943,"width":970,"height":971,"rotate":943,"vFlip":945,"hFlip":945,"body":972},640,480,"\u003Cpath fill=\"#012169\" d=\"M0 0h640v480H0z\"\u002F>\u003Cpath fill=\"#fff\" d=\"m75 0l244 181L562 0h78v62L400 241l240 178v61h-80L320 301L81 480H0v-60l239-178L0 64V0z\"\u002F>\u003Cpath fill=\"#c8102e\" d=\"m424 281l216 159v40L369 281zm-184 20l6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z\"\u002F>\u003Cpath fill=\"#fff\" d=\"M241 0v480h160V0zM0 160v160h640V160z\"\u002F>\u003Cpath fill=\"#c8102e\" d=\"M0 193v96h640v-96zM273 0v480h96V0z\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":974},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"page":976,"from":2568,"asked":2568},{"id":977,"title":835,"body":978,"breadcrumb":1205,"category":13,"compare":13,"contributors":13,"copyPage":1205,"date":13,"description":838,"extension":2560,"feedback":1205,"fullWidth":945,"icon":103,"lastUpdated":13,"layout":13,"meta":2561,"navigation":1205,"pageInfo":1205,"page_title":13,"path":836,"prevNext":1205,"rawbody":2562,"redirectFrom":2563,"release":13,"search":1205,"seo":2565,"sitemap":2566,"stem":837,"subcategory":13,"toc":13,"__hash__":2567},"docs\u002F5.add-ons\u002F1.typesense.md",{"type":979,"value":980,"toc":2553},"minimark",[981,994,1006,1011,1019,1023,1134,1145,1148,2350,2354,2361,2425,2432,2436,2447,2480,2486,2490,2549],[982,983,984,985,989,990,993],"p",{},"duxt emits ",[986,987,988],"a",{"href":260},"one build-time hook",", and it hands over every page\nof every source, version and language as flat records. A site that already runs\n",[991,992,835],"strong",{}," turns those records into a collection of its own — without\nre-crawling the rendered site, and without reimplementing duxt's source, version\nand locale logic.",[995,996,999],"callout",{"title":997,"type":998},"The service is yours, not duxt's","info",[982,1000,1001,1002,1005],{},"duxt ships no Typesense SDK, credentials or service configuration. The optional companion layer owns that integration; you own the service and its keys. Without a provider or a custom listener, duxt ",[986,1003,1004],{"href":260},"builds no payload at all",".",[1007,1008,1010],"h2",{"id":1009},"use-the-companion-layer","Use the companion layer",[982,1012,1013,1014,1018],{},"For the packaged integration, install ",[1015,1016,1017],"code",{},"@kirchdev\u002Fduxt-typesense"," and extend it after duxt. It synchronizes the complete set through a staging collection and alias swap, removes the previous managed collection, and connects the existing search dialog with a search-only key. The steps below remain a recipe for custom synchronization.",[1020,1021],"package-managers",{"command":1022},"add @kirchdev\u002Fduxt-typesense",[1024,1025,1031],"pre",{"className":1026,"code":1027,"filename":1028,"language":1029,"meta":1030,"style":1030},"language-ts shiki shiki-themes github-light github-dark","export default defineNuxtConfig({\n  extends: ['@kirchdev\u002Fduxt', '@kirchdev\u002Fduxt-typesense'],\n  duxtTypesense: {\n    endpoint: process.env.TYPESENSE_ENDPOINT,\n    collection: 'docs',\n    adminKey: process.env.TYPESENSE_ADMIN_KEY,\n    searchKey: process.env.TYPESENSE_SEARCH_KEY\n  }\n})\n","nuxt.config.ts","ts","",[1015,1032,1033,1053,1072,1078,1091,1102,1113,1122,1128],{"__ignoreMap":1030},[1034,1035,1038,1042,1045,1049],"span",{"class":1036,"line":1037},"line",1,[1034,1039,1041],{"class":1040},"szBVR","export",[1034,1043,1044],{"class":1040}," default",[1034,1046,1048],{"class":1047},"sScJk"," defineNuxtConfig",[1034,1050,1052],{"class":1051},"sVt8B","({\n",[1034,1054,1056,1059,1063,1066,1069],{"class":1036,"line":1055},2,[1034,1057,1058],{"class":1051},"  extends: [",[1034,1060,1062],{"class":1061},"sZZnC","'@kirchdev\u002Fduxt'",[1034,1064,1065],{"class":1051},", ",[1034,1067,1068],{"class":1061},"'@kirchdev\u002Fduxt-typesense'",[1034,1070,1071],{"class":1051},"],\n",[1034,1073,1075],{"class":1036,"line":1074},3,[1034,1076,1077],{"class":1051},"  duxtTypesense: {\n",[1034,1079,1081,1084,1088],{"class":1036,"line":1080},4,[1034,1082,1083],{"class":1051},"    endpoint: process.env.",[1034,1085,1087],{"class":1086},"sj4cs","TYPESENSE_ENDPOINT",[1034,1089,1090],{"class":1051},",\n",[1034,1092,1094,1097,1100],{"class":1036,"line":1093},5,[1034,1095,1096],{"class":1051},"    collection: ",[1034,1098,1099],{"class":1061},"'docs'",[1034,1101,1090],{"class":1051},[1034,1103,1105,1108,1111],{"class":1036,"line":1104},6,[1034,1106,1107],{"class":1051},"    adminKey: process.env.",[1034,1109,1110],{"class":1086},"TYPESENSE_ADMIN_KEY",[1034,1112,1090],{"class":1051},[1034,1114,1116,1119],{"class":1036,"line":1115},7,[1034,1117,1118],{"class":1051},"    searchKey: process.env.",[1034,1120,1121],{"class":1086},"TYPESENSE_SEARCH_KEY\n",[1034,1123,1125],{"class":1036,"line":1124},8,[1034,1126,1127],{"class":1051},"  }\n",[1034,1129,1131],{"class":1036,"line":1130},9,[1034,1132,1133],{"class":1051},"})\n",[982,1135,1136,1137,1140,1141,1144],{},"Keep the admin key in build-only configuration. ",[1015,1138,1139],{},"searchKey"," must have only ",[1015,1142,1143],{},"documents:search"," for this alias, and Typesense must allow browser requests from your site.",[1007,1146,368],{"id":1147},"steps",[1147,1149,1150,1164,1167,1175,1359,1366,1386,1403,1415,1679,1686,1699,2174,2181,2192,2204,2338],{},[1151,1152,1153],"ol",{},[1154,1155,1156,1159,1160,1163],"li",{},[991,1157,1158],{},"Install the client in your site."," It is a build-time dependency: the sync\nruns in Node during ",[1015,1161,1162],{},"nuxt build",", never in the browser.",[1020,1165],{"command":1166},"add -D typesense",[1151,1168,1169],{"start":1055},[1154,1170,1171,1174],{},[991,1172,1173],{},"Declare the collection."," Every field a duxt record carries maps onto one\nTypesense field, and the two provenance fields are what a reader filters by:",[1024,1176,1179],{"className":1026,"code":1177,"filename":1178,"language":1029,"meta":1030,"style":1030},"import type { CollectionCreateSchema } from 'typesense';\n\nexport const docs: CollectionCreateSchema = {\n  name: 'docs',\n  fields: [\n    { name: 'url', type: 'string' },\n    { name: 'title', type: 'string' },\n    { name: 'content', type: 'string' },\n    { name: 'source', type: 'string', facet: true },\n    { name: 'version', type: 'string', facet: true, optional: true },\n    { name: 'locale', type: 'string', facet: true }\n  ]\n};\n","server\u002Ftypesense-schema.ts",[1015,1180,1181,1201,1207,1229,1238,1243,1260,1273,1286,1305,1328,1347,1353],{"__ignoreMap":1030},[1034,1182,1183,1186,1189,1192,1195,1198],{"class":1036,"line":1037},[1034,1184,1185],{"class":1040},"import",[1034,1187,1188],{"class":1040}," type",[1034,1190,1191],{"class":1051}," { CollectionCreateSchema } ",[1034,1193,1194],{"class":1040},"from",[1034,1196,1197],{"class":1061}," 'typesense'",[1034,1199,1200],{"class":1051},";\n",[1034,1202,1203],{"class":1036,"line":1055},[1034,1204,1206],{"emptyLinePlaceholder":1205},true,"\n",[1034,1208,1209,1211,1214,1217,1220,1223,1226],{"class":1036,"line":1074},[1034,1210,1041],{"class":1040},[1034,1212,1213],{"class":1040}," const",[1034,1215,1216],{"class":1086}," docs",[1034,1218,1219],{"class":1040},":",[1034,1221,1222],{"class":1047}," CollectionCreateSchema",[1034,1224,1225],{"class":1040}," =",[1034,1227,1228],{"class":1051}," {\n",[1034,1230,1231,1234,1236],{"class":1036,"line":1080},[1034,1232,1233],{"class":1051},"  name: ",[1034,1235,1099],{"class":1061},[1034,1237,1090],{"class":1051},[1034,1239,1240],{"class":1036,"line":1093},[1034,1241,1242],{"class":1051},"  fields: [\n",[1034,1244,1245,1248,1251,1254,1257],{"class":1036,"line":1104},[1034,1246,1247],{"class":1051},"    { name: ",[1034,1249,1250],{"class":1061},"'url'",[1034,1252,1253],{"class":1051},", type: ",[1034,1255,1256],{"class":1061},"'string'",[1034,1258,1259],{"class":1051}," },\n",[1034,1261,1262,1264,1267,1269,1271],{"class":1036,"line":1115},[1034,1263,1247],{"class":1051},[1034,1265,1266],{"class":1061},"'title'",[1034,1268,1253],{"class":1051},[1034,1270,1256],{"class":1061},[1034,1272,1259],{"class":1051},[1034,1274,1275,1277,1280,1282,1284],{"class":1036,"line":1124},[1034,1276,1247],{"class":1051},[1034,1278,1279],{"class":1061},"'content'",[1034,1281,1253],{"class":1051},[1034,1283,1256],{"class":1061},[1034,1285,1259],{"class":1051},[1034,1287,1288,1290,1293,1295,1297,1300,1303],{"class":1036,"line":1130},[1034,1289,1247],{"class":1051},[1034,1291,1292],{"class":1061},"'source'",[1034,1294,1253],{"class":1051},[1034,1296,1256],{"class":1061},[1034,1298,1299],{"class":1051},", facet: ",[1034,1301,1302],{"class":1086},"true",[1034,1304,1259],{"class":1051},[1034,1306,1308,1310,1313,1315,1317,1319,1321,1324,1326],{"class":1036,"line":1307},10,[1034,1309,1247],{"class":1051},[1034,1311,1312],{"class":1061},"'version'",[1034,1314,1253],{"class":1051},[1034,1316,1256],{"class":1061},[1034,1318,1299],{"class":1051},[1034,1320,1302],{"class":1086},[1034,1322,1323],{"class":1051},", optional: ",[1034,1325,1302],{"class":1086},[1034,1327,1259],{"class":1051},[1034,1329,1331,1333,1336,1338,1340,1342,1344],{"class":1036,"line":1330},11,[1034,1332,1247],{"class":1051},[1034,1334,1335],{"class":1061},"'locale'",[1034,1337,1253],{"class":1051},[1034,1339,1256],{"class":1061},[1034,1341,1299],{"class":1051},[1034,1343,1302],{"class":1086},[1034,1345,1346],{"class":1051}," }\n",[1034,1348,1350],{"class":1036,"line":1349},12,[1034,1351,1352],{"class":1051},"  ]\n",[1034,1354,1356],{"class":1036,"line":1355},13,[1034,1357,1358],{"class":1051},"};\n",[982,1360,1361,1362,1365],{},"Typed as ",[1015,1363,1364],{},"CollectionCreateSchema",", because step 4 hands this very object to\nTypesense to create the collection with.",[982,1367,1368,1371,1372,1374,1375,1377,1378,1381,1382,1385],{},[1015,1369,1370],{},"id"," is not in the list on purpose: Typesense already treats ",[1015,1373,1370],{}," as the\ndocument's primary key, and duxt's ",[1015,1376,1370],{}," is\n",[986,1379,1380],{"href":260},"a hex digest of the URL"," — valid as a key, identical on\nevery machine, and unchanged for as long as the page stays where it is. That\nis what lets the sync ",[991,1383,1384],{},"upsert"," instead of rebuild.",[982,1387,1388,1391,1392,1395,1396,1399,1400,1402],{},[1015,1389,1390],{},"version"," is ",[1015,1393,1394],{},"optional",", because a source with only one version carries none.\n",[1015,1397,1398],{},"source"," deliberately has the version stripped out of it, so a facet built on\nit survives a release and ",[1015,1401,1390],{}," beside it is what narrows to one.",[1151,1404,1405],{"start":1074},[1154,1406,1407,1410,1411,1414],{},[991,1408,1409],{},"Write the module that listens."," A Nuxt module in your own site is the\nwhole integration — ",[1015,1412,1413],{},"defineNuxtModule",", one hook, one import:",[1024,1416,1419],{"className":1026,"code":1417,"filename":1418,"language":1029,"meta":1030,"style":1030},"import { defineNuxtModule } from '@nuxt\u002Fkit';\nimport { Client } from 'typesense';\nimport type { DuxtSearchRecord } from '@kirchdev\u002Fduxt\u002Fsearch-records';\nimport { docs } from '..\u002Fserver\u002Ftypesense-schema';\n\nexport default defineNuxtModule({\n  meta: { name: 'typesense-sync' },\n  setup(_options, nuxt) {\n    const key = process.env.TYPESENSE_ADMIN_KEY;\n    \u002F\u002F No key is a local build, not a failure: skip rather than break it.\n    if (!key) return;\n\n    nuxt.hook('duxt:search:records', async (records) => {\n      const client = new Client({\n        nodes: [{ url: process.env.TYPESENSE_URL! }],\n        apiKey: key\n      });\n\n      await sync(client, records);\n    });\n  }\n});\n","modules\u002Ftypesense.ts",[1015,1420,1421,1435,1448,1464,1478,1482,1493,1503,1523,1540,1546,1565,1569,1600,1619,1633,1639,1645,1650,1662,1668,1673],{"__ignoreMap":1030},[1034,1422,1423,1425,1428,1430,1433],{"class":1036,"line":1037},[1034,1424,1185],{"class":1040},[1034,1426,1427],{"class":1051}," { defineNuxtModule } ",[1034,1429,1194],{"class":1040},[1034,1431,1432],{"class":1061}," '@nuxt\u002Fkit'",[1034,1434,1200],{"class":1051},[1034,1436,1437,1439,1442,1444,1446],{"class":1036,"line":1055},[1034,1438,1185],{"class":1040},[1034,1440,1441],{"class":1051}," { Client } ",[1034,1443,1194],{"class":1040},[1034,1445,1197],{"class":1061},[1034,1447,1200],{"class":1051},[1034,1449,1450,1452,1454,1457,1459,1462],{"class":1036,"line":1074},[1034,1451,1185],{"class":1040},[1034,1453,1188],{"class":1040},[1034,1455,1456],{"class":1051}," { DuxtSearchRecord } ",[1034,1458,1194],{"class":1040},[1034,1460,1461],{"class":1061}," '@kirchdev\u002Fduxt\u002Fsearch-records'",[1034,1463,1200],{"class":1051},[1034,1465,1466,1468,1471,1473,1476],{"class":1036,"line":1080},[1034,1467,1185],{"class":1040},[1034,1469,1470],{"class":1051}," { docs } ",[1034,1472,1194],{"class":1040},[1034,1474,1475],{"class":1061}," '..\u002Fserver\u002Ftypesense-schema'",[1034,1477,1200],{"class":1051},[1034,1479,1480],{"class":1036,"line":1093},[1034,1481,1206],{"emptyLinePlaceholder":1205},[1034,1483,1484,1486,1488,1491],{"class":1036,"line":1104},[1034,1485,1041],{"class":1040},[1034,1487,1044],{"class":1040},[1034,1489,1490],{"class":1047}," defineNuxtModule",[1034,1492,1052],{"class":1051},[1034,1494,1495,1498,1501],{"class":1036,"line":1115},[1034,1496,1497],{"class":1051},"  meta: { name: ",[1034,1499,1500],{"class":1061},"'typesense-sync'",[1034,1502,1259],{"class":1051},[1034,1504,1505,1508,1511,1515,1517,1520],{"class":1036,"line":1124},[1034,1506,1507],{"class":1047},"  setup",[1034,1509,1510],{"class":1051},"(",[1034,1512,1514],{"class":1513},"s4XuR","_options",[1034,1516,1065],{"class":1051},[1034,1518,1519],{"class":1513},"nuxt",[1034,1521,1522],{"class":1051},") {\n",[1034,1524,1525,1528,1531,1533,1536,1538],{"class":1036,"line":1130},[1034,1526,1527],{"class":1040},"    const",[1034,1529,1530],{"class":1086}," key",[1034,1532,1225],{"class":1040},[1034,1534,1535],{"class":1051}," process.env.",[1034,1537,1110],{"class":1086},[1034,1539,1200],{"class":1051},[1034,1541,1542],{"class":1036,"line":1307},[1034,1543,1545],{"class":1544},"sJ8bj","    \u002F\u002F No key is a local build, not a failure: skip rather than break it.\n",[1034,1547,1548,1551,1554,1557,1560,1563],{"class":1036,"line":1330},[1034,1549,1550],{"class":1040},"    if",[1034,1552,1553],{"class":1051}," (",[1034,1555,1556],{"class":1040},"!",[1034,1558,1559],{"class":1051},"key) ",[1034,1561,1562],{"class":1040},"return",[1034,1564,1200],{"class":1051},[1034,1566,1567],{"class":1036,"line":1349},[1034,1568,1206],{"emptyLinePlaceholder":1205},[1034,1570,1571,1574,1577,1579,1582,1584,1587,1589,1592,1595,1598],{"class":1036,"line":1355},[1034,1572,1573],{"class":1051},"    nuxt.",[1034,1575,1576],{"class":1047},"hook",[1034,1578,1510],{"class":1051},[1034,1580,1581],{"class":1061},"'duxt:search:records'",[1034,1583,1065],{"class":1051},[1034,1585,1586],{"class":1040},"async",[1034,1588,1553],{"class":1051},[1034,1590,1591],{"class":1513},"records",[1034,1593,1594],{"class":1051},") ",[1034,1596,1597],{"class":1040},"=>",[1034,1599,1228],{"class":1051},[1034,1601,1603,1606,1609,1611,1614,1617],{"class":1036,"line":1602},14,[1034,1604,1605],{"class":1040},"      const",[1034,1607,1608],{"class":1086}," client",[1034,1610,1225],{"class":1040},[1034,1612,1613],{"class":1040}," new",[1034,1615,1616],{"class":1047}," Client",[1034,1618,1052],{"class":1051},[1034,1620,1622,1625,1628,1630],{"class":1036,"line":1621},15,[1034,1623,1624],{"class":1051},"        nodes: [{ url: process.env.",[1034,1626,1627],{"class":1086},"TYPESENSE_URL",[1034,1629,1556],{"class":1040},[1034,1631,1632],{"class":1051}," }],\n",[1034,1634,1636],{"class":1036,"line":1635},16,[1034,1637,1638],{"class":1051},"        apiKey: key\n",[1034,1640,1642],{"class":1036,"line":1641},17,[1034,1643,1644],{"class":1051},"      });\n",[1034,1646,1648],{"class":1036,"line":1647},18,[1034,1649,1206],{"emptyLinePlaceholder":1205},[1034,1651,1653,1656,1659],{"class":1036,"line":1652},19,[1034,1654,1655],{"class":1040},"      await",[1034,1657,1658],{"class":1047}," sync",[1034,1660,1661],{"class":1051},"(client, records);\n",[1034,1663,1665],{"class":1036,"line":1664},20,[1034,1666,1667],{"class":1051},"    });\n",[1034,1669,1671],{"class":1036,"line":1670},21,[1034,1672,1127],{"class":1051},[1034,1674,1676],{"class":1036,"line":1675},22,[1034,1677,1678],{"class":1051},"});\n",[982,1680,1681,1682,1685],{},"The payload is ",[991,1683,1684],{},"frozen",". Map it into documents of your own — never rewrite\na record or sort the array in place, because every other listener is handed\nthe same objects.",[1151,1687,1688],{"start":1080},[1154,1689,1690,1693,1694,1698],{},[991,1691,1692],{},"Synchronise the whole set, and remove what is gone."," The hook hands over\nthe ",[1695,1696,1697],"em",{},"complete"," current record set on every build, so the set itself is the\ninstruction — anything the collection holds that is not in it has been\ndeleted, moved or renamed:",[1024,1700,1702],{"className":1026,"code":1701,"filename":1418,"language":1029,"meta":1030,"style":1030},"async function sync(client: Client, records: readonly DuxtSearchRecord[]) {\n  const collection = client.collections(docs.name);\n\n  \u002F\u002F Typesense creates nothing implicitly: importing into a collection\n  \u002F\u002F that does not exist fails outright, so the first build makes it.\n  if (!(await collection.exists())) await client.collections().create(docs);\n\n  await collection.documents().import(\n    records.map((record) => ({ ...record })),\n    { action: 'upsert' }\n  );\n\n  \u002F\u002F Everything the build did not hand over is no longer on the site.\n  const kept = new Set(records.map((record) => record.id));\n  const live = await collection.documents().export();\n\n  const stale = live\n    .split('\\n')\n    .filter(Boolean)\n    .map((line) => JSON.parse(line).id as string)\n    .filter((id) => !kept.has(id));\n\n  \u002F\u002F Delete in batches: every id goes into the filter string, and one\n  \u002F\u002F large rename would build one long enough for Typesense to reject.\n  for (let index = 0; index \u003C stale.length; index += 100) {\n    const batch = stale.slice(index, index + 100).join(',');\n    await collection.documents().delete({ filter_by: `id:[${batch}]` });\n  }\n}\n",[1015,1703,1704,1737,1756,1760,1765,1770,1808,1812,1829,1856,1866,1871,1875,1880,1910,1933,1937,1949,1970,1980,2013,2039,2043,2049,2054,2096,2133,2163,2168],{"__ignoreMap":1030},[1034,1705,1706,1708,1711,1713,1715,1718,1720,1722,1724,1726,1728,1731,1734],{"class":1036,"line":1037},[1034,1707,1586],{"class":1040},[1034,1709,1710],{"class":1040}," function",[1034,1712,1658],{"class":1047},[1034,1714,1510],{"class":1051},[1034,1716,1717],{"class":1513},"client",[1034,1719,1219],{"class":1040},[1034,1721,1616],{"class":1047},[1034,1723,1065],{"class":1051},[1034,1725,1591],{"class":1513},[1034,1727,1219],{"class":1040},[1034,1729,1730],{"class":1040}," readonly",[1034,1732,1733],{"class":1047}," DuxtSearchRecord",[1034,1735,1736],{"class":1051},"[]) {\n",[1034,1738,1739,1742,1745,1747,1750,1753],{"class":1036,"line":1055},[1034,1740,1741],{"class":1040},"  const",[1034,1743,1744],{"class":1086}," collection",[1034,1746,1225],{"class":1040},[1034,1748,1749],{"class":1051}," client.",[1034,1751,1752],{"class":1047},"collections",[1034,1754,1755],{"class":1051},"(docs.name);\n",[1034,1757,1758],{"class":1036,"line":1074},[1034,1759,1206],{"emptyLinePlaceholder":1205},[1034,1761,1762],{"class":1036,"line":1080},[1034,1763,1764],{"class":1544},"  \u002F\u002F Typesense creates nothing implicitly: importing into a collection\n",[1034,1766,1767],{"class":1036,"line":1093},[1034,1768,1769],{"class":1544},"  \u002F\u002F that does not exist fails outright, so the first build makes it.\n",[1034,1771,1772,1775,1777,1779,1781,1784,1787,1790,1793,1795,1797,1799,1802,1805],{"class":1036,"line":1104},[1034,1773,1774],{"class":1040},"  if",[1034,1776,1553],{"class":1051},[1034,1778,1556],{"class":1040},[1034,1780,1510],{"class":1051},[1034,1782,1783],{"class":1040},"await",[1034,1785,1786],{"class":1051}," collection.",[1034,1788,1789],{"class":1047},"exists",[1034,1791,1792],{"class":1051},"())) ",[1034,1794,1783],{"class":1040},[1034,1796,1749],{"class":1051},[1034,1798,1752],{"class":1047},[1034,1800,1801],{"class":1051},"().",[1034,1803,1804],{"class":1047},"create",[1034,1806,1807],{"class":1051},"(docs);\n",[1034,1809,1810],{"class":1036,"line":1115},[1034,1811,1206],{"emptyLinePlaceholder":1205},[1034,1813,1814,1817,1819,1822,1824,1826],{"class":1036,"line":1124},[1034,1815,1816],{"class":1040},"  await",[1034,1818,1786],{"class":1051},[1034,1820,1821],{"class":1047},"documents",[1034,1823,1801],{"class":1051},[1034,1825,1185],{"class":1047},[1034,1827,1828],{"class":1051},"(\n",[1034,1830,1831,1834,1837,1840,1843,1845,1847,1850,1853],{"class":1036,"line":1130},[1034,1832,1833],{"class":1051},"    records.",[1034,1835,1836],{"class":1047},"map",[1034,1838,1839],{"class":1051},"((",[1034,1841,1842],{"class":1513},"record",[1034,1844,1594],{"class":1051},[1034,1846,1597],{"class":1040},[1034,1848,1849],{"class":1051}," ({ ",[1034,1851,1852],{"class":1040},"...",[1034,1854,1855],{"class":1051},"record })),\n",[1034,1857,1858,1861,1864],{"class":1036,"line":1307},[1034,1859,1860],{"class":1051},"    { action: ",[1034,1862,1863],{"class":1061},"'upsert'",[1034,1865,1346],{"class":1051},[1034,1867,1868],{"class":1036,"line":1330},[1034,1869,1870],{"class":1051},"  );\n",[1034,1872,1873],{"class":1036,"line":1349},[1034,1874,1206],{"emptyLinePlaceholder":1205},[1034,1876,1877],{"class":1036,"line":1355},[1034,1878,1879],{"class":1544},"  \u002F\u002F Everything the build did not hand over is no longer on the site.\n",[1034,1881,1882,1884,1887,1889,1891,1894,1897,1899,1901,1903,1905,1907],{"class":1036,"line":1602},[1034,1883,1741],{"class":1040},[1034,1885,1886],{"class":1086}," kept",[1034,1888,1225],{"class":1040},[1034,1890,1613],{"class":1040},[1034,1892,1893],{"class":1047}," Set",[1034,1895,1896],{"class":1051},"(records.",[1034,1898,1836],{"class":1047},[1034,1900,1839],{"class":1051},[1034,1902,1842],{"class":1513},[1034,1904,1594],{"class":1051},[1034,1906,1597],{"class":1040},[1034,1908,1909],{"class":1051}," record.id));\n",[1034,1911,1912,1914,1917,1919,1922,1924,1926,1928,1930],{"class":1036,"line":1621},[1034,1913,1741],{"class":1040},[1034,1915,1916],{"class":1086}," live",[1034,1918,1225],{"class":1040},[1034,1920,1921],{"class":1040}," await",[1034,1923,1786],{"class":1051},[1034,1925,1821],{"class":1047},[1034,1927,1801],{"class":1051},[1034,1929,1041],{"class":1047},[1034,1931,1932],{"class":1051},"();\n",[1034,1934,1935],{"class":1036,"line":1635},[1034,1936,1206],{"emptyLinePlaceholder":1205},[1034,1938,1939,1941,1944,1946],{"class":1036,"line":1641},[1034,1940,1741],{"class":1040},[1034,1942,1943],{"class":1086}," stale",[1034,1945,1225],{"class":1040},[1034,1947,1948],{"class":1051}," live\n",[1034,1950,1951,1954,1957,1959,1962,1965,1967],{"class":1036,"line":1647},[1034,1952,1953],{"class":1051},"    .",[1034,1955,1956],{"class":1047},"split",[1034,1958,1510],{"class":1051},[1034,1960,1961],{"class":1061},"'",[1034,1963,1964],{"class":1086},"\\n",[1034,1966,1961],{"class":1061},[1034,1968,1969],{"class":1051},")\n",[1034,1971,1972,1974,1977],{"class":1036,"line":1652},[1034,1973,1953],{"class":1051},[1034,1975,1976],{"class":1047},"filter",[1034,1978,1979],{"class":1051},"(Boolean)\n",[1034,1981,1982,1984,1986,1988,1990,1992,1994,1997,1999,2002,2005,2008,2011],{"class":1036,"line":1664},[1034,1983,1953],{"class":1051},[1034,1985,1836],{"class":1047},[1034,1987,1839],{"class":1051},[1034,1989,1036],{"class":1513},[1034,1991,1594],{"class":1051},[1034,1993,1597],{"class":1040},[1034,1995,1996],{"class":1086}," JSON",[1034,1998,1005],{"class":1051},[1034,2000,2001],{"class":1047},"parse",[1034,2003,2004],{"class":1051},"(line).id ",[1034,2006,2007],{"class":1040},"as",[1034,2009,2010],{"class":1086}," string",[1034,2012,1969],{"class":1051},[1034,2014,2015,2017,2019,2021,2023,2025,2027,2030,2033,2036],{"class":1036,"line":1670},[1034,2016,1953],{"class":1051},[1034,2018,1976],{"class":1047},[1034,2020,1839],{"class":1051},[1034,2022,1370],{"class":1513},[1034,2024,1594],{"class":1051},[1034,2026,1597],{"class":1040},[1034,2028,2029],{"class":1040}," !",[1034,2031,2032],{"class":1051},"kept.",[1034,2034,2035],{"class":1047},"has",[1034,2037,2038],{"class":1051},"(id));\n",[1034,2040,2041],{"class":1036,"line":1675},[1034,2042,1206],{"emptyLinePlaceholder":1205},[1034,2044,2046],{"class":1036,"line":2045},23,[1034,2047,2048],{"class":1544},"  \u002F\u002F Delete in batches: every id goes into the filter string, and one\n",[1034,2050,2051],{"class":1036,"line":944},[1034,2052,2053],{"class":1544},"  \u002F\u002F large rename would build one long enough for Typesense to reject.\n",[1034,2055,2057,2060,2062,2065,2068,2071,2074,2077,2080,2083,2086,2088,2091,2094],{"class":1036,"line":2056},25,[1034,2058,2059],{"class":1040},"  for",[1034,2061,1553],{"class":1051},[1034,2063,2064],{"class":1040},"let",[1034,2066,2067],{"class":1051}," index ",[1034,2069,2070],{"class":1040},"=",[1034,2072,2073],{"class":1086}," 0",[1034,2075,2076],{"class":1051},"; index ",[1034,2078,2079],{"class":1040},"\u003C",[1034,2081,2082],{"class":1051}," stale.",[1034,2084,2085],{"class":1086},"length",[1034,2087,2076],{"class":1051},[1034,2089,2090],{"class":1040},"+=",[1034,2092,2093],{"class":1086}," 100",[1034,2095,1522],{"class":1051},[1034,2097,2099,2101,2104,2106,2108,2111,2114,2117,2119,2122,2125,2127,2130],{"class":1036,"line":2098},26,[1034,2100,1527],{"class":1040},[1034,2102,2103],{"class":1086}," batch",[1034,2105,1225],{"class":1040},[1034,2107,2082],{"class":1051},[1034,2109,2110],{"class":1047},"slice",[1034,2112,2113],{"class":1051},"(index, index ",[1034,2115,2116],{"class":1040},"+",[1034,2118,2093],{"class":1086},[1034,2120,2121],{"class":1051},").",[1034,2123,2124],{"class":1047},"join",[1034,2126,1510],{"class":1051},[1034,2128,2129],{"class":1061},"','",[1034,2131,2132],{"class":1051},");\n",[1034,2134,2136,2139,2141,2143,2145,2148,2151,2154,2157,2160],{"class":1036,"line":2135},27,[1034,2137,2138],{"class":1040},"    await",[1034,2140,1786],{"class":1051},[1034,2142,1821],{"class":1047},[1034,2144,1801],{"class":1051},[1034,2146,2147],{"class":1047},"delete",[1034,2149,2150],{"class":1051},"({ filter_by: ",[1034,2152,2153],{"class":1061},"`id:[${",[1034,2155,2156],{"class":1051},"batch",[1034,2158,2159],{"class":1061},"}]`",[1034,2161,2162],{"class":1051}," });\n",[1034,2164,2166],{"class":1036,"line":2165},28,[1034,2167,1127],{"class":1051},[1034,2169,2171],{"class":1036,"line":2170},29,[1034,2172,2173],{"class":1051},"}\n",[982,2175,2176,2177,2180],{},"The collection is created on the first run and left alone afterwards, and\nthe stale ids are deleted ",[991,2178,2179],{},"in batches"," — Typesense takes the filter as one\nstring, so a rename that moves a whole source would otherwise build one it\nrejects.",[995,2182,2185],{"title":2183,"type":2184},"Or swap an alias instead","tip",[982,2186,2187,2188,2191],{},"Import into a collection named for the build, then point a Typesense\n",[991,2189,2190],{},"alias"," at it and drop the previous one. Each build creates its own\ncollection, so neither the existence check nor the batched delete is needed,\nand readers never see a half-written index — at the cost of reindexing\neverything on every build rather than only what moved.",[1151,2193,2194],{"start":1093},[1154,2195,2196,2199,2200,2203],{},[991,2197,2198],{},"Search from the browser with a search-only key."," The admin key above signs\nwrites and must never reach a page. Issue a ",[991,2201,2202],{},"scoped, search-only"," key for\nthe client, and filter on the facets the schema declared:",[1024,2205,2207],{"className":1026,"code":2206,"language":1029,"meta":1030,"style":1030},"\u002F\u002F `locale` is the language the CONTENT is in, not the interface language.\n\u002F\u002F `version` is absent on an unversioned source, so the clause is added\n\u002F\u002F only when there is one — pasted in flat, it filters on `undefined`.\nconst filters = [`locale:${locale}`];\nif (version) filters.push(`version:${version}`);\n\nconst results = await client.collections('docs').documents().search({\n  q: query,\n  query_by: 'title,content',\n  filter_by: filters.join(' && ')\n});\n",[1015,2208,2209,2214,2219,2224,2249,2271,2275,2305,2310,2320,2334],{"__ignoreMap":1030},[1034,2210,2211],{"class":1036,"line":1037},[1034,2212,2213],{"class":1544},"\u002F\u002F `locale` is the language the CONTENT is in, not the interface language.\n",[1034,2215,2216],{"class":1036,"line":1055},[1034,2217,2218],{"class":1544},"\u002F\u002F `version` is absent on an unversioned source, so the clause is added\n",[1034,2220,2221],{"class":1036,"line":1074},[1034,2222,2223],{"class":1544},"\u002F\u002F only when there is one — pasted in flat, it filters on `undefined`.\n",[1034,2225,2226,2229,2232,2234,2237,2240,2243,2246],{"class":1036,"line":1080},[1034,2227,2228],{"class":1040},"const",[1034,2230,2231],{"class":1086}," filters",[1034,2233,1225],{"class":1040},[1034,2235,2236],{"class":1051}," [",[1034,2238,2239],{"class":1061},"`locale:${",[1034,2241,2242],{"class":1051},"locale",[1034,2244,2245],{"class":1061},"}`",[1034,2247,2248],{"class":1051},"];\n",[1034,2250,2251,2254,2257,2260,2262,2265,2267,2269],{"class":1036,"line":1093},[1034,2252,2253],{"class":1040},"if",[1034,2255,2256],{"class":1051}," (version) filters.",[1034,2258,2259],{"class":1047},"push",[1034,2261,1510],{"class":1051},[1034,2263,2264],{"class":1061},"`version:${",[1034,2266,1390],{"class":1051},[1034,2268,2245],{"class":1061},[1034,2270,2132],{"class":1051},[1034,2272,2273],{"class":1036,"line":1104},[1034,2274,1206],{"emptyLinePlaceholder":1205},[1034,2276,2277,2279,2282,2284,2286,2288,2290,2292,2294,2296,2298,2300,2303],{"class":1036,"line":1115},[1034,2278,2228],{"class":1040},[1034,2280,2281],{"class":1086}," results",[1034,2283,1225],{"class":1040},[1034,2285,1921],{"class":1040},[1034,2287,1749],{"class":1051},[1034,2289,1752],{"class":1047},[1034,2291,1510],{"class":1051},[1034,2293,1099],{"class":1061},[1034,2295,2121],{"class":1051},[1034,2297,1821],{"class":1047},[1034,2299,1801],{"class":1051},[1034,2301,2302],{"class":1047},"search",[1034,2304,1052],{"class":1051},[1034,2306,2307],{"class":1036,"line":1124},[1034,2308,2309],{"class":1051},"  q: query,\n",[1034,2311,2312,2315,2318],{"class":1036,"line":1130},[1034,2313,2314],{"class":1051},"  query_by: ",[1034,2316,2317],{"class":1061},"'title,content'",[1034,2319,1090],{"class":1051},[1034,2321,2322,2325,2327,2329,2332],{"class":1036,"line":1307},[1034,2323,2324],{"class":1051},"  filter_by: filters.",[1034,2326,2124],{"class":1047},[1034,2328,1510],{"class":1051},[1034,2330,2331],{"class":1061},"' && '",[1034,2333,1969],{"class":1051},[1034,2335,2336],{"class":1036,"line":1330},[1034,2337,1678],{"class":1051},[1151,2339,2340],{"start":1104},[1154,2341,2342,2345,2346,2349],{},[991,2343,2344],{},"Check one build end to end."," Run a build with the key set, and confirm the\ncollection holds a record for a page in ",[991,2347,2348],{},"every"," source, version and\nlanguage the site serves — not only the default one. The first build creates\nthe collection; every build after it upserts into the same one.",[1007,2351,2353],{"id":2352},"what-the-records-already-settle-for-you","What the records already settle for you",[982,2355,2356,2357,2360],{},"Four properties of the payload are what make a sync this short correct at all,\nand all four are ",[986,2358,2359],{"href":260},"the hook's contract"," rather than this\nguide's advice:",[2362,2363,2364,2378],"table",{},[2365,2366,2367],"thead",{},[2368,2369,2370,2375],"tr",{},[2371,2372,2374],"th",{"align":2373},"left","Property",[2371,2376,2377],{"align":2373},"What it buys the sync",[2379,2380,2381,2398,2409,2417],"tbody",{},[2368,2382,2383,2392],{},[2384,2385,2386,2388,2389],"td",{"align":2373},[1015,2387,1370],{}," is derived from ",[1015,2390,2391],{},"url",[2384,2393,2394,2395,2397],{"align":2373},"A stable primary key, so ",[1015,2396,1384],{}," is enough and a rebuild is never needed",[2368,2399,2400,2406],{},[2384,2401,2402,2403,2405],{"align":2373},"The payload is the ",[991,2404,1697],{}," set",[2384,2407,2408],{"align":2373},"Removal is a diff against one build, with no crawl and no bookkeeping",[2368,2410,2411,2414],{},[2384,2412,2413],{"align":2373},"duxt does not fire on an empty parse",[2384,2415,2416],{"align":2373},"A build that parsed nothing can never tell you to empty the index",[2368,2418,2419,2422],{},[2384,2420,2421],{"align":2373},"Order is deterministic",[2384,2423,2424],{"align":2373},"Two builds differ exactly where the site did",[982,2426,2427,2428,2431],{},"A page that wrote ",[1015,2429,2430],{},"search: false",", and a translation in a language the site does\nnot route, produce no records — so neither reaches Typesense.",[1007,2433,2435],{"id":2434},"making-it-a-package","Making it a package",[982,2437,2438,2439,2442,2443,2446],{},"The module above is ~40 lines and belongs to one site. Once a second site needs\nit, the way to share it is ",[991,2440,2441],{},"a Nuxt layer",", not a plugin: a layer carries the\nmodule, its ",[1015,2444,2445],{},"app.config"," defaults and its components in one versioned package,\nand a consumer adds it beside duxt.",[1024,2448,2450],{"className":1026,"code":2449,"filename":1028,"language":1029,"meta":1030,"style":1030},"export default defineNuxtConfig({\n  extends: ['@kirchdev\u002Fduxt', 'duxt-typesense']\n});\n",[1015,2451,2452,2462,2476],{"__ignoreMap":1030},[1034,2453,2454,2456,2458,2460],{"class":1036,"line":1037},[1034,2455,1041],{"class":1040},[1034,2457,1044],{"class":1040},[1034,2459,1048],{"class":1047},[1034,2461,1052],{"class":1051},[1034,2463,2464,2466,2468,2470,2473],{"class":1036,"line":1055},[1034,2465,1058],{"class":1051},[1034,2467,1062],{"class":1061},[1034,2469,1065],{"class":1051},[1034,2471,2472],{"class":1061},"'duxt-typesense'",[1034,2474,2475],{"class":1051},"]\n",[1034,2477,2478],{"class":1036,"line":1074},[1034,2479,1678],{"class":1051},[982,2481,2482,2483,1005],{},"That layer owns the credentials, the service configuration, the sync policy and\nthe browser-side search UI. duxt itself gains none of them —\n",[986,2484,2485],{"href":260},"which is the whole reason the hook is shaped the way it is",[1007,2487,2489],{"id":2488},"checklist","Checklist",[2491,2492,2495,2508,2514,2527,2537,2543],"ul",{"className":2493},[2494],"contains-task-list",[1154,2496,2499,2503,2504,2507],{"className":2497},[2498],"task-list-item",[2500,2501],"input",{"disabled":1205,"type":2502},"checkbox"," The client is a dependency of ",[991,2505,2506],{},"your"," site, not of the layer",[1154,2509,2511,2513],{"className":2510},[2498],[2500,2512],{"disabled":1205,"type":2502}," The admin key lives in the build environment and never reaches a page",[1154,2515,2517,2519,2520,1065,2522,2524,2525],{"className":2516},[2498],[2500,2518],{"disabled":1205,"type":2502}," The collection is created on the first build, and facets ",[1015,2521,1398],{},[1015,2523,1390],{}," and ",[1015,2526,2242],{},[1154,2528,2530,2532,2533,2536],{"className":2529},[2498],[2500,2531],{"disabled":1205,"type":2502}," Records no longer handed over are removed — by a ",[991,2534,2535],{},"batched"," diff, or by an alias swap",[1154,2538,2540,2542],{"className":2539},[2498],[2500,2541],{"disabled":1205,"type":2502}," A build without the key skips the sync instead of failing",[1154,2544,2546,2548],{"className":2545},[2498],[2500,2547],{"disabled":1205,"type":2502}," Every source, version and language is represented in the collection",[2550,2551,2552],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":1030,"searchDepth":1055,"depth":1093,"links":2554},[2555,2556,2557,2558,2559],{"id":1009,"depth":1055,"text":1010},{"id":1147,"depth":1055,"text":368},{"id":2352,"depth":1055,"text":2353},{"id":2434,"depth":1055,"text":2435},{"id":2488,"depth":1055,"text":2489},"md",{},"---\ntitle: Typesense\ndescription: Consume duxt's one build hook into a Typesense collection — every source, version and language, upserted by a stable id.\nicon: lucide:search\nredirectFrom:\n  - \u002Fguides\u002Fsend-your-pages-to-typesense\n---\n\nduxt emits [one build-time hook](\u002Freference\u002Fhooks), and it hands over every page\nof every source, version and language as flat records. A site that already runs\n**Typesense** turns those records into a collection of its own — without\nre-crawling the rendered site, and without reimplementing duxt's source, version\nand locale logic.\n\n::callout{type=\"info\" title=\"The service is yours, not duxt's\"}\nduxt ships no Typesense SDK, credentials or service configuration. The optional companion layer owns that integration; you own the service and its keys. Without a provider or a custom listener, duxt [builds no payload at all](\u002Freference\u002Fhooks).\n::\n\n## Use the companion layer\n\nFor the packaged integration, install `@kirchdev\u002Fduxt-typesense` and extend it after duxt. It synchronizes the complete set through a staging collection and alias swap, removes the previous managed collection, and connects the existing search dialog with a search-only key. The steps below remain a recipe for custom synchronization.\n\n::package-managers{command=\"add @kirchdev\u002Fduxt-typesense\"}\n::\n\n```ts [nuxt.config.ts]\nexport default defineNuxtConfig({\n  extends: ['@kirchdev\u002Fduxt', '@kirchdev\u002Fduxt-typesense'],\n  duxtTypesense: {\n    endpoint: process.env.TYPESENSE_ENDPOINT,\n    collection: 'docs',\n    adminKey: process.env.TYPESENSE_ADMIN_KEY,\n    searchKey: process.env.TYPESENSE_SEARCH_KEY\n  }\n})\n```\n\nKeep the admin key in build-only configuration. `searchKey` must have only `documents:search` for this alias, and Typesense must allow browser requests from your site.\n\n## Steps\n\n::steps\n\n1. **Install the client in your site.** It is a build-time dependency: the sync\n   runs in Node during `nuxt build`, never in the browser.\n\n   ::package-managers{command=\"add -D typesense\"}\n   ::\n\n2. **Declare the collection.** Every field a duxt record carries maps onto one\n   Typesense field, and the two provenance fields are what a reader filters by:\n\n   ```ts [server\u002Ftypesense-schema.ts]\n   import type { CollectionCreateSchema } from 'typesense';\n\n   export const docs: CollectionCreateSchema = {\n     name: 'docs',\n     fields: [\n       { name: 'url', type: 'string' },\n       { name: 'title', type: 'string' },\n       { name: 'content', type: 'string' },\n       { name: 'source', type: 'string', facet: true },\n       { name: 'version', type: 'string', facet: true, optional: true },\n       { name: 'locale', type: 'string', facet: true }\n     ]\n   };\n   ```\n\n   Typed as `CollectionCreateSchema`, because step 4 hands this very object to\n   Typesense to create the collection with.\n\n   `id` is not in the list on purpose: Typesense already treats `id` as the\n   document's primary key, and duxt's `id` is\n   [a hex digest of the URL](\u002Freference\u002Fhooks) — valid as a key, identical on\n   every machine, and unchanged for as long as the page stays where it is. That\n   is what lets the sync **upsert** instead of rebuild.\n\n   `version` is `optional`, because a source with only one version carries none.\n   `source` deliberately has the version stripped out of it, so a facet built on\n   it survives a release and `version` beside it is what narrows to one.\n\n3. **Write the module that listens.** A Nuxt module in your own site is the\n   whole integration — `defineNuxtModule`, one hook, one import:\n\n   ```ts [modules\u002Ftypesense.ts]\n   import { defineNuxtModule } from '@nuxt\u002Fkit';\n   import { Client } from 'typesense';\n   import type { DuxtSearchRecord } from '@kirchdev\u002Fduxt\u002Fsearch-records';\n   import { docs } from '..\u002Fserver\u002Ftypesense-schema';\n\n   export default defineNuxtModule({\n     meta: { name: 'typesense-sync' },\n     setup(_options, nuxt) {\n       const key = process.env.TYPESENSE_ADMIN_KEY;\n       \u002F\u002F No key is a local build, not a failure: skip rather than break it.\n       if (!key) return;\n\n       nuxt.hook('duxt:search:records', async (records) => {\n         const client = new Client({\n           nodes: [{ url: process.env.TYPESENSE_URL! }],\n           apiKey: key\n         });\n\n         await sync(client, records);\n       });\n     }\n   });\n   ```\n\n   The payload is **frozen**. Map it into documents of your own — never rewrite\n   a record or sort the array in place, because every other listener is handed\n   the same objects.\n\n4. **Synchronise the whole set, and remove what is gone.** The hook hands over\n   the *complete* current record set on every build, so the set itself is the\n   instruction — anything the collection holds that is not in it has been\n   deleted, moved or renamed:\n\n   ```ts [modules\u002Ftypesense.ts]\n   async function sync(client: Client, records: readonly DuxtSearchRecord[]) {\n     const collection = client.collections(docs.name);\n\n     \u002F\u002F Typesense creates nothing implicitly: importing into a collection\n     \u002F\u002F that does not exist fails outright, so the first build makes it.\n     if (!(await collection.exists())) await client.collections().create(docs);\n\n     await collection.documents().import(\n       records.map((record) => ({ ...record })),\n       { action: 'upsert' }\n     );\n\n     \u002F\u002F Everything the build did not hand over is no longer on the site.\n     const kept = new Set(records.map((record) => record.id));\n     const live = await collection.documents().export();\n\n     const stale = live\n       .split('\\n')\n       .filter(Boolean)\n       .map((line) => JSON.parse(line).id as string)\n       .filter((id) => !kept.has(id));\n\n     \u002F\u002F Delete in batches: every id goes into the filter string, and one\n     \u002F\u002F large rename would build one long enough for Typesense to reject.\n     for (let index = 0; index \u003C stale.length; index += 100) {\n       const batch = stale.slice(index, index + 100).join(',');\n       await collection.documents().delete({ filter_by: `id:[${batch}]` });\n     }\n   }\n   ```\n\n   The collection is created on the first run and left alone afterwards, and\n   the stale ids are deleted **in batches** — Typesense takes the filter as one\n   string, so a rename that moves a whole source would otherwise build one it\n   rejects.\n\n   ::callout{type=\"tip\" title=\"Or swap an alias instead\"}\n   Import into a collection named for the build, then point a Typesense\n   **alias** at it and drop the previous one. Each build creates its own\n   collection, so neither the existence check nor the batched delete is needed,\n   and readers never see a half-written index — at the cost of reindexing\n   everything on every build rather than only what moved.\n   ::\n\n5. **Search from the browser with a search-only key.** The admin key above signs\n   writes and must never reach a page. Issue a **scoped, search-only** key for\n   the client, and filter on the facets the schema declared:\n\n   ```ts\n   \u002F\u002F `locale` is the language the CONTENT is in, not the interface language.\n   \u002F\u002F `version` is absent on an unversioned source, so the clause is added\n   \u002F\u002F only when there is one — pasted in flat, it filters on `undefined`.\n   const filters = [`locale:${locale}`];\n   if (version) filters.push(`version:${version}`);\n\n   const results = await client.collections('docs').documents().search({\n     q: query,\n     query_by: 'title,content',\n     filter_by: filters.join(' && ')\n   });\n   ```\n\n6. **Check one build end to end.** Run a build with the key set, and confirm the\n   collection holds a record for a page in **every** source, version and\n   language the site serves — not only the default one. The first build creates\n   the collection; every build after it upserts into the same one.\n\n::\n\n## What the records already settle for you\n\nFour properties of the payload are what make a sync this short correct at all,\nand all four are [the hook's contract](\u002Freference\u002Fhooks) rather than this\nguide's advice:\n\n| Property | What it buys the sync |\n| :--- | :--- |\n| `id` is derived from `url` | A stable primary key, so `upsert` is enough and a rebuild is never needed |\n| The payload is the **complete** set | Removal is a diff against one build, with no crawl and no bookkeeping |\n| duxt does not fire on an empty parse | A build that parsed nothing can never tell you to empty the index |\n| Order is deterministic | Two builds differ exactly where the site did |\n\nA page that wrote `search: false`, and a translation in a language the site does\nnot route, produce no records — so neither reaches Typesense.\n\n## Making it a package\n\nThe module above is ~40 lines and belongs to one site. Once a second site needs\nit, the way to share it is **a Nuxt layer**, not a plugin: a layer carries the\nmodule, its `app.config` defaults and its components in one versioned package,\nand a consumer adds it beside duxt.\n\n```ts [nuxt.config.ts]\nexport default defineNuxtConfig({\n  extends: ['@kirchdev\u002Fduxt', 'duxt-typesense']\n});\n```\n\nThat layer owns the credentials, the service configuration, the sync policy and\nthe browser-side search UI. duxt itself gains none of them —\n[which is the whole reason the hook is shaped the way it is](\u002Freference\u002Fhooks).\n\n## Checklist\n\n- [ ] The client is a dependency of **your** site, not of the layer\n- [ ] The admin key lives in the build environment and never reaches a page\n- [ ] The collection is created on the first build, and facets `source`, `version` and `locale`\n- [ ] Records no longer handed over are removed — by a **batched** diff, or by an alias swap\n- [ ] A build without the key skips the sync instead of failing\n- [ ] Every source, version and language is represented in the collection\n",[2564],"\u002Fguides\u002Fsend-your-pages-to-typesense",{"title":835,"description":838},{"loc":836},"tjZA3XNjnfeTwksvrFa7v-J137dUWumYFDVYI17ILEc","en-GB",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2570},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2572},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M15 5.88L14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88M7 10v12\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2574},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 18.12L10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88M17 14V2\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2576},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2578},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M12 8v4m0 4h.01\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2580},"\u003Cpath fill=\"currentColor\" d=\"M20.317 4.37a19.8 19.8 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.3 18.3 0 0 0-5.487 0a13 13 0 0 0-.617-1.25a.08.08 0 0 0-.079-.037A19.7 19.7 0 0 0 3.677 4.37a.1.1 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.08.08 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.08.08 0 0 0 .084-.028a14 14 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13 13 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10 10 0 0 0 .372-.292a.07.07 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.07.07 0 0 1 .078.01q.181.149.373.292a.077.077 0 0 1-.006.127a12.3 12.3 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.08.08 0 0 0 .084.028a19.8 19.8 0 0 0 6.002-3.03a.08.08 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.06.06 0 0 0-.031-.03M8.02 15.33c-1.182 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418m7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2582},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 5v16m4-8h2m-2-4h2m2.001 10A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2zM6 13h2M6 9h2\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2584},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2586,"hidden":1205},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4\"\u002F>\u003Cpath d=\"M14 2v4a2 2 0 0 0 2 2h4M5 12l-3 3l3 3m4 0l3-3l-3-3\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2588},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M12 16v-4m0-4h.01\"\u002F>\u003C\u002Fg>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2590},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2592},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2594},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",{"pnpm":2596,"npm":2597,"yarn":2598,"bun":2599},"\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">pnpm\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> add\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> @kirchdev\u002Fduxt-typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">npm\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> install\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> @kirchdev\u002Fduxt-typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">yarn\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> add\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> @kirchdev\u002Fduxt-typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">bun\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> add\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> @kirchdev\u002Fduxt-typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"pnpm":2601,"npm":2602,"yarn":2603,"bun":2604},"\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">pnpm\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> add\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -D\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">npm\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> install\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -D\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">yarn\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> add\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -D\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">bun\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> add\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -D\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> typesense\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2606},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 18l6-6l-6-6\"\u002F>",{"left":943,"top":943,"width":2608,"height":2608,"rotate":943,"vFlip":945,"hFlip":945,"body":2609},32,"\u003Cpath fill=\"#f9ad00\" d=\"M30 10.75h-8.749V2H30Zm-9.626 0h-8.75V2h8.75Zm-9.625 0H2V2h8.749ZM30 20.375h-8.749v-8.75H30Z\"\u002F>\u003Cpath fill=\"#4e4e4e\" d=\"M20.374 20.375h-8.75v-8.75h8.75Zm0 9.625h-8.75v-8.75h8.75ZM30 30h-8.749v-8.75H30Zm-19.251 0H2v-8.75h8.749Z\"\u002F>",{"left":943,"top":943,"width":2608,"height":2608,"rotate":943,"vFlip":945,"hFlip":945,"body":2611},"\u003Cpath fill=\"#f9ad00\" d=\"M30 10.75h-8.749V2H30Zm-9.626 0h-8.75V2h8.75Zm-9.625 0H2V2h8.749ZM30 20.375h-8.749v-8.75H30Z\"\u002F>\u003Cpath fill=\"#fff\" d=\"M20.374 20.375h-8.75v-8.75h8.75Zm0 9.625h-8.75v-8.75h8.75ZM30 30h-8.749v-8.75H30Zm-19.251 0H2v-8.75h8.749Z\"\u002F>",{"left":943,"top":943,"width":2608,"height":2608,"rotate":943,"vFlip":945,"hFlip":945,"body":2613},"\u003Cpath fill=\"#c12127\" d=\"M2 2h28v28H2\"\u002F>\u003Cpath fill=\"#fff\" d=\"M7.25 7.25h17.5v17.5h-3.5v-14H16v14H7.25\"\u002F>",{"left":943,"top":943,"width":2608,"height":2608,"rotate":943,"vFlip":945,"hFlip":945,"body":2615},"\u003Cpath fill=\"#2188b6\" d=\"M28.208 24.409a10.5 10.5 0 0 0-3.959 1.822a23.7 23.7 0 0 1-5.835 2.642a1.63 1.63 0 0 1-.983.55a62 62 0 0 1-6.447.577c-1.163.009-1.876-.3-2.074-.776a1.573 1.573 0 0 1 .866-2.074a4 4 0 0 1-.514-.379c-.171-.171-.352-.514-.406-.388c-.225.55-.343 1.894-.947 2.5c-.83.839-2.4.559-3.328.072c-1.019-.541.072-1.813.072-1.813a.73.73 0 0 1-.992-.343a4.85 4.85 0 0 1-.667-2.949a5.37 5.37 0 0 1 1.749-2.895a9.3 9.3 0 0 1 .658-4.4a10.45 10.45 0 0 1 3.165-3.661S6.628 10.747 7.35 8.817c.469-1.262.658-1.253.812-1.308a3.6 3.6 0 0 0 1.452-.857a5.27 5.27 0 0 1 4.41-1.7S15.2 1.4 16.277 2.09a18.4 18.4 0 0 1 1.533 2.886s1.281-.748 1.425-.469a11.33 11.33 0 0 1 .523 6.132a14 14 0 0 1-2.6 5.411c-.135.225 1.551.938 2.615 3.887c.983 2.7.108 4.96.262 5.212c.027.045.036.063.036.063s1.127.09 3.391-1.308a8.5 8.5 0 0 1 4.277-1.604a1.081 1.081 0 0 1 .469 2.11Z\"\u002F>",{"left":943,"top":943,"width":2608,"height":2608,"rotate":943,"vFlip":945,"hFlip":945,"body":2617},"\u003Cpath fill=\"#fbf0df\" d=\"M29 17c0 5.65-5.82 10.23-13 10.23S3 22.61 3 17c0-3.5 2.24-6.6 5.66-8.44S14.21 4.81 16 4.81s3.32 1.54 7.34 3.71C26.76 10.36 29 13.46 29 17\"\u002F>\u003Cpath fill=\"none\" stroke=\"#000\" d=\"M16 27.65c7.32 0 13.46-4.65 13.46-10.65c0-3.72-2.37-7-5.89-8.85c-1.39-.75-2.46-1.41-3.37-2l-1.13-.69A6.14 6.14 0 0 0 16 4.35a6.9 6.9 0 0 0-3.3 1.23c-.42.24-.86.51-1.32.8c-.87.54-1.83 1.13-3 1.73C4.91 10 2.54 13.24 2.54 17c0 6 6.14 10.65 13.46 10.65Z\"\u002F>\u003Cellipse cx=\"21.65\" cy=\"18.62\" fill=\"#febbd0\" rx=\"2.17\" ry=\"1.28\"\u002F>\u003Cellipse cx=\"10.41\" cy=\"18.62\" fill=\"#febbd0\" rx=\"2.17\" ry=\"1.28\"\u002F>\u003Cpath fill-rule=\"evenodd\" d=\"M11.43 18.11a2 2 0 1 0-2-2.05a2.05 2.05 0 0 0 2 2.05m9.2 0a2 2 0 1 0-2-2.05a2 2 0 0 0 2 2.05\"\u002F>\u003Cpath fill=\"#fff\" fill-rule=\"evenodd\" d=\"M10.79 16.19a.77.77 0 1 0-.76-.77a.76.76 0 0 0 .76.77m9.2 0a.77.77 0 1 0 0-1.53a.77.77 0 0 0 0 1.53\"\u002F>\u003Cpath fill=\"#b71422\" stroke=\"#000\" stroke-width=\".75\" d=\"M18.62 19.67a3.3 3.3 0 0 1-1.09 1.75a2.48 2.48 0 0 1-1.5.69a2.53 2.53 0 0 1-1.5-.69a3.28 3.28 0 0 1-1.08-1.75a.26.26 0 0 1 .29-.3h4.58a.27.27 0 0 1 .3.3Z\"\u002F>\u003Cpath fill=\"#ccbea7\" fill-rule=\"evenodd\" d=\"M14.93 5.75a6.1 6.1 0 0 1-2.09 4.62c-.1.09 0 .27.11.22c1.25-.49 2.94-1.94 2.23-4.88c-.03-.15-.25-.11-.25.04m.85 0a6 6 0 0 1 .57 5c0 .13.12.24.21.13c.83-1 1.54-3.11-.59-5.31c-.1-.11-.27.04-.19.17Zm1-.06a6.1 6.1 0 0 1 2.53 4.38c0 .14.21.17.24 0c.34-1.3.15-3.51-2.66-4.66c-.12-.02-.21.18-.09.27ZM9.94 9.55a6.27 6.27 0 0 0 3.89-3.33c.07-.13.28-.08.25.07c-.64 3-2.79 3.59-4.13 3.51c-.14-.01-.14-.21-.01-.25\"\u002F>",{"left":943,"top":943,"width":944,"height":944,"rotate":943,"vFlip":945,"hFlip":945,"body":2619},"\u003Cpath fill=\"currentColor\" d=\"m6.505 18.998l4.434-11.345a4.17 4.17 0 0 1 3.882-2.651h2.674l-4.434 11.345a4.17 4.17 0 0 1-3.883 2.651zm6.505 0l4.434-11.345a4.17 4.17 0 0 1 3.883-2.651H24l-4.434 11.345a4.17 4.17 0 0 1-3.882 2.651zm-13.01 0L4.434 7.653a4.17 4.17 0 0 1 3.882-2.651h2.674L6.556 16.347a4.17 4.17 0 0 1-3.883 2.651z\"\u002F>",[2621,2622,2623,2624,2625,2626,2627,2628],"\u002Fv0.8.1\u002Fadd-ons\u002Ftypesense","\u002Fv0.7.0\u002Fadd-ons\u002Ftypesense","\u002Fv0.6.0\u002Fadd-ons\u002Ftypesense","\u002Fv0.5.0\u002Fadd-ons\u002Ftypesense","\u002Fv0.4.0\u002Fadd-ons\u002Ftypesense","\u002Fv0.3.4\u002Fadd-ons\u002Ftypesense","\u002Fv0.2.0\u002Fadd-ons\u002Ftypesense","\u002Fv0.1.0\u002Fadd-ons\u002Ftypesense",1792683250446]