Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

The search module powers your storefront’s search experience. It ships a built-in PostgreSQL full-text backend that works out of the box, plus adapters for Algolia and MeiliSearch when you need scale. Faceted filtering by price, category, brand, tags, and stock is built in. The module exposes a single search endpoint and a <SearchBar /> plus <SearchResults /> component pair you drop into your search/index.mdx page. Source: modules/search · npm: @86d-app/search

Installation

86d module add search

Configuration

search({
  backend: "postgres",         // "postgres" | "algolia" | "meilisearch"
  algoliaAppId: "...",
  algoliaApiKey: "...",
  meilisearchHost: "...",
  meilisearchApiKey: "...",
  embeddingsProvider: "openai", // optional, for semantic search
});
When embeddingsProvider is set and OPENAI_API_KEY is present, the module computes embeddings for every product and supports semantic search. Without it, the search is keyword-only.

Store endpoints

MethodPathDescription
GET/search?q=&filters=Search products with optional facet filters
GET/search/suggest?q=Autocomplete suggestions

Admin endpoints

MethodPathDescription
POST/admin/search/reindexRebuild the full search index
GET/admin/search/healthBackend health and last index time

Components

  • <SearchBar />: navbar-friendly autocomplete bar.
  • <SearchResults />: full results page with facet sidebar.