# meilisearch-vue **Repository Path**: imcheese/meilisearch-vue ## Basic Information - **Project Name**: meilisearch-vue - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-28 - **Last Updated**: 2025-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Meilisearch-Vue

Meilisearch Vue

Meilisearch | Meilisearch Cloud | Documentation | Discord | Roadmap | Website | FAQ

License

⚡ How to integrate a front-end search bar in your Vue application using Meilisearch

**Meilisearch** is an open-source search engine. [Discover what Meilisearch is!](https://github.com/meilisearch/meilisearch) This repository describes the steps to integrate a relevant front-end search bar with a search-as-you-type experience! ## Table of Contents - [⚡ Supercharge your Meilisearch experience](#-supercharge-your-meilisearch-experience) - [🔧 Installation](#-installation) - [🤘 Getting Started Vue 2](#-getting-started-vue-2) - [🤟 Getting Started Vue 3](#-getting-started-vue-3) - [👩‍🎨 Examples](#-examples) - [💅 Customization and Documentation](#-customization-and-documentation) ## ⚡ Supercharge your Meilisearch experience Say goodbye to server deployment and manual updates with [Meilisearch Cloud](https://www.meilisearch.com/cloud?utm_campaign=oss&utm_source=github&utm_medium=meilisearch-ruby). Get started with a 14-day free trial! No credit card required. ## 🔧 Installation To integrate a front-end search bar, you need to install two packages: - the open-source [Vue InstantSearch](https://github.com/algolia/vue-instantsearch/) library powered by Algolia that provides all the front-end tools you need to highly customize your search bar environment. - the Meilisearch client [instant-meilisearch](https://github.com/meilisearch/meilisearch-js-plugins/tree/main/packages/instant-meilisearch) to establish the communication between your Meilisearch instance and the Vue InstantSearch library.
_Instead of reinventing the wheel, we have opted to reuse the InstantSearch library for our own front-end tooling. We will contribute upstream any improvements that may result from our adoption of InstantSearch._ Run: ```bash yarn add vue-instantsearch @meilisearch/instant-meilisearch instantsearch.css # or npm install vue-instantsearch @meilisearch/instant-meilisearch instantsearch.css ``` NB: If you don't have any Meilisearch instance running and containing your data, you should take a look at this [getting started page](https://www.meilisearch.com/docs/learn/getting_started/installation#installation). ## 🤘 Getting Started Vue 2 The following getting started uses `Vue 2`. A `Vue 2` example is [provided here](#-examples). In the `main.js` file: ```js import Vue from 'vue'; import App from './App.vue'; import InstantSearch from 'vue-instantsearch'; Vue.use(InstantSearch); new Vue({ el: '#app', render: h => h(App), }); ``` In the `App.vue` file: ```vue ``` ## 🤟 Getting Started Vue 3 The following getting started uses `Vue 3`. A `Vue 3` example is [provided here](#-examples). In the `main.js` file: ```js import { createApp } from 'vue' import App from './App.vue' import InstantSearch from 'vue-instantsearch/vue3/es'; createApp(App) .use(InstantSearch) .mount('#app') ``` In the `App.vue` file: ```vue ``` ## 👩‍🎨 Examples 🚀 For a full example, please take a look at this CodeSandbox: For Vue 2
[![Edit MS + Vue2-IS](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/ms-vue-is-1d6bi?fontsize=14&hidenavigation=1&theme=dark) For Vue 3
[![Edit MS + Vue3-IS](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/ms-vue3-is-forked-wsrkl8) 💡 If you have never used Vue InstantSearch before, we recommend reading this [getting started documentation](https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/vue/). ## 💅 Customization and Documentation - The open-source Vue InstantSearch library is widely used and well documented in the [Algolia documentation](https://www.algolia.com/doc/api-reference/widgets/vue/). It provides all the widgets to customize and improve your search bar environment in your Vue application. - The [instant-meilisearch documentation](https://github.com/meilisearch/meilisearch-js-plugins/tree/main/packages/instant-meilisearch) to add some customization. - The [Meilisearch documentation](https://www.meilisearch.com/docs/).
**Meilisearch** provides and maintains many **SDKs and Integration tools** like this one. We want to provide everyone with an **amazing search experience for any kind of project**. If you want to contribute, make suggestions, or just know what's going on right now, visit us in the [integration-guides](https://github.com/meilisearch/integration-guides) repository.