Provides helper functions that generate JSON-LD objects for Payload CMS v3 e-commerce sites so Google can show rich snippets. You call the builders in your Next.js pages and layouts and render the output in script tags. An optional plugin entry in the Payload config sets the currency. Product documents should be fetched with depth 3 so categories and their parents are populated.
Schema.org JSON-LD utilities for Payload CMS v3 e-commerce — Product, BreadcrumbList, ItemList, WebSite, Organization. Enables Google rich snippets with zero config.
Installation
npm i payload-plugin-seo-jsonld1
Stars
0
Forks
0
Open Issues
1 months ago
Last Updated
7
Weekly Downloads
v1.0.2
npm Version
21.6 KB
Unpacked Size
0
Dependencies
1+1 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 1 |
| Dec 5, 2026 | 1 |
| Dec 4, 2026 | 1 |
| Dec 3, 2026 | 1 |
| Dec 2, 2026 | 1 |
| Dec 1, 2026 | 1 |
| Nov 30, 2026 | 1 |
| Nov 29, 2026 | 1 |
| Nov 28, 2026 | 1 |
| Nov 27, 2026 | 1 |
| Nov 26, 2026 | 1 |
| Nov 25, 2026 | 1 |
| Nov 24, 2026 | 1 |
| Nov 23, 2026 | 1 |
| Nov 22, 2026 | 1 |
| Nov 21, 2026 | 1 |
| Nov 20, 2026 | 1 |
| Nov 19, 2026 | 1 |
| Nov 18, 2026 | 1 |
| Nov 17, 2026 | 1 |
| Nov 16, 2026 | 1 |
| Nov 15, 2026 | 1 |
| Nov 14, 2026 | 1 |
| Nov 13, 2026 | 1 |
| Nov 12, 2026 | 1 |
| Nov 11, 2026 | 1 |
| Nov 10, 2026 | 1 |
| Nov 9, 2026 | 1 |
| Nov 8, 2026 | 1 |
| Nov 7, 2026 | 1 |
| Nov 6, 2026 | 1 |
| Nov 5, 2026 | 1 |
| Nov 4, 2026 | 1 |
| Nov 3, 2026 | 1 |
| Nov 2, 2026 | 1 |
| Nov 1, 2026 | 1 |
| Oct 31, 2026 | 1 |
| Oct 30, 2026 | 1 |
| Oct 29, 2026 | 1 |
| Oct 28, 2026 | 1 |
| Oct 27, 2026 | 1 |
| Oct 26, 2026 | 1 |
| Oct 25, 2026 | 1 |
| Oct 24, 2026 | 1 |
| Oct 23, 2026 | 1 |
| Oct 22, 2026 | 1 |
| Oct 21, 2026 | 1 |
| Oct 20, 2026 | 1 |
| Oct 19, 2026 | 1 |
| Oct 18, 2026 | 1 |
| Oct 17, 2026 | 1 |
| Oct 16, 2026 | 1 |
| Oct 15, 2026 | 1 |
| Oct 14, 2026 | 1 |
| Oct 13, 2026 | 1 |
| Oct 12, 2026 | 1 |
| Oct 11, 2026 | 0 |
| Oct 10, 2026 | 0 |
| Oct 9, 2026 | 0 |
| Oct 8, 2026 | 0 |
| Oct 7, 2026 | 0 |
| Oct 6, 2026 | 0 |
| Oct 5, 2026 | 0 |
| Oct 4, 2026 | 0 |
| Oct 3, 2026 | 0 |
| Oct 2, 2026 | 0 |
| Oct 1, 2026 | 0 |
| Sep 30, 2026 | 0 |
| Sep 29, 2026 | 0 |
| Sep 28, 2026 | 0 |
| Sep 27, 2026 | 0 |
| Sep 26, 2026 | 0 |
| Sep 25, 2026 | 0 |
| Sep 24, 2026 | 0 |
| Sep 23, 2026 | 0 |
| Sep 22, 2026 | 0 |
| Sep 21, 2026 | 0 |
| Sep 20, 2026 | 0 |
| Sep 19, 2026 | 0 |
| Sep 18, 2026 | 0 |
| Sep 17, 2026 | 0 |
| Sep 16, 2026 | 0 |
| Sep 15, 2026 | 0 |
| Sep 14, 2026 | 0 |
| Sep 13, 2026 | 0 |
| Sep 12, 2026 | 0 |
| Sep 11, 2026 | 0 |
| Sep 10, 2026 | 0 |
| Sep 9, 2026 | 0 |
| Sep 8, 2026 | 0 |
| Sep 7, 2026 | 0 |
8−2 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 8 |
| Dec 5, 2026 | 6 |
| Dec 4, 2026 | 6 |
| Dec 3, 2026 | 6 |
| Dec 2, 2026 | 10 |
| Dec 1, 2026 | 9 |
| Nov 30, 2026 | 12 |
| Nov 29, 2026 | 13 |
| Nov 28, 2026 | 14 |
| Nov 27, 2026 | 13 |
| Nov 26, 2026 | 15 |
| Nov 25, 2026 | 11 |
| Nov 24, 2026 | 10 |
| Nov 23, 2026 | 8 |
| Nov 22, 2026 | 9 |
| Nov 21, 2026 | 10 |
| Nov 20, 2026 | 12 |
| Nov 19, 2026 | 14 |
| Nov 18, 2026 | 14 |
| Nov 17, 2026 | 15 |
| Nov 16, 2026 | 16 |
| Nov 15, 2026 | 14 |
| Nov 14, 2026 | 13 |
| Nov 13, 2026 | 16 |
| Nov 12, 2026 | 17 |
| Nov 11, 2026 | 16 |
| Nov 10, 2026 | 18 |
| Nov 9, 2026 | 16 |
| Nov 8, 2026 | 18 |
| Nov 7, 2026 | 26 |
| Nov 6, 2026 | 26 |
| Nov 5, 2026 | 23 |
| Nov 4, 2026 | 26 |
| Nov 3, 2026 | 38 |
| Nov 2, 2026 | 45 |
| Nov 1, 2026 | 43 |
| Oct 31, 2026 | 36 |
| Oct 30, 2026 | 31 |
| Oct 29, 2026 | 29 |
| Oct 28, 2026 | 26 |
| Oct 27, 2026 | 15 |
| Oct 26, 2026 | 8 |
| Oct 25, 2026 | 11 |
| Oct 24, 2026 | 12 |
| Oct 23, 2026 | 11 |
| Oct 22, 2026 | 38 |
| Oct 21, 2026 | 63 |
| Oct 20, 2026 | 350 |
| Oct 19, 2026 | 350 |
| Oct 18, 2026 | 347 |
| Oct 17, 2026 | 345 |
| Oct 16, 2026 | 345 |
| Oct 15, 2026 | 319 |
| Oct 14, 2026 | 294 |
| Oct 13, 2026 | 3 |
| Oct 12, 2026 | 3 |
| Oct 11, 2026 | 3 |
| Oct 10, 2026 | 2 |
| Oct 9, 2026 | 2 |
| Oct 8, 2026 | 1 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 1 |
| Oct 5, 2026 | 1 |
| Oct 4, 2026 | 0 |
| Oct 3, 2026 | 0 |
| Oct 2, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Sep 30, 2026 | 1 |
| Sep 29, 2026 | 1 |
| Sep 28, 2026 | 1 |
| Sep 27, 2026 | 2 |
| Sep 26, 2026 | 6 |
| Sep 25, 2026 | 6 |
| Sep 24, 2026 | 6 |
| Sep 23, 2026 | 6 |
| Sep 22, 2026 | 7 |
| Sep 21, 2026 | 7 |
| Sep 20, 2026 | 7 |
| Sep 19, 2026 | 3 |
| Sep 18, 2026 | 3 |
| Sep 17, 2026 | 4 |
| Sep 16, 2026 | 5 |
| Sep 15, 2026 | 5 |
| Sep 14, 2026 | 7 |
| Sep 13, 2026 | 7 |
| Sep 12, 2026 | 7 |
| Sep 11, 2026 | 7 |
| Sep 10, 2026 | 6 |
| Sep 9, 2026 | 7 |
| Sep 8, 2026 | 7 |
| Sep 7, 2026 | 10 |
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/1270763175-root)<a href="https://payloaddirectory.dev/plugins/1270763175-root"><img src="https://payloaddirectory.dev/badge/1270763175-root.svg" alt="Payload Directory"></a>README
Schema.org JSON-LD utilities for Payload CMS v3 e-commerce. Enables Google rich snippets (product cards, carousels, breadcrumbs) with battle-tested helpers built on real production deployments across 23 European shops.
⭐ If this plugin saves you time, star it on GitHub. It is the main way other Payload developers find it.
AggregateOffer with lowPrice, stock status, variants supportnpm install payload-plugin-seo-jsonld
// payload.config.ts
import { seoJsonLdPlugin } from 'payload-plugin-seo-jsonld'
export default buildConfig({
plugins: [
seoJsonLdPlugin({ currency: 'EUR' }),
],
})
// src/app/(app)/products/[slug]/page.tsx
import { buildProductJsonLd, buildBreadcrumbJsonLd } from 'payload-plugin-seo-jsonld'
export default async function ProductPage({ params }) {
const product = await fetchProduct(params.slug)
const siteUrl = process.env.NEXT_PUBLIC_SERVER_URL!
const productJsonLd = buildProductJsonLd({
product,
siteUrl,
currency: 'EUR',
// Optional: plug in review data
averageRating: 4.8,
reviewCount: 42,
})
const breadcrumbJsonLd = buildBreadcrumbJsonLd({ product, siteUrl })
return (
<>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(productJsonLd) }}
/>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbJsonLd) }}
/>
{/* your page content */}
</>
)
}
// src/app/(app)/shop/page.tsx
import { buildItemListJsonLd } from 'payload-plugin-seo-jsonld'
export default async function ShopPage() {
const products = await fetchProducts()
const siteUrl = process.env.NEXT_PUBLIC_SERVER_URL!
// ⚠️ Only one ItemList per page — Google invalidates duplicates
const itemListJsonLd = buildItemListJsonLd({
products: products.docs,
siteUrl,
currency: 'EUR',
listName: 'Our Products',
})
return (
<>
{itemListJsonLd && (
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(itemListJsonLd) }}
/>
)}
{/* your page content */}
</>
)
}
// src/app/layout.tsx
import { buildWebSiteJsonLd, buildOrganizationJsonLd } from 'payload-plugin-seo-jsonld'
export default function RootLayout({ children }) {
const siteUrl = process.env.NEXT_PUBLIC_SERVER_URL!
const websiteJsonLd = buildWebSiteJsonLd({
siteUrl,
siteName: 'My Shop',
description: 'Premium jewelry across Europe',
})
const orgJsonLd = buildOrganizationJsonLd({
siteUrl,
name: 'My Shop',
logo: `${siteUrl}/logo.png`,
})
return (
<html>
<body>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(websiteJsonLd) }}
/>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(orgJsonLd) }}
/>
{children}
</body>
</html>
)
}
buildProductJsonLd(options)| Option | Type | Default | Description |
|---|---|---|---|
product | object | required | Payload product document |
siteUrl | string | required | Base URL (e.g. https://myshop.com) |
currency | string | 'EUR' | ISO 4217 currency code |
averageRating | number | — | Average review rating |
reviewCount | number | — | Number of reviews |
buildBreadcrumbJsonLd(options)| Option | Type | Description |
|---|---|---|
product | object | Payload product with populated categories |
siteUrl | string | Base URL |
Supports nested categories:
Shop → Parent Category → Sub Category → Product
buildItemListJsonLd(options)| Option | Type | Default | Description |
|---|---|---|---|
products | array | required | Array of Payload product docs |
siteUrl | string | required | Base URL |
currency | string | 'EUR' | ISO 4217 currency code |
listName | string | 'Products' | Name of the list |
Returns
nullif products array is empty — safe to use with conditional rendering.
buildWebSiteJsonLd(options)| Option | Type | Description |
|---|---|---|
siteUrl | string | Base URL |
siteName | string | Site name |
description | string | Optional description |
buildOrganizationJsonLd(options)| Option | Type | Description |
|---|---|---|
siteUrl | string | Base URL |
name | string | Organization name |
logo | string | Logo URL |
description | string | Optional description |
3990 = €39.90). This plugin automatically divides by 100.ItemList scripts. Always check before adding.lowPrice not price — Google requires lowPrice for AggregateOffer validation. This plugin handles it correctly.depth: 3 to populate categories and their parents.# Check lowPrice on product page
curl -s "https://myshop.com/products/my-product" | grep "lowPrice"
# Check single ItemList on shop page
curl -s "https://myshop.com/shop" | grep -o '"@type":"ItemList"' | wc -l
# → must return 1
Test with Google Rich Results Test.
I'm Camille Guerineau. I spent ten years as a jewelry maker and founder of Loch Ness Paris before going back to full-stack development. I build Payload CMS shops for real e-commerce, and I publish the pieces that were missing.
payload-plugin-reviews, customer reviews with moderation and star ratingsverumano)Need help with a Payload CMS v3 shop, SEO or rich snippets? Get in touch through lochness-paris.com.
MIT © Camille Guerineau
payload plugin structured data
JSON-LD structured data for Payload pages, editable from admin settings and per-document overrides
6943/wk1v3
seo
SEO fields, settings global and automatic redirects for Payload, with Next.js metadata, sitemap and robots helpers
75303/wk3v3
payload seo analyzer
Offline on-page SEO analysis, admin dashboard, sitemaps and JSON-LD for Payload 3 and Next.js sites
72880/wk17v3
sitemap
Chunked, lazily cached XML sitemaps with hook-driven invalidation and robots.txt helpers
62156/wk16v3
advanced seo plugin
SEO meta group, global defaults, hreflang alternates, OG image generation and JSON-LD builders for Payload collections
09/wk3v3
seo
Manage SEO metadata for your content from within the Payload admin panel
100346.5k/wk46.1kv3 v4