
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
vuepress-plugin-meilisearch
Advanced tools
⚡ The MeiliSearch plugin for VuePress
MeiliSearch VuePress is a MeiliSearch plugin for VuePress.
MeiliSearch is an open-source search engine. Discover what MeiliSearch is!
If you don't use VuePress for your documentation, but you still need a search bar, you might check out this front-end SDK.
.
This plugin is used in production on the MeiliSearch documentation.
The goal of this plugin is to provide very easy integration of a search bar into your own VuePress documentation. To make that possible, you need to gather your website content in advance, and index it in a MeiliSearch instance.
Luckily, we provide all the tools that you need, and can help you through the whole process, if you follow this guide 🚀
As a first introduction, you might only want to test this plugin without connecting it to your website.
You can do it by running the VuePress playground provided in this repository:
yarn install
yarn serve
Then, open your browser on the indicated URL and test the search bar 🙂
The data comes from MeiliSearch documentation.
Type create an indxe
to live the MeiliSearch experience with the typo tolerance.
In your VuePress project:
yarn add vuepress-plugin-meilisearch
# or
npm install vuepress-plugin-meilisearch
In your config.js
file:
module.exports = {
plugins: [
[
'vuepress-plugin-meilisearch',
{
hostUrl: 'https://mymeilisearch.com',
apiKey: 'XXX',
indexUid: 'docs'
}
]
]
}
WARNING: Since the configuration file is public, we recommend providing the MeiliSearch public key, which is enough to perform searches.
Read more about MeiliSearch authentication.
module.exports = {
plugins: [
[
'vuepress-plugin-meilisearch',
{
hostUrl: 'https://mymeilisearch.com', // Mandatory
apiKey: 'XXX', // Mandatory
indexUid: 'docs-test', // Mandatory
placeholder: 'Search as you type...', // Default: ""
maxSuggestions: 10, // Default: 5
hotKeys: [], // Default: ['s', '/']
cropLength: 50, // Default: 30
layout: 'simple', // Default: "columns"
debug: true, // Default: false
enableDarkMode: true // Default: false
}
]
]
}
You can enable dark mode by adding enableDarkMode: true
to your configuration file.
To override the default theme of the search bar, you can edit your .vuepress/styles/palette.styl
file.
A few variables are available:
$accentDarkColor
$inputDarkBgColor
$textDarkColor
$borderDarkColor
$dropdownBgDarkColor
You can also find an example in our playground's palette.styl
file
This package only guarantees the compatibility with the version v0.21.0 of MeiliSearch.
Any new contribution is more than welcome in this project!
If you want to know more about the development workflow or want to contribute, please visit our contributing guidelines for detailed instructions!
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 repository.
FAQs
Relevant and typo tolerant search bar for your Vuepress
The npm package vuepress-plugin-meilisearch receives a total of 461 weekly downloads. As such, vuepress-plugin-meilisearch popularity was classified as not popular.
We found that vuepress-plugin-meilisearch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.