@cosmocart/blog-search
v1.0.0
Published
Pluggable search adapter for cosmo-blog. v1 ships only the Supabase provider; the interface leaves room for Algolia/Meilisearch.
Readme
@cosmocart/blog-search
Pluggable search adapter for cosmo-blog. v1 ships only the Supabase Postgres FTS provider; the interface leaves room for Algolia, Meilisearch, ElasticSearch.
import { CosmoBlogClient } from '@cosmocart/blog-sdk'
import { createSupabaseSearchProvider } from '@cosmocart/blog-search'
const client = new CosmoBlogClient({ apiBaseUrl, pkKey })
const search = createSupabaseSearchProvider({ client })
const results = await search.query('hello')