Syncs documents from selected Payload collections to an Algolia index using collection hooks. Configure it with Algolia credentials and a list of collection slugs in the plugins array. Requires Payload 3.x. Drafts are not indexed, and unpublishing a document removes it from the index.
Algolia search plugin for PayloadCMS
Installation
npm i payload-plugin-algolia17
Stars
3
Forks
4
Open Issues
5 months ago
Last Updated
124
Weekly Downloads
v1.0.2
npm Version
26.3 KB
Unpacked Size
1
Dependencies
170 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 17 |
| Dec 5, 2026 | 17 |
| Dec 4, 2026 | 17 |
| Dec 3, 2026 | 17 |
| Dec 2, 2026 | 17 |
| Dec 1, 2026 | 17 |
| Nov 30, 2026 | 17 |
| Nov 29, 2026 | 17 |
| Nov 28, 2026 | 17 |
| Nov 27, 2026 | 17 |
| Nov 26, 2026 | 17 |
| Nov 25, 2026 | 17 |
| Nov 24, 2026 | 17 |
| Nov 23, 2026 | 17 |
| Nov 22, 2026 | 17 |
| Nov 21, 2026 | 17 |
| Nov 20, 2026 | 17 |
| Nov 19, 2026 | 17 |
| Nov 18, 2026 | 17 |
| Nov 17, 2026 | 17 |
| Nov 16, 2026 | 17 |
| Nov 15, 2026 | 17 |
| Nov 14, 2026 | 17 |
| Nov 13, 2026 | 17 |
| Nov 12, 2026 | 17 |
| Nov 11, 2026 | 17 |
| Nov 10, 2026 | 17 |
| Nov 9, 2026 | 17 |
| Nov 8, 2026 | 17 |
| Nov 7, 2026 | 17 |
| Nov 6, 2026 | 17 |
| Nov 5, 2026 | 17 |
| Nov 4, 2026 | 17 |
| Nov 3, 2026 | 17 |
| Nov 2, 2026 | 17 |
| Nov 1, 2026 | 17 |
| Oct 31, 2026 | 17 |
| Oct 30, 2026 | 17 |
| Oct 29, 2026 | 17 |
| Oct 28, 2026 | 17 |
| Oct 27, 2026 | 17 |
| Oct 26, 2026 | 17 |
| Oct 25, 2026 | 17 |
| Oct 24, 2026 | 17 |
| Oct 23, 2026 | 17 |
| Oct 22, 2026 | 17 |
| Oct 21, 2026 | 17 |
| Oct 20, 2026 | 17 |
| Oct 19, 2026 | 17 |
| Oct 18, 2026 | 17 |
| Oct 17, 2026 | 17 |
| Oct 16, 2026 | 17 |
| Oct 15, 2026 | 17 |
| Oct 14, 2026 | 17 |
| Oct 13, 2026 | 17 |
| Oct 12, 2026 | 17 |
| Oct 11, 2026 | 17 |
| Oct 10, 2026 | 17 |
| Oct 9, 2026 | 17 |
| Oct 8, 2026 | 17 |
| Oct 7, 2026 | 17 |
| Oct 6, 2026 | 17 |
| Oct 5, 2026 | 17 |
| Oct 4, 2026 | 17 |
| Oct 3, 2026 | 17 |
| Oct 2, 2026 | 17 |
| Oct 1, 2026 | 17 |
| Sep 30, 2026 | 17 |
| Sep 29, 2026 | 17 |
| Sep 28, 2026 | 17 |
| Sep 27, 2026 | 17 |
| Sep 26, 2026 | 17 |
| Sep 25, 2026 | 17 |
| Sep 24, 2026 | 17 |
| Sep 23, 2026 | 17 |
| Sep 22, 2026 | 17 |
| Sep 21, 2026 | 17 |
| Sep 20, 2026 | 17 |
| Sep 19, 2026 | 17 |
| Sep 18, 2026 | 17 |
| Sep 17, 2026 | 17 |
| Sep 16, 2026 | 17 |
| Sep 15, 2026 | 17 |
| Sep 14, 2026 | 17 |
| Sep 13, 2026 | 17 |
| Sep 12, 2026 | 17 |
| Sep 11, 2026 | 17 |
| Sep 10, 2026 | 17 |
| Sep 9, 2026 | 17 |
| Sep 8, 2026 | 17 |
| Sep 7, 2026 | 17 |
125+46 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 125 |
| Dec 5, 2026 | 100 |
| Dec 4, 2026 | 82 |
| Dec 3, 2026 | 81 |
| Dec 2, 2026 | 31 |
| Dec 1, 2026 | 52 |
| Nov 30, 2026 | 75 |
| Nov 29, 2026 | 94 |
| Nov 28, 2026 | 103 |
| Nov 27, 2026 | 102 |
| Nov 26, 2026 | 107 |
| Nov 25, 2026 | 208 |
| Nov 24, 2026 | 194 |
| Nov 23, 2026 | 176 |
| Nov 22, 2026 | 232 |
| Nov 21, 2026 | 343 |
| Nov 20, 2026 | 363 |
| Nov 19, 2026 | 372 |
| Nov 18, 2026 | 364 |
| Nov 17, 2026 | 358 |
| Nov 16, 2026 | 376 |
| Nov 15, 2026 | 436 |
| Nov 14, 2026 | 785 |
| Nov 13, 2026 | 2,066 |
| Nov 12, 2026 | 2,651 |
| Nov 11, 2026 | 2,937 |
| Nov 10, 2026 | 3,017 |
| Nov 9, 2026 | 3,371 |
| Nov 8, 2026 | 3,975 |
| Nov 7, 2026 | 3,681 |
| Nov 6, 2026 | 2,511 |
| Nov 5, 2026 | 1,990 |
| Nov 4, 2026 | 1,636 |
| Nov 3, 2026 | 1,556 |
| Nov 2, 2026 | 1,192 |
| Nov 1, 2026 | 561 |
| Oct 31, 2026 | 469 |
| Oct 30, 2026 | 389 |
| Oct 29, 2026 | 305 |
| Oct 28, 2026 | 272 |
| Oct 27, 2026 | 271 |
| Oct 26, 2026 | 259 |
| Oct 25, 2026 | 154 |
| Oct 24, 2026 | 94 |
| Oct 23, 2026 | 36 |
| Oct 22, 2026 | 53 |
| Oct 21, 2026 | 62 |
| Oct 20, 2026 | 61 |
| Oct 19, 2026 | 58 |
| Oct 18, 2026 | 60 |
| Oct 17, 2026 | 65 |
| Oct 16, 2026 | 70 |
| Oct 15, 2026 | 65 |
| Oct 14, 2026 | 80 |
| Oct 13, 2026 | 83 |
| Oct 12, 2026 | 83 |
| Oct 11, 2026 | 98 |
| Oct 10, 2026 | 96 |
| Oct 9, 2026 | 128 |
| Oct 8, 2026 | 153 |
| Oct 7, 2026 | 172 |
| Oct 6, 2026 | 169 |
| Oct 5, 2026 | 169 |
| Oct 4, 2026 | 159 |
| Oct 3, 2026 | 147 |
| Oct 2, 2026 | 136 |
| Oct 1, 2026 | 178 |
| Sep 30, 2026 | 180 |
| Sep 29, 2026 | 214 |
| Sep 28, 2026 | 214 |
| Sep 27, 2026 | 244 |
| Sep 26, 2026 | 265 |
| Sep 25, 2026 | 282 |
| Sep 24, 2026 | 230 |
| Sep 23, 2026 | 230 |
| Sep 22, 2026 | 207 |
| Sep 21, 2026 | 207 |
| Sep 20, 2026 | 183 |
| Sep 19, 2026 | 161 |
| Sep 18, 2026 | 145 |
| Sep 17, 2026 | 172 |
| Sep 16, 2026 | 183 |
| Sep 15, 2026 | 172 |
| Sep 14, 2026 | 190 |
| Sep 13, 2026 | 218 |
| Sep 12, 2026 | 211 |
| Sep 11, 2026 | 185 |
| Sep 10, 2026 | 135 |
| Sep 9, 2026 | 93 |
| Sep 8, 2026 | 93 |
| Sep 7, 2026 | 79 |
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/786237326-root)<a href="https://payloaddirectory.dev/plugins/786237326-root"><img src="https://payloaddirectory.dev/badge/786237326-root.svg" alt="Payload Directory"></a>README
PayloadCMS plugin that syncs collections with Algolia search
Requires Payload 3.x (payload peer dependency).
npm i payload-plugin-algolia
At a minimum, the plugin requires Algolia credentials and a list of enabled collections.
// payload.config.ts
import { buildConfig } from 'payload'
import { AlgoliaSearchPlugin } from 'payload-plugin-algolia'
import Pages from './collections/Pages'
import Posts from './collections/Posts'
export default buildConfig({
collections: [Pages, Posts],
plugins: [
AlgoliaSearchPlugin({
algolia: {
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_API_KEY,
index: process.env.ALGOLIA_INDEX,
},
collections: ['pages', 'posts'],
}),
],
// ...more config
})
generateSearchAttributesBy default, the plugin will pass the entire document through to Algolia, with two appended keys:
objectID: format ${collection}:${id} eg pages:1collection: the collection slugYou can modify search attributes by providing a custom generateSearchAttributes function:
import { type GenerateSearchAttributes } from 'payload-plugin-algolia'
interface PageRecord {
title: string
text: string
}
interface PostRecord extends PageRecord {
image: string
}
const generateSearchAttributes: GenerateSearchAttributes<PageRecord | PostRecord> = async ({
doc,
collection,
req: { payload },
}) => {
switch (collection.slug) {
case 'posts': {
if (doc.featured_image) {
const { url } = await payload.findByID({
collection: 'media',
id: doc.featured_image as number,
})
return {
...doc,
image: url,
}
}
return doc
}
default:
return doc
}
}
waitForHook
Boolean, default =false
Set to true to wait for algolia set / delete operations during the collection hooks.
The current scope of the plugin is quite limited. PRs welcome!
Drafts are not indexed. If a document is unpublished, it gets removed from search results. Otherwise, draft updates to a published document have no effect.
Globals are not currently supported for indexing.
The internal Algolia client accepts all options. Beyond that, the rest of the setup for a typical Algolia configuration is outside the scope of the plugin (setting search attributes and facets, etc).
After cloning the repo and installing dependencies, run pnpm exec simple-git-hooks to setup automatic pre-commit linting.
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 typesense
Typesense search for Payload with automatic sync, search endpoints, optional vector search and React search components
851.4k/wk33v3 v4
payload meilisearch
Sync Payload collections to Meilisearch indexes on create, update and delete
3925/wk39v1
payload algolia search
Sync Payload collections to Algolia with search and re-index endpoints plus optional result enrichment
3522/wk1v3
payload related items
Related content suggestions using BM25 and Jaccard similarity, with an admin sidebar widget and REST endpoint
4045/wk3v3