SEO JSON-LD Structured Data
Builds Schema.org JSON-LD for products, breadcrumbs, carousels, site search and organization data in Payload e-commerce sites.
Installation
pnpm add payload-plugin-seo-jsonld About
This package is a set of helper functions for generating Schema.org JSON-LD, the structured data format Google reads for rich results. It targets storefronts built on Payload CMS v3. Each builder takes a Payload document or site settings and returns a plain object you serialize into a `<script type="application/ld+json">` tag in your Next.js pages or layouts. The builders cover Product with an AggregateOffer that uses `lowPrice`, optional AggregateRating from review data you pass in, BreadcrumbList for nested category paths, ItemList for shop and category pages, WebSite with a SearchAction, and Organization. The plugin export is a no-op. `seoJsonLdPlugin` returns the config unchanged and adds no collections, fields, hooks, or endpoints. Integration happens in your frontend code, not in the Payload admin or database layer. Prices are stored in cents in Payload, so the builders divide by 100 before output. The currency defaults to EUR and accepts any ISO 4217 code. The main limits are on the caller side. Breadcrumbs need products fetched at depth 3 so that parent categories are populated. `buildItemListJsonLd` returns `null` for an empty array, and Google treats two or more ItemList scripts on one page as invalid, so each page should emit at most one. Review values are not read from Payload; you supply `averageRating` and `reviewCount` yourself. The package is MIT-licensed, depends on Payload ^3.0.0 as a peer, and was written for European jewelry shops.
Package info
- Package name
payload-plugin-seo-jsonld- Latest version
1.0.2- Unpacked size
- 22 kB
- License
- MIT
- Weekly downloads
- 293
- Last publish
- Oct 11, 2026
More from spiritracking-arch
View profileSimilar plugins
More in SEOSEO Analyzer
Payload plugin that audits page SEO in the editor sidebar with 50+ checks, a dashboard, score history, redirects and IndexNow.
SEO plugin
A plugin to manage SEO metadata from within the Payload admin panel.
SEO Plugin
Adds SEO metadata fields with live search-result previews to Payload collections and globals.
Llms Txt
Generates llms.txt and llms-full.txt files for LLMs from your Payload collections.
SEO
Adds live Yoast SEO analysis to the Payload v3 document editor with a SERP preview, keyphrase checks, and readability scoring.