Search
Typesense
Index Foldocs pages in Typesense and query them with a scoped client.
@foldocs/search-typesense includes an indexer, synchronization helper, and
browser search adapter.
APIs
createTypesenseSearchIndexerconverts Foldocs documents into collection data.syncTypesenseSearchsynchronizes the collection.createTypesenseSearchClientqueries the collection throughSearchClient.
Schema
Index the URL, title, description, headings, body, locale, and documentation root. Treat URL as the stable identity and make locale filterable.
Keys
Generate a scoped search key for the browser. Keep collection-management keys in CI and rotate them independently of the deployed site.
Last updated Aug 2, 2026