Skip to main content
instant-meilisearch is the easiest way to add a search interface to your front-end. It connects Meilisearch to InstantSearch, an open-source library by Algolia that provides pre-built UI components for search.

Why instant-meilisearch?

  • Pre-built components: Search boxes, hit lists, facet filters, pagination, and more
  • Framework support: Works with React, Vue, Angular, and vanilla JavaScript
  • Customizable: Full control over styling and behavior
  • Search-as-you-type: Real-time results as users type

Quick example

Create an index.html file with the following code:
Open this file in your browser to see a working search interface.

Framework guides

React

Build search UIs with React InstantSearch

Vue

Build search UIs with Vue InstantSearch

Available widgets

InstantSearch provides many pre-built widgets: See all InstantSearch widgets

Using your own data

The example above uses a public demo instance. To use your own Meilisearch instance:
If you are using a bundler (Vite, Next.js, Webpack), you can use environment variables instead of hardcoded strings. Refer to your bundler’s documentation for how to inject environment variables.Get a free Cloud instance

Resources