art-design-digital

payload plugin seo

by art-design-digital
SEO & metadata
v2
^2.0.0
MIT

Overview

Summary generated from the README

Adds SEO fields to selected collections and globals, including title, description, picture, indexing and link-following flags, robots tags, change frequency and priority. Editors see a mobile and desktop search result preview. It is configured through the plugins array with an enabled flag and lists of collection and global slugs. Built for Payload 2.x.

Features

  • Title, description and picture fields for SEO metadata
  • Mobile and desktop search result preview
  • Toggles for allowing indexing and following links
  • Additional robots tags, change frequency and priority fields
  • Optional generation of the SEO title from another field on save
  • Configurable position of the SEO fields via insertBefore

Use cases

  • Give editors SEO fields and a live search preview on page collections
  • Control robots and sitemap hints such as priority and change frequency per document
  • Add shared SEO metadata to globals such as a homepage settings global

From the author

A Payload plugin for SEO. This plugin adds SEO fields to your collections and documents. It also provides a helper function to generate meta tags for your site.

Installation

npm i @art-design-digital/payload-plugin-seo

1

Stars

0

Forks

0

Open Issues

3 months ago

Last Updated

67

Weekly Downloads

v1.6.3

npm Version

90.6 KB

Unpacked Size

3

Dependencies

GitHub stars

10 since Sep 7

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 20261
Dec 5, 20261
Dec 4, 20261
Dec 3, 20261
Dec 2, 20261
Dec 1, 20261
Nov 30, 20261
Nov 29, 20261
Nov 28, 20261
Nov 27, 20261
Nov 26, 20261
Nov 25, 20261
Nov 24, 20261
Nov 23, 20261
Nov 22, 20261
Nov 21, 20261
Nov 20, 20261
Nov 19, 20261
Nov 18, 20261
Nov 17, 20261
Nov 16, 20261
Nov 15, 20261
Nov 14, 20261
Nov 13, 20261
Nov 12, 20261
Nov 11, 20261
Nov 10, 20261
Nov 9, 20261
Nov 8, 20261
Nov 7, 20261
Nov 6, 20261
Nov 5, 20261
Nov 4, 20261
Nov 3, 20261
Nov 2, 20261
Nov 1, 20261
Oct 31, 20261
Oct 30, 20261
Oct 29, 20261
Oct 28, 20261
Oct 27, 20261
Oct 26, 20261
Oct 25, 20261
Oct 24, 20261
Oct 23, 20261
Oct 22, 20261
Oct 21, 20261
Oct 20, 20261
Oct 19, 20261
Oct 18, 20261
Oct 17, 20261
Oct 16, 20261
Oct 15, 20261
Oct 14, 20261
Oct 13, 20261
Oct 12, 20261
Oct 11, 20261
Oct 10, 20261
Oct 9, 20261
Oct 8, 20261
Oct 7, 20261
Oct 6, 20261
Oct 5, 20261
Oct 4, 20261
Oct 3, 20261
Oct 2, 20261
Oct 1, 20261
Sep 30, 20261
Sep 29, 20261
Sep 28, 20261
Sep 27, 20261
Sep 26, 20261
Sep 25, 20261
Sep 24, 20261
Sep 23, 20261
Sep 22, 20261
Sep 21, 20261
Sep 20, 20261
Sep 19, 20261
Sep 18, 20261
Sep 17, 20261
Sep 16, 20261
Sep 15, 20261
Sep 14, 20261
Sep 13, 20261
Sep 12, 20261
Sep 11, 20261
Sep 10, 20261
Sep 9, 20261
Sep 8, 20261
Sep 7, 20261
npm weekly downloads

93+31 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 202693
Dec 5, 202656
Dec 4, 202655
Dec 3, 202654
Dec 2, 202654
Dec 1, 202653
Nov 30, 202652
Nov 29, 202631
Nov 28, 202630
Nov 27, 202630
Nov 26, 202628
Nov 25, 202630
Nov 24, 202611
Nov 23, 202612
Nov 22, 202611
Nov 21, 202612
Nov 20, 202612
Nov 19, 202611
Nov 18, 202627
Nov 17, 202626
Nov 16, 202626
Nov 15, 202629
Nov 14, 202629
Nov 13, 202632
Nov 12, 202632
Nov 11, 202613
Nov 10, 202632
Nov 9, 202631
Nov 8, 202624
Nov 7, 202623
Nov 6, 202630
Nov 5, 202631
Nov 4, 202631
Nov 3, 202613
Nov 2, 202614
Nov 1, 202615
Oct 31, 202615
Oct 30, 20264
Oct 29, 20263
Oct 28, 20263
Oct 27, 20262
Oct 26, 20263
Oct 25, 20262
Oct 24, 20262
Oct 23, 20262
Oct 22, 202624
Oct 21, 202624
Oct 20, 202624
Oct 19, 202623
Oct 18, 202623
Oct 17, 202623
Oct 16, 202623
Oct 15, 20265
Oct 14, 20265
Oct 13, 20266
Oct 12, 20265
Oct 11, 20267
Oct 10, 20268
Oct 9, 20268
Oct 8, 20266
Oct 7, 20268
Oct 6, 202611
Oct 5, 202613
Oct 4, 202612
Oct 3, 202612
Oct 2, 202615
Oct 1, 202613
Sep 30, 202616
Sep 29, 202612
Sep 28, 202629
Sep 27, 202628
Sep 26, 202664
Sep 25, 202663
Sep 24, 202664
Sep 23, 202660
Sep 22, 202661
Sep 21, 202661
Sep 20, 202661
Sep 19, 202625
Sep 18, 202625
Sep 17, 202625
Sep 16, 202625
Sep 15, 202627
Sep 14, 202610
Sep 13, 202616
Sep 12, 202635
Sep 11, 202645
Sep 10, 202649
Sep 9, 202650
Sep 8, 202658
Sep 7, 202662

Each point is npm's rolling 7-day download count.

Health Score

55/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/762163849-root.svg)](https://payloaddirectory.dev/plugins/762163849-root)
HTML
<a href="https://payloaddirectory.dev/plugins/762163849-root"><img src="https://payloaddirectory.dev/badge/762163849-root.svg" alt="Payload Directory"></a>
Updated Aug 27, 2026Created Feb 23, 2024Published Aug 27, 2026

README

Payload SEO-Plugin

This plugin implements some important SEO features for PayloadCMS.

It adds desired collections and globals fields that can be filled to provide various SEO metadata. It also supports editors in maintaining SEO data by requiring some fields as mandatory data and generating previews for the search results.

Fields and functions in detail

Preview

This field automatically generates a preview of how this page may appear in search results from the data provided. It has an option to switch between mobile and desktop previews. So the editor can see how the result looks for both breakpoints.

Screenshot Preview mobile Screenshot Preview

Title

Screenshot Title

Description

Screenshot Description

Picture

Screenshot Picture

Allow indexing

Screenshot Indexing

Screenshot Following

Additional Robots tags

Screenshot Robots

Change frequency

Screenshot Frequency

Priority

Screenshot Priority

Installation and usage of the plugin

Installation

The plugin is an official npm library that can be installed via

npm install @art-design-digital/payload-plugin-seo

or via

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

Usage

The plugin is a plugin for PayloadCMS and so it can be installed by adding it to the plugins array in the payload.config.ts

The plugin works by adding no parameters (even no empty object) but it is disabled in using it this way. You have to set at least the props object with the enabled property to enable it.

plugins: [
  seoPlugin({
    enabled: true
  })
]

Here is the list of all available parameters that can be set in the plugin.

NameDescriptionTypeDefault
enabledSwitches the whole plugin on or off.booleanfalse
collectionsArray of slugs that defines in which collections the plugin shall be used.string[][]
globalsArray of slugs that defines in which globals the plugin shall be used.string[][]
mediaCollectionTell the plugin which collection shall be used for uploading a photo for a team member.string'media'
generateSEOTitleFromDefine the field from which the SEO-Title shall be generated from when clicking on Save.string''
insertBeforeDefine on which position the field should be rendered in a specific global or collection. If nothing is set here the fields are appended.{collections: [{slug: string, field: string}], globals: [{slug: string, field: string}]}{}

In this example you can see a full working configuration for a demo project.

seoPlugin({
  enabled: true,
  collections: ['examples', 'some-collection'],
  globals: ['demo-global'],
  mediaCollection: 'media',
  generateSEOTitleFrom: 'someField',
  insertBefore: {
    globals: [
      {
        slug: 'demo-global',
        field: 'description',
      },
    ],
    collections: [
      {
        slug: 'examples',
        field: 'anotherField',
      },
      {
        slug: 'some-collection',
        field: 'niceField',
      },
    ],
  },
})

TODO's

  • Custom position of the seo fields
  • Add meta fields for robots.txt and headers
  • Translations
  • Choose if seo fields are rendered in tabs or as collapsible
  • Precise field choice for the generateTitleFrom function
  • Add static appended parts of the SEO-Title if set and include this in calculating the length indicator

Questions

Please contact art&design digital with any questions about using this plugin.

Similar plugins

payload plugin seo — Payload Directory