Connects Payload CMS to a Meilisearch instance and keeps indexes in step with selected collections. Configured through the plugins array with a host, API key and per-collection sync settings. Fields can be aliased or transformed before indexing. The plugin is in alpha and targets Payload 1.x.
Meilisearch integration plugin for Payload CMS
Installation
npm i @nouance/payload-meilisearch39
Stars
4
Forks
6
Open Issues
3 years ago
Last Updated
23
Weekly Downloads
v0.1.3
npm Version
28.9 KB
Unpacked Size
1
Dependencies
390 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 39 |
| Dec 4, 2026 | 39 |
| Dec 3, 2026 | 39 |
| Dec 2, 2026 | 39 |
| Dec 1, 2026 | 39 |
| Nov 30, 2026 | 39 |
| Nov 29, 2026 | 39 |
| Nov 28, 2026 | 39 |
| Nov 27, 2026 | 39 |
| Nov 26, 2026 | 39 |
| Nov 25, 2026 | 39 |
| Nov 24, 2026 | 39 |
| Nov 23, 2026 | 39 |
| Nov 22, 2026 | 39 |
| Nov 21, 2026 | 39 |
| Nov 20, 2026 | 39 |
| Nov 19, 2026 | 39 |
| Nov 18, 2026 | 39 |
| Nov 17, 2026 | 39 |
| Nov 16, 2026 | 39 |
| Nov 15, 2026 | 39 |
| Nov 14, 2026 | 39 |
| Nov 13, 2026 | 39 |
| Nov 12, 2026 | 39 |
| Nov 11, 2026 | 39 |
| Nov 10, 2026 | 39 |
| Nov 9, 2026 | 39 |
| Nov 8, 2026 | 39 |
| Nov 7, 2026 | 39 |
| Nov 6, 2026 | 39 |
| Nov 5, 2026 | 39 |
| Nov 4, 2026 | 39 |
| Nov 3, 2026 | 39 |
| Nov 2, 2026 | 39 |
| Nov 1, 2026 | 39 |
| Oct 31, 2026 | 39 |
| Oct 30, 2026 | 39 |
| Oct 29, 2026 | 39 |
| Oct 28, 2026 | 39 |
| Oct 27, 2026 | 39 |
| Oct 26, 2026 | 39 |
| Oct 25, 2026 | 39 |
| Oct 24, 2026 | 39 |
| Oct 23, 2026 | 39 |
| Oct 22, 2026 | 39 |
| Oct 21, 2026 | 39 |
| Oct 20, 2026 | 39 |
| Oct 19, 2026 | 39 |
| Oct 18, 2026 | 39 |
| Oct 17, 2026 | 39 |
| Oct 16, 2026 | 39 |
| Oct 15, 2026 | 39 |
| Oct 14, 2026 | 39 |
| Oct 13, 2026 | 39 |
| Oct 12, 2026 | 39 |
| Oct 11, 2026 | 39 |
| Oct 10, 2026 | 39 |
| Oct 9, 2026 | 39 |
| Oct 8, 2026 | 39 |
| Oct 7, 2026 | 39 |
| Oct 6, 2026 | 39 |
| Oct 5, 2026 | 39 |
| Oct 4, 2026 | 39 |
| Oct 3, 2026 | 39 |
| Oct 2, 2026 | 39 |
| Oct 1, 2026 | 39 |
| Sep 30, 2026 | 39 |
| Sep 29, 2026 | 39 |
| Sep 28, 2026 | 39 |
| Sep 27, 2026 | 39 |
| Sep 26, 2026 | 39 |
| Sep 25, 2026 | 39 |
| Sep 24, 2026 | 39 |
| Sep 23, 2026 | 39 |
| Sep 22, 2026 | 39 |
| Sep 21, 2026 | 39 |
| Sep 20, 2026 | 39 |
| Sep 19, 2026 | 39 |
| Sep 18, 2026 | 39 |
| Sep 17, 2026 | 39 |
| Sep 16, 2026 | 39 |
| Sep 15, 2026 | 39 |
| Sep 14, 2026 | 39 |
| Sep 13, 2026 | 39 |
| Sep 12, 2026 | 39 |
| Sep 11, 2026 | 39 |
| Sep 10, 2026 | 39 |
| Sep 9, 2026 | 39 |
| Sep 8, 2026 | 39 |
| Sep 7, 2026 | 39 |
| Sep 6, 2026 | 39 |
22+5 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 22 |
| Dec 4, 2026 | 13 |
| Dec 3, 2026 | 13 |
| Dec 2, 2026 | 6 |
| Dec 1, 2026 | 9 |
| Nov 30, 2026 | 11 |
| Nov 29, 2026 | 10 |
| Nov 28, 2026 | 10 |
| Nov 27, 2026 | 10 |
| Nov 26, 2026 | 11 |
| Nov 25, 2026 | 11 |
| Nov 24, 2026 | 11 |
| Nov 23, 2026 | 11 |
| Nov 22, 2026 | 12 |
| Nov 21, 2026 | 34 |
| Nov 20, 2026 | 36 |
| Nov 19, 2026 | 35 |
| Nov 18, 2026 | 40 |
| Nov 17, 2026 | 38 |
| Nov 16, 2026 | 39 |
| Nov 15, 2026 | 36 |
| Nov 14, 2026 | 19 |
| Nov 13, 2026 | 31 |
| Nov 12, 2026 | 36 |
| Nov 11, 2026 | 31 |
| Nov 10, 2026 | 32 |
| Nov 9, 2026 | 29 |
| Nov 8, 2026 | 34 |
| Nov 7, 2026 | 30 |
| Nov 6, 2026 | 15 |
| Nov 5, 2026 | 11 |
| Nov 4, 2026 | 14 |
| Nov 3, 2026 | 12 |
| Nov 2, 2026 | 13 |
| Nov 1, 2026 | 7 |
| Oct 31, 2026 | 6 |
| Oct 30, 2026 | 6 |
| Oct 29, 2026 | 4 |
| Oct 28, 2026 | 1 |
| Oct 27, 2026 | 2 |
| Oct 26, 2026 | 3 |
| Oct 25, 2026 | 3 |
| Oct 24, 2026 | 3 |
| Oct 23, 2026 | 3 |
| Oct 22, 2026 | 4 |
| Oct 21, 2026 | 8 |
| Oct 20, 2026 | 7 |
| Oct 19, 2026 | 5 |
| Oct 18, 2026 | 6 |
| Oct 17, 2026 | 7 |
| Oct 16, 2026 | 7 |
| Oct 15, 2026 | 6 |
| Oct 14, 2026 | 7 |
| Oct 13, 2026 | 7 |
| Oct 12, 2026 | 7 |
| Oct 11, 2026 | 7 |
| Oct 10, 2026 | 6 |
| Oct 9, 2026 | 9 |
| Oct 8, 2026 | 13 |
| Oct 7, 2026 | 8 |
| Oct 6, 2026 | 11 |
| Oct 5, 2026 | 11 |
| Oct 4, 2026 | 13 |
| Oct 3, 2026 | 13 |
| Oct 2, 2026 | 11 |
| Oct 1, 2026 | 7 |
| Sep 30, 2026 | 10 |
| Sep 29, 2026 | 7 |
| Sep 28, 2026 | 10 |
| Sep 27, 2026 | 7 |
| Sep 26, 2026 | 14 |
| Sep 25, 2026 | 16 |
| Sep 24, 2026 | 19 |
| Sep 23, 2026 | 16 |
| Sep 22, 2026 | 21 |
| Sep 21, 2026 | 26 |
| Sep 20, 2026 | 26 |
| Sep 19, 2026 | 19 |
| Sep 18, 2026 | 16 |
| Sep 17, 2026 | 15 |
| Sep 16, 2026 | 17 |
| Sep 15, 2026 | 15 |
| Sep 14, 2026 | 7 |
| Sep 13, 2026 | 7 |
| Sep 12, 2026 | 9 |
| Sep 11, 2026 | 11 |
| Sep 10, 2026 | 14 |
| Sep 9, 2026 | 15 |
| Sep 8, 2026 | 14 |
| Sep 7, 2026 | 17 |
| Sep 6, 2026 | 17 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/606341828-root)<a href="https://payloaddirectory.dev/plugins/606341828-root"><img src="https://payloaddirectory.dev/badge/606341828-root.svg" alt="Payload Directory"></a>README
Expect breaking changes.
A plugin for Payload CMS to connect Meilisearch and Payload.
Roadmap to stable release:
yarn add @nouance/payload-meilisearch
# OR
npm i @nouance/payload-meilisearch
In the plugins array of your Payload config, call the plugin with options:
import { buildConfig } from "payload/config";
import meilisearchPlugin from "@nouance/payload-meilisearch";
const config = buildConfig({
plugins: [
meilisearchPlugin({
host: process.env.MEILISEARCH_HOST,
apiKey: process.env.MEILISEARCH_API_KEY,
}),
],
});
export default config;
host
Required. Your Meilisearch host URL.
apiKey
Required. Your Meilisearch API key. Must have permissions to read, create and delete indexes and documents.
sync
Required. An array of sync configs. This will automatically configure a sync between Payload collections and Meilisearch indexes. See sync for more details.
logs
Optional. When true, logs sync events to the console as they happen.
This option will sync collection's data and their fields to your Meilisearch instance. Each collection slug maps to a unique index in Meilisearch.
import { buildConfig } from "payload/config";
import meilisearchPlugin from "@nouance/payload-meilisearch";
const config = buildConfig({
plugins: [
meilisearchPlugin({
host: process.env.MEILISEARCH_HOST,
apiKey: process.env.MEILISEARCH_API_KEY,
sync: [
{
collection: "posts",
fields: [
{
name: "title",
},
{
name: "publishedDate",
alias: "publicationDate",
},
],
},
],
}),
],
});
export default config;
You can optionally set an alias that maps the field to a different name in Meilisearch's index in case you don't want to expose inner field names or want to simplify it.
In Meilisearch, every document must have an ID, by default we're setting this to be the document's ID, however you can change it to any other field by making your alias id. Note that this has to be unique and a valid format (eg. no spaces), so we recommend leaving it as default or applying a transformer function to make sure your data format is always correct.
On each field you can apply a transformer function that takes in the field value as it is from the doc object and then update operation's full doc object so that you can modify the values before the collection is indexed. This is useful for dealing with complex fields like RichText where you might want to serialise it into a string so it's easily searchable.
Example transformer to set the name of a category as the ID of the document:
{
name: "name",
alias: "id",
transformer: (doc) => {
const name: string = doc.name;
return name.replaceAll(" ", "-").toLocaleLowerCase();
},
},
For development purposes, there is a full working example of how this plugin might be used in the demo of this repo. This demo can be developed locally using any Meilisearch Cloud account, you just need a working API key. Then:
git clone [email protected]:NouanceLabs/payload-meilisearch.git \
cd payload-meilisearch && yarn \
cd demo && yarn \
cp .env.example .env \
vim .env \ # add your Meilisearch creds to this file
yarn dev
search
Generate fast-to-query search records from your Payload documents
100128.3k/wk46.1kv3 v4
algolia search
Algolia search sync for Payload with draft-aware indexing, automatic text extraction and admin reindex buttons
5937/wk16v3
payload algolia search
Sync Payload collections to Algolia with search and re-index endpoints plus optional result enrichment
3522/wk1v3
payload plugin algolia
Sync Payload collections to an Algolia search index
54124/wk17v3
payload typesense
Typesense search for Payload with automatic sync, search endpoints, optional vector search and React search components
851.4k/wk33v3 v4
payload related items
Related content suggestions using BM25 and Jaccard similarity, with an admin sidebar widget and REST endpoint
4045/wk3v3