Searchkit connects InstantSearch-style UI components to Elasticsearch or OpenSearch. It includes a Node API to proxy queries and customize DSL from the server.
Overview
Searchkit is an open-source library for building search experiences backed by Elasticsearch or OpenSearch. It works with JavaScript and with React, Vue, Angular, and other InstantSearch-compatible front ends.
Developers compose UI widgets such as search boxes, refinement lists, and result lists while Searchkit translates requests into Elasticsearch queries. An optional Node API proxies browser traffic so clusters need not be exposed publicly and so server-side permission filters can apply.
Setup expects Elasticsearch 7.0+ or OpenSearch 2.4+. Guides cover plain JavaScript, React, Vue, Angular, Next.js, semantic KNN search, Cloudflare Workers, and Express deployments.
Customization hooks include a built-in query builder, getQuery overrides, request hooks for rescoring, and query rules that boost, filter, or rerank under conditions. The API shape mirrors Algolia's client expectations for InstantSearch integrations.
Install via npm or yarn, or load from CDN. Docker examples show standing up Elasticsearch for local development and indexing sample data.
Key features
- InstantSearch UI wiring
- Elasticsearch query DSL
- Node browser proxy API
- KNN semantic search
- Query rules and boosts
- Request hook overrides
- Multi-framework guides
- CDN or npm install
Use cases
- App search over Elasticsearch
- Hiding cluster credentials
- Semantic document search
- Movies or geo demos
- Next.js search pages