[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"i-ph:circle-half-tilt":3,"i-ph:github-logo":8,"i-mdi:drupal":10,"okb-markdown:architecture.md":13},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,256,false,"\u003Cpath fill=\"currentColor\" d=\"M201.54 54.46A104 104 0 0 0 54.46 201.54A104 104 0 0 0 201.54 54.46M184 195.87a87 87 0 0 1-16 10.5V99.31l16-16Zm-80-32.56l16-16v68.28a88.4 88.4 0 0 1-16-3Zm-16 43.06a87 87 0 0 1-16.3-10.76l16.3-16.3Zm48-75.06l16-16v97.32a88.4 88.4 0 0 1-16 3ZM40 128a88 88 0 0 1 144.3-67.61L60.38 184.31A87.34 87.34 0 0 1 40 128m160 50.59V77.41a88 88 0 0 1 0 101.18\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"currentColor\" d=\"M208.31 75.68A59.78 59.78 0 0 0 202.93 28a8 8 0 0 0-6.93-4a59.75 59.75 0 0 0-48 24h-24a59.75 59.75 0 0 0-48-24a8 8 0 0 0-6.93 4a59.78 59.78 0 0 0-5.38 47.68A58.14 58.14 0 0 0 56 104v8a56.06 56.06 0 0 0 48.44 55.47A39.8 39.8 0 0 0 96 192v8H72a24 24 0 0 1-24-24a40 40 0 0 0-40-40a8 8 0 0 0 0 16a24 24 0 0 1 24 24a40 40 0 0 0 40 40h24v16a8 8 0 0 0 16 0v-40a24 24 0 0 1 48 0v40a8 8 0 0 0 16 0v-40a39.8 39.8 0 0 0-8.44-24.53A56.06 56.06 0 0 0 216 112v-8a58.14 58.14 0 0 0-7.69-28.32M200 112a40 40 0 0 1-40 40h-48a40 40 0 0 1-40-40v-8a41.74 41.74 0 0 1 6.9-22.48a8 8 0 0 0 1.1-7.69a43.8 43.8 0 0 1 .79-33.58a43.88 43.88 0 0 1 32.32 20.06a8 8 0 0 0 6.71 3.69h32.35a8 8 0 0 0 6.74-3.69a43.87 43.87 0 0 1 32.32-20.06a43.8 43.8 0 0 1 .77 33.58a8.09 8.09 0 0 0 1 7.65a41.7 41.7 0 0 1 7 22.52Z\"\u002F>",{"left":4,"top":4,"width":11,"height":11,"rotate":4,"vFlip":6,"hFlip":6,"body":12},24,"\u003Cpath fill=\"currentColor\" d=\"M20.47 14.65c0 .64-.22 1.71-.64 2.45c-.43.75-.75.96-1.39.96c-.74-.11-2.13-2.24-3.08-2.34c-1.18 0-3.63 2.45-5.65 2.45c-1.17 0-1.6-.22-1.92-.43c-.64-.43-.85-1.07-.85-1.92c0-1.6 1.49-2.98 3.3-2.98c2.35 0 3.94 2.34 5.12 2.24c.95 0 2.87-1.92 3.83-1.92c.96-.21 1.28.84 1.28 1.49m-3.84-9.37c-1.06-.64-2.02-.96-3.09-1.6c-.63-.43-1.49-1.38-2.23-2.24c-.31 1.39-.53 1.92-1.07 2.35c-1.06.74-1.6 1.06-2.55 1.49C6.94 5.7 3 8.05 3 13.16S7.37 22 12.05 22c4.8 0 8.95-3.5 8.95-8.73c.21-5.22-3.73-7.57-4.37-7.99\"\u002F>",{"pages":14,"html":60},[15,20,25,30,35,40,45,50,55],{"source":16,"slug":17,"title":18,"order":19},"use-cases.md","use-cases","Use cases",1,{"source":21,"slug":22,"title":23,"order":24},"features.md","features","Features",2,{"source":26,"slug":27,"title":28,"order":29},"architecture.md","architecture","Architecture",3,{"source":31,"slug":32,"title":33,"order":34},"quickstart.md","quickstart","Quickstart",4,{"source":36,"slug":37,"title":38,"order":39},"installation.md","installation","Installation",5,{"source":41,"slug":42,"title":43,"order":44},"configuration.md","configuration","Configuration",6,{"source":46,"slug":47,"title":48,"order":49},"updates.md","updates","Updates",7,{"source":51,"slug":52,"title":53,"order":54},"user-guide.md","user-guide","User guide",8,{"source":56,"slug":57,"title":58,"order":59},"community.md","community","Code & community",9,"\u003Cp>Decoupled Drupal, one store. People and agents reach the same frontend; the frontend works on the content Drupal holds; search, the chat and agents all read from one index.\u003C\u002Fp>\n\n\u003Cfigure class=\"okb-diagram\">\n  \u003Csvg viewbox=\"0 0 1060 400\" role=\"img\" aria-labelledby=\"arch-title\" aria-describedby=\"arch-desc\" style=\"min-width: 760px\">\u003Ctitle id=\"arch-title\">OpenKnowledgebase architecture\u003C\u002Ftitle>\n\n  \u003Cdesc id=\"arch-desc\">People in the browser and agents such as Claude Code, Cursor or any MCP client connect to the frontend. The frontend, Nuxt 4, holds the Nuxt UI editor with Tiptap and Yjs, the Hocuspocus collaboration server, Nuxt Chat with the AI SDK, the MCP endpoint \u002Fapi\u002Fmcp and the comark components. It talks both ways with the backend, Drupal 11: the OpenKB modules, Drupal AI for chat and embeddings, AI guardrails, Tool API and MCP Server, Simple OAuth, Search API, Lupus Decoupled and Custom Elements. The backend talks both ways with search, OpenSearch 3: keyword and vector search ranked together in one chunk index, through Search API and the AI VDB provider, shared by search, chat and agents. Below the backend sit MariaDB for the content and cron, which runs the same image, and next to them the AI provider, any Drupal AI provider. Five containers, one Docker Compose stack, running on 4 GB of RAM.\u003C\u002Fdesc>\n\n  \u003Cdefs>\u003Cmarker id=\"arch-head\" viewbox=\"0 0 10 10\" refx=\"9\" refy=\"5\" markerwidth=\"7\" markerheight=\"7\" orient=\"auto-start-reverse\">\u003Cpath class=\"d-head\" d=\"M0 0 10 5 0 10z\">\u003C\u002Fpath>\u003C\u002Fmarker>\n\n  \u003Cmarker id=\"arch-head-agent\" viewbox=\"0 0 10 10\" refx=\"9\" refy=\"5\" markerwidth=\"7\" markerheight=\"7\" orient=\"auto-start-reverse\">\u003Cpath class=\"d-head-agent\" d=\"M0 0 10 5 0 10z\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\n\n  \u003Crect class=\"d-box d-box-people\" x=\"2\" y=\"50\" width=\"130\" height=\"72\" rx=\"10\">\u003C\u002Frect>\n\n  \u003Ctext class=\"d-title\" x=\"14\" y=\"80\" font-size=\"19\">People\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" x=\"14\" y=\"104\" font-size=\"15\">Browser\u003C\u002Ftext>\n\n  \u003Crect class=\"d-box d-box-agent\" x=\"2\" y=\"165\" width=\"130\" height=\"118\" rx=\"10\">\u003C\u002Frect>\n\n  \u003Ctext class=\"d-agent\" x=\"14\" y=\"194\" font-size=\"19\">Agents\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" font-size=\"15\">\u003Ctspan x=\"14\" y=\"218\">Claude Code,\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"14\" y=\"240\">Cursor, any\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"14\" y=\"262\">MCP client\u003C\u002Ftspan>\u003C\u002Ftext>\n\n  \u003Cpath class=\"d-line\" d=\"M132 86h31\" marker-end=\"url(#arch-head)\">\u003C\u002Fpath>\n\n  \u003Cpath class=\"d-line d-line-agent\" d=\"M132 224h31\" marker-end=\"url(#arch-head-agent)\">\u003C\u002Fpath>\n\n  \u003Crect class=\"d-box d-box-people\" x=\"167\" y=\"40\" width=\"280\" height=\"250\" rx=\"12\">\u003C\u002Frect>\n\n  \u003Csvg x=\"183\" y=\"56\" width=\"34\" height=\"34\" viewbox=\"0 0 24 24\">\u003Cpath class=\"d-logo\" d=\"M13.4642 19.8295h8.9218c.2834 0 .5618-.0723.8072-.2098a1.5899 1.5899 0 0 0 .5908-.5732 1.5293 1.5293 0 0 0 .216-.783 1.529 1.529 0 0 0-.2167-.7828L17.7916 7.4142a1.5904 1.5904 0 0 0-.5907-.573 1.6524 1.6524 0 0 0-.807-.2099c-.2833 0-.5616.0724-.807.2098a1.5904 1.5904 0 0 0-.5907.5731L13.4642 9.99l-2.9954-5.0366a1.5913 1.5913 0 0 0-.591-.573 1.6533 1.6533 0 0 0-.8071-.2098c-.2834 0-.5617.0723-.8072.2097a1.5913 1.5913 0 0 0-.591.573L.2168 17.4808A1.5292 1.5292 0 0 0 0 18.2635c-.0001.2749.0744.545.216.783a1.59 1.59 0 0 0 .5908.5732c.2454.1375.5238.2098.8072.2098h5.6003c2.219 0 3.8554-.9454 4.9813-2.7899l2.7337-4.5922L16.3935 9.99l4.3944 7.382h-5.8586ZM7.123 17.3694l-3.9083-.0009 5.8586-9.8421 2.9232 4.921-1.9572 3.2892c-.7478 1.1967-1.5972 1.6328-2.9163 1.6328z\">\u003C\u002Fpath>\u003C\u002Fsvg>\n\n  \u003Ctext class=\"d-title\" x=\"227\" y=\"72\" font-size=\"19\" font-weight=\"700\">Frontend\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-accent\" x=\"227\" y=\"94\" font-size=\"16\" font-weight=\"600\">Nuxt 4\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" font-size=\"15\">\u003Ctspan x=\"183\" y=\"134\">• Nuxt UI editor,\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"195\" y=\"156\">Tiptap + Yjs\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"183\" y=\"178\">• Hocuspocus collab server\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"183\" y=\"200\">• Nuxt Chat with AI SDK\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"183\" y=\"222\">• MCP endpoint \u002Fapi\u002Fmcp\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"183\" y=\"244\">• comark components\u003C\u002Ftspan>\u003C\u002Ftext>\n\n  \u003Cpath class=\"d-line\" d=\"M449 165h31\" marker-start=\"url(#arch-head)\" marker-end=\"url(#arch-head)\">\u003C\u002Fpath>\n\n  \u003Crect class=\"d-box d-box-strong\" x=\"482\" y=\"40\" width=\"290\" height=\"250\" rx=\"12\">\u003C\u002Frect>\n\n  \u003Csvg x=\"498\" y=\"56\" width=\"34\" height=\"34\" viewbox=\"0 0 24 24\">\u003Cpath class=\"d-logo-on-strong\" d=\"M15.78 5.113C14.09 3.425 12.48 1.815 11.998 0c-.48 1.815-2.09 3.425-3.778 5.113-2.534 2.53-5.405 5.4-5.405 9.702a9.184 9.185 0 1018.368 0c0-4.303-2.871-7.171-5.405-9.702M6.72 16.954c-.563-.019-2.64-3.6 1.215-7.416l2.55 2.788a.218.218 0 01-.016.325c-.61.625-3.204 3.227-3.527 4.126-.066.186-.164.18-.222.177M12 21.677a3.158 3.158 0 01-3.158-3.159 3.291 3.291 0 01.787-2.087c.57-.696 2.37-2.655 2.37-2.655s1.774 1.988 2.367 2.649a3.09 3.09 0 01.792 2.093A3.158 3.158 0 0112 21.677m6.046-5.123c-.068.15-.223.398-.431.405-.371.014-.411-.177-.686-.583-.604-.892-5.864-6.39-6.848-7.455-.866-.935-.122-1.595.223-1.94C10.736 6.547 12 5.285 12 5.285s3.766 3.574 5.336 6.016c1.57 2.443 1.029 4.556.71 5.253\">\u003C\u002Fpath>\u003C\u002Fsvg>\n\n  \u003Ctext class=\"d-on-strong\" x=\"542\" y=\"72\" font-size=\"19\" font-weight=\"700\">Backend\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-on-strong\" x=\"542\" y=\"94\" font-size=\"16\" font-weight=\"600\">Drupal 11\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-on-strong\" font-size=\"15\">\u003Ctspan x=\"498\" y=\"134\">• OpenKB modules\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"498\" y=\"156\">• Drupal AI: chat, embeddings\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"498\" y=\"178\">• AI guardrails\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"498\" y=\"200\">• Tool API + MCP Server\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"498\" y=\"222\">• Simple OAuth, Search API\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"498\" y=\"244\">• Lupus Decoupled +\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"510\" y=\"266\">Custom Elements\u003C\u002Ftspan>\u003C\u002Ftext>\n\n  \u003Cpath class=\"d-line\" d=\"M774 165h31\" marker-start=\"url(#arch-head)\" marker-end=\"url(#arch-head)\">\u003C\u002Fpath>\n\n  \u003Crect class=\"d-box\" x=\"807\" y=\"40\" width=\"251\" height=\"250\" rx=\"12\">\u003C\u002Frect>\n\n  \u003Csvg x=\"823\" y=\"56\" width=\"34\" height=\"34\" viewbox=\"0 0 24 24\">\u003Cpath class=\"d-logo\" d=\"M23.1515 8.8125a.8484.8484 0 0 0-.8484.8485c0 6.982-5.6601 12.6421-12.6421 12.6421a.8485.8485 0 0 0 0 1.6969C17.5802 24 24 17.5802 24 9.661a.8485.8485 0 0 0-.8485-.8485Zm-5.121 5.4375c.816-1.3311 1.6051-3.1058 1.4498-5.5905-.3216-5.1468-4.9832-9.0512-9.3851-8.6281C8.372.1971 6.6025 1.6017 6.7598 4.1177c.0683 1.0934.6034 1.7386 1.473 2.2348.8279.4722 1.8914.7713 3.097 1.1104 1.4563.4096 3.1455.8697 4.4438 1.8265 1.5561 1.1467 2.6198 2.4759 2.2569 4.9606Zm-16.561-9C.6535 6.581-.1355 8.3558.0197 10.8405c.3216 5.1468 4.9832 9.0512 9.385 8.6281 1.7233-.1657 3.4927-1.5703 3.3355-4.0863-.0683-1.0934-.6034-1.7386-1.4731-2.2348-.8278-.4722-1.8913-.7713-3.0969-1.1104-1.4563-.4096-3.1455-.8697-4.4438-1.8265-1.5561-1.1467-2.6198-2.476-2.257-4.9606Z\">\u003C\u002Fpath>\u003C\u002Fsvg>\n\n  \u003Ctext class=\"d-title\" x=\"867\" y=\"72\" font-size=\"19\" font-weight=\"700\">Search\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-accent\" x=\"867\" y=\"94\" font-size=\"16\" font-weight=\"600\">OpenSearch 3\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" font-size=\"15\">\u003Ctspan x=\"823\" y=\"134\">• Keyword and vector\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"835\" y=\"156\">search, ranked together\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"823\" y=\"178\">• One chunk index\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"823\" y=\"200\">• Search API +\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"835\" y=\"222\">AI VDB provider\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"823\" y=\"244\">• Shared by search,\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"835\" y=\"266\">chat and agents\u003C\u002Ftspan>\u003C\u002Ftext>\n\n  \u003Cpath class=\"d-line d-line-muted\" d=\"M549 290v35\">\u003C\u002Fpath>\n\n  \u003Cpath class=\"d-line d-line-muted\" d=\"M704 290v35\">\u003C\u002Fpath>\n\n  \u003Cpath class=\"d-line d-line-muted\" d=\"M757 290v16h175v19\">\u003C\u002Fpath>\n\n  \u003Crect class=\"d-box d-box-soft\" x=\"482\" y=\"325\" width=\"135\" height=\"70\" rx=\"10\">\u003C\u002Frect>\n\n  \u003Ctext class=\"d-title\" x=\"498\" y=\"354\" font-size=\"17\">MariaDB\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" x=\"498\" y=\"379\" font-size=\"15\">content\u003C\u002Ftext>\n\n  \u003Crect class=\"d-box d-box-soft\" x=\"637\" y=\"325\" width=\"135\" height=\"70\" rx=\"10\">\u003C\u002Frect>\n\n  \u003Ctext class=\"d-title\" x=\"653\" y=\"354\" font-size=\"17\">cron\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" x=\"653\" y=\"379\" font-size=\"15\">same image\u003C\u002Ftext>\n\n  \u003Crect class=\"d-box d-box-soft\" x=\"807\" y=\"325\" width=\"251\" height=\"70\" rx=\"10\">\u003C\u002Frect>\n\n  \u003Ctext class=\"d-title\" x=\"823\" y=\"354\" font-size=\"17\">AI provider\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" x=\"823\" y=\"379\" font-size=\"15\">any Drupal AI provider\u003C\u002Ftext>\n\n  \u003Ctext class=\"d-text\" font-size=\"16\">\u003Ctspan x=\"167\" y=\"346\">Five containers,\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"167\" y=\"368\">one Docker Compose stack.\u003C\u002Ftspan>\n\n  \u003Ctspan x=\"167\" y=\"390\">Runs on 4 GB RAM.\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fsvg>\n\u003C\u002Ffigure>\n\n\u003Ch2 id=\"people-and-agents\">People and agents\u003C\u002Fh2>\n\n\u003Cp>People work in the browser. Agents, such as Claude Code, Cursor or any other MCP client, connect to the MCP endpoint of the same frontend, sign in over OAuth and act with their owner's permissions, never more. Both edit the same pages in the same live session.\u003C\u002Fp>\n\n\u003Ch2 id=\"frontend-nuxt-4\">Frontend: Nuxt 4\u003C\u002Fh2>\n\n\u003Cp>The frontend is the app people see: the block editor, built on Nuxt UI with Tiptap and Yjs, and the Hocuspocus collaboration server that keeps every editor in sync, embedded in the same process. It runs the chat with the AI SDK, serves the MCP endpoint at \u003Ccode>\u002Fapi\u002Fmcp\u003C\u002Fcode> and renders pages from comark, the Markdown the pages are stored in.\u003C\u002Fp>\n\n\u003Ch2 id=\"backend-drupal-11\">Backend: Drupal 11\u003C\u002Fh2>\n\n\u003Cp>Drupal holds the content and decides who may do what: the OpenKB modules carry spaces, permissions, the review workflow, JSON:API and the MCP tools. Drupal AI runs chat and embeddings on the provider you choose, with guardrails on every AI call. Tool API and MCP Server offer the tools, Simple OAuth issues the agents' tokens, Search API feeds the index, and Lupus Decoupled with Custom Elements serves the pages to the frontend.\u003C\u002Fp>\n\n\u003Ch2 id=\"search-opensearch-3\">Search: OpenSearch 3\u003C\u002Fh2>\n\n\u003Cp>Every published page is cut into sections and stored in one chunk index, with its words and its meaning. A query ranks both together. Search API and the AI VDB provider feed it; the search page, the chat and agents all ask the same index, and each only ever finds what its reader may read.\u003C\u002Fp>\n\n\u003Ch2 id=\"the-stack\">The stack\u003C\u002Fh2>\n\n\u003Cp>Five containers in one Docker Compose stack: \u003Ccode>drupal\u003C\u002Fcode>, \u003Ccode>cron\u003C\u002Fcode> (the same image, running Drupal's cron), \u003Ccode>frontend\u003C\u002Fcode>, MariaDB for the content and OpenSearch. The AI provider is any provider of the Drupal AI framework, outside the stack. It runs on 4 GB of RAM. \u003Ca href=\"\u002Fdocs\u002Finstallation\">Installation\u003C\u002Fa> brings it up; the module is on \u003Ca href=\"https:\u002F\u002Fwww.drupal.org\u002Fproject\u002Fopenkb\">drupal.org\u002Fproject\u002Fopenkb\u003C\u002Fa>.\u003C\u002Fp>\n",1796124730354]