SEO Plugin

Adds SEO metadata fields with live search-result previews to Payload collections and globals.

Community 1 195/wk MIT v1.6.3

Installation

pnpm add @art-design-digital/payload-plugin-seo

About

This Payload plugin injects a collapsible SEO field group into selected collections and globals. Editors get fields for the SEO title, description, and a 1200x630 share image, plus controls for index/noindex, follow/nofollow, additional robots directives, change frequency, and priority. The title and description fields are localized and required, with minimum length constraints enforced in the admin UI. A custom React component renders a live preview of how the page will appear in search results, with a toggle between desktop and mobile breakpoints. The title and description fields also show inline status indicators built with styled-components and react-truncate-markup to help editors stay within visible character limits. A `beforeValidate` hook named `generateSEOTitle` can auto-fill the SEO title from another field on the document when it is left empty, controlled by the `generateSEOTitleFrom` option. Field labels and admin descriptions are localized across German, English, French, and Spanish. Configuration is done through a single options object passed to `seoPlugin`. The `enabled` flag switches the plugin on (it defaults to off). `collections` and `globals` arrays target which slugs receive the fields, `mediaCollection` sets the upload relation for the SEO image, and `insertBefore` lets you position the field group relative to an existing field instead of appending it. The plugin targets Payload 2.x and does not generate sitemaps or render meta tags on the frontend; it only manages the data and admin experience.

Package info

Package name
@art-design-digital/payload-plugin-seo
Latest version
1.6.3
Unpacked size
91 kB
License
MIT
Weekly downloads
195
Last publish
Aug 27, 2026

More from art-design-digital

View profile

Similar plugins

More in SEO