svelte-algolia-instantsearch
- A community-developed wrapper around instantsearch.js for SvelteKit (not affiliated with Algolia)
- Designed as a Svelte equivalent of
react-instantsearch-hooks-webwith a similar API - Provides components and utilities for building search UIs with Algolia in Svelte applications
Key Features:
- SSR compatibility with SvelteKit (supports server-side rendering for SEO)
- Core
connectfunction for creating custom widgets that return Svelte readable stores - Pre-built components including SearchBox, Hits, Pagination, RefinementList, and more
- Access to InstantSearch instance via
getInstantSearchContext()for advanced use cases
Target Audience:
- SvelteKit developers who need Algolia search functionality
- Teams looking for a Svelte-specific implementation of InstantSearch.js
- Projects requiring server-rendered search results for better SEO
Notable Components Available:
- SearchBox, Hits, Pagination, RefinementList
- Configure, ClearRefinements, CurrentRefinements
- Menu, HierarchicalMenu, RangeInput
- Stats, PoweredBy, SortBy
Important Notes:
- Only works with SvelteKit (not vanilla Svelte)
- Requires
algoliasearchas a peer dependency - Includes SSR support through
getServerStatehelper
algoliainstantsearchinstantsearch-jsinstantsearchjsssrsveltesvelte-kitsveltejssveltekit
Featured Stories
No featured articles.