Algolia
Replace the built-in search with Algolia DocSearch, and add Ask AI in its own side panel.
Algolia DocSearch searches an index that Algolia's crawler builds from your published site. The official plugin @docubook/plugin-search-algolia swaps Flame's built-in search for DocSearch v5 and, if you give it an Agent Studio agent, adds Ask AI.
The two stay apart. Search opens the DocSearch dialog and shows search results only. Ask AI opens a separate side panel beside the page, so a question never shows up in the search dialog and a search never starts a chat.
Install
Register it in the plugins array of docu.json:
Leave out askAi to ship search without Ask AI. Remove the plugin entry to go back to the built-in search.
Where it appears
The dialog and the panel follow your theme colors and the light/dark toggle. Opening one closes the other, and closing them returns focus to where you were.
The DocSearch code loads the first time a reader hovers, focuses or clicks search or Ask AI, so pages that nobody searches from do not download it. The files are copied next to Flame's own bundles and served from your domain, so the site's script-src 'self' policy needs no change.
Options
Options are checked when the build starts. A missing or malformed value stops the build with a [plugin:search-algolia] error naming the option.
Ask AI
Ask AI needs an agent in Algolia Agent Studio with your index as its search tool. Pass its ID as a string, or pass an object to tune the panel:
Register for DocSearch
Algolia provides DocSearch for open-source projects for free.
- Visit the DocSearch application
- Wait for approval
- Add the plugin to docu.json
Crawler Setup
After your site is live, configure the Algolia crawler to index your pages. The crawler runs externally on Algolia's infrastructure — no build-time impact on Flame.
Dashboard Setup
- Open Algolia Dashboard
- Navigate to Crawler
- Add and verify your domain
- Open the Editor
Crawler Configuration
Paste the configuration below into the editor. The values you need to change are highlighted.
Index Settings
Key settings worth noting:
Deploy
Credentials live in docu.json, so no .env file or platform secrets are needed. Build and deploy .docu/dist/ to any static host as usual: the plugin writes its browser files into the build output.
The browser needs to reach Algolia over HTTPS. Flame's default connect-src 'self' https: policy already allows it. If you tightened connect-src on your host, allow https://*.algolia.net and https://*.algolianet.com. Ask AI talks to Agent Studio on the same *.algolia.net hosts.
Last updated Nov 7, 2026