Related Items
This plugin surfaces related content in Payload CMS using similarity algorithms.
Installation
pnpm add payload-plugin-related-items About
Related Items is a Payload CMS plugin designed to help users find related content based on determined algorithms. It offers multiple built-in scorers such as Jaccard and BM25, allowing for customization and predictability in content recommendations. The plugin supports features like multi-field weighting and recency decay, making it suitable for editorial sites and knowledge bases. Developers can integrate the plugin easily into their Payload configurations, and it works seamlessly with the search plugin for shared keyword extraction. The plugin provides a REST API for server-side retrieval as well as a headless React hook for client-side use, ensuring flexibility across various contexts. The admin panel includes an editor-visible widget for managing related items without complex configurations, enhancing usability for content editors. Related Items provides an in-memory LRU cache and optional precomputed collections for large datasets, contributing to efficient performance. With detailed documentation available, developers can customize behaviors and integrate related content efficiently in their projects.
Package info
- Package name
payload-plugin-related-items- Latest version
1.0.5- Unpacked size
- 424 kB
- License
- MIT
- Weekly downloads
- 105
- Last publish
- May 19, 2026
More from krzysztofradomski
View profileShaggle Core
Adds ready-made collections, globals, and layout blocks for agency and hospitality sites to a Payload CMS config.
Meilisearch
Syncs Payload CMS collection documents to a Meilisearch index via afterChange and afterDelete hooks.
Nested Docs
Adds parent-child document hierarchies with auto-generated breadcrumbs to Payload collections.
Redirects
Manage redirects directly within the Payload CMS admin panel.
Media Preview
Preview images, videos, audio, and documents directly in the Payload CMS admin panel.
Iframe Tabs
Add iframes into separate tabs in the Payload admin panel.