npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

payload-cms-seo-plugin

v1.0.6

Published

SEO plugin for Payload CMS 3.x — analysis, meta fields, dashboard, redirects, and more

Readme

payload-cms-seo-plugin

SEO plugin for Payload CMS 3.x — analysis, meta fields, dashboard, redirects, and more.

Installation

npm install payload-cms-seo-plugin

Quick Start

import { buildConfig } from 'payload'
import { seoPlugin } from 'payload-cms-seo-plugin'

export default buildConfig({
  // ... your config
  plugins: [
    seoPlugin({
      collections: ['pages', 'posts'],
      siteUrl: 'https://example.com',
    }),
  ],
})

Features

| Feature | Default | Description | |---------|---------|-------------| | analyzer | ✅ | SEO content analysis with scoring | | dashboard | ✅ | Admin dashboard with SEO metrics | | redirects | ✅ | URL redirect management | | performance | ✅ | Page performance tracking | | linkGraph | ✅ | Internal link visualization | | keywords | ✅ | Keyword research tool | | cannibalization | ✅ | Keyword cannibalization detection | | schemaBuilder | ✅ | JSON-LD schema generator | | sitemapAudit | ✅ | Sitemap validation | | seoLogs | ✅ | SEO activity logging | | scoreHistory | ✅ | Historical score tracking | | duplicateContent | ✅ | Duplicate content detection | | settings | ✅ | Plugin configuration UI | | aiFeatures | ❌ | AI-powered suggestions | | gscApi | ❌ | Google Search Console integration | | indexNow | ❌ | IndexNow API submission |

Configuration

seoPlugin({
  collections: ['pages', 'posts'],
  globals: ['settings'],
  siteUrl: 'https://example.com',
  siteName: 'My Site',
  uploadsCollection: 'media',
  endpointBasePath: '/seo-plugin',
  autoCreateMetaFields: true,
  features: {
    aiFeatures: true,
    gscApi: true,
  },
  thresholds: {
    titleLengthMin: 30,
    titleLengthMax: 60,
    metaDescLengthMin: 120,
    metaDescLengthMax: 160,
    minWordsGeneric: 300,
    minWordsPost: 800,
  },
})

API Endpoints

All endpoints are prefixed with endpointBasePath (default: /seo-plugin).

| Endpoint | Method | Description | |----------|--------|-------------| | /validate | GET | Validate SEO for a document | | /audit | GET | Full SEO audit | | /history | GET | Score history | | /redirects | GET/POST/DELETE | Manage redirects | | /settings | GET/PATCH | Plugin settings | | /cannibalization | GET | Detect keyword cannibalization | | /keyword-research | GET | Keyword research | | /link-graph | GET | Internal link graph | | /sitemap-audit | GET | Audit sitemap | | /schema-generator | GET | Generate JSON-LD schema | | /performance | GET/POST | Performance metrics | | /redirect-chains | GET | Detect redirect chains | | /duplicate-content | GET | Find duplicate content | | /seo-logs | GET/POST | SEO activity logs | | /health | GET | Health check |

Frontend Usage

Metadata

import { buildSeoMetadata } from 'payload-cms-seo-plugin/frontend'

export async function generateMetadata({ params }) {
  const doc = await payload.findByID({ collection: 'pages', id: params.id })
  return buildSeoMetadata({ doc, collection slug: 'pages' })
}

JSON-LD

import { buildJsonLd, renderJsonLdScript } from 'payload-cms-seo-plugin/frontend'

export default function Page({ doc }) {
  const jsonLd = buildJsonLd({ doc, type: 'Article' })
  return (
    <>
      {renderJsonLdScript(jsonLd)}
      {/* page content */}
    </>
  )
}

Peer Dependencies

  • payload ^3.0.0
  • @payloadcms/next ^3.0.0
  • @payloadcms/ui ^3.0.0
  • react ^18.0.0 || ^19.0.0

License

MIT