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-web
with 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
connect
function 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
algoliasearch
as a peer dependency - Includes SSR support through
getServerState
helper
algoliainstantsearchinstantsearch-jsinstantsearchjsssrsveltesvelte-kitsveltejssveltekit
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button