You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@power-seo/schema

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@power-seo/schema - npm Package Compare versions

Comparing version
1.0.11
to
1.0.12
+9
-3
package.json
{
"name": "@power-seo/schema",
"version": "1.0.11",
"version": "1.0.12",
"description": "Type-safe JSON-LD structured data builder with 23 schema builders and React components",

@@ -45,6 +45,12 @@ "keywords": [

"files": [
"dist"
"dist",
"LICENSE"
],
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0",
"pnpm": ">=8.0.0"
},
"dependencies": {
"@power-seo/core": "1.0.11"
"@power-seo/core": "1.0.12"
},

@@ -51,0 +57,0 @@ "peerDependencies": {

+16
-19
# @power-seo/schema
![schema banner](../../image/schema/banner.svg)
![schema banner](https://raw.githubusercontent.com/CyberCraftBD/power-seo/main/image/schema/banner.svg)
Type-safe JSON-LD structured data for TypeScript and React — 23 schema.org builder functions, 21 React components, schema graph support, and field validation. Works in Next.js, Remix, Node.js, and Edge runtimes.
Type-safe JSON-LD structured data for TypeScript and React — 23 schema.org builder functions, 22 React components, schema graph support, and field validation. Works in Next.js, Remix, Node.js, and Edge runtimes.

@@ -10,3 +10,2 @@ [![npm version](https://img.shields.io/npm/v/@power-seo/schema)](https://www.npmjs.com/package/@power-seo/schema)

[![Socket](https://socket.dev/api/badge/npm/package/@power-seo/schema)](https://socket.dev/npm/package/@power-seo/schema)
[![npm provenance](https://img.shields.io/badge/npm-provenance-enabled-blue)](https://github.com/CyberCraftBD/power-seo/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

@@ -29,8 +28,14 @@ [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue)](https://www.typescriptlang.org/)

| Field validation | ❌ Silent failures in rich results | ✅ `validateSchema()` returns structured issues before deploy |
| React rendering | ❌ Manual `dangerouslySetInnerHTML` boilerplate | ✅ `<ArticleJsonLd>` and 20 other components in one import |
| React rendering | ❌ Manual `dangerouslySetInnerHTML` boilerplate | ✅ `<ArticleJsonLd>` and 21 other components in one import |
| Schema coverage | ❌ Only Article/FAQ in most packages | ✅ 23 types: Article, Product, FAQ, LocalBusiness, Event, Recipe, and more |
| Framework support | ❌ WordPress / next-seo only | ✅ Next.js, Remix, Node.js, Edge, static site generators |
![Schema Builder Comparison](../../image/schema/comparison.svg)
![Schema Builder Comparison](https://raw.githubusercontent.com/CyberCraftBD/power-seo/main/image/schema/comparison.svg)
<p align="left">
<a href="https://www.buymeacoffee.com/ccbd.dev" target="_blank">
<img src="https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20coffee&emoji=&slug=ccbd.dev&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff" />
</a>
</p>
---

@@ -41,8 +46,7 @@

- **23 schema.org type builder functions** — Article, BlogPosting, NewsArticle, Product, FAQPage, BreadcrumbList, LocalBusiness, Organization, Person, Event, Recipe, HowTo, VideoObject, Course, JobPosting, SoftwareApplication, WebSite, ItemList, Review, Service, Brand, SiteNavigationElement, ImageObject
- **21 pre-built React components** — `<ArticleJsonLd>`, `<FAQJsonLd>`, `<ProductJsonLd>`, `<BreadcrumbJsonLd>`, `<LocalBusinessJsonLd>`, `<OrganizationJsonLd>`, `<PersonJsonLd>`, `<EventJsonLd>`, `<RecipeJsonLd>`, `<HowToJsonLd>`, `<VideoJsonLd>`, `<CourseJsonLd>`, `<JobPostingJsonLd>`, `<SoftwareAppJsonLd>`, `<WebSiteJsonLd>`, `<ItemListJsonLd>`, `<ReviewJsonLd>`, `<ServiceJsonLd>`, `<BrandJsonLd>`, `<NewsArticleJsonLd>`, `<BlogPostingJsonLd>`
- **Generic `<JsonLd>` component** — renders any custom schema object as a JSON-LD script tag
- **22 pre-built React components** — `<ArticleJsonLd>`, `<BlogPostingJsonLd>`, `<NewsArticleJsonLd>`, `<ProductJsonLd>`, `<FAQJsonLd>`, `<BreadcrumbJsonLd>`, `<LocalBusinessJsonLd>`, `<OrganizationJsonLd>`, `<PersonJsonLd>`, `<EventJsonLd>`, `<RecipeJsonLd>`, `<HowToJsonLd>`, `<VideoJsonLd>`, `<CourseJsonLd>`, `<JobPostingJsonLd>`, `<SoftwareAppJsonLd>`, `<WebSiteJsonLd>`, `<ItemListJsonLd>`, `<ReviewJsonLd>`, `<ServiceJsonLd>`, `<BrandJsonLd>`, and `<JsonLd>` (generic, renders any schema)
- **`schemaGraph()`** — combine multiple schemas into a single `@graph` document for optimal Google parsing
- **`toJsonLdString()`** — serialize any schema object to a safe JSON-LD string for `dangerouslySetInnerHTML`
- **`validateSchema()`** — validate required fields without throwing; returns `{ valid, issues }` with severity, field, and message per issue
- **React optional** — all 23 builder functions work without React; components available via `/react` subpath export
- **React optional** — all 23 builder functions work without React; 22 React components available via `/react` subpath export
- **Type-safe API** — TypeScript-first with full typed interfaces for every schema type including nested objects

@@ -52,3 +56,3 @@ - **Tree-shakeable** — import only the schema types you use; zero dead code in your bundle

![Schema React Component UI](../../image/schema/react-ui.svg)
![Schema React Component UI](https://raw.githubusercontent.com/CyberCraftBD/power-seo/main/image/schema/react-ui.svg)

@@ -72,3 +76,3 @@ ---

![Schema Validation Accuracy](../../image/schema/validation-accuracy.svg)
![Schema Validation Accuracy](https://raw.githubusercontent.com/CyberCraftBD/power-seo/main/image/schema/validation-accuracy.svg)

@@ -126,3 +130,3 @@ ---

![Schema Rich Results](../../image/schema/rich-results.svg)
![Schema Rich Results](https://raw.githubusercontent.com/CyberCraftBD/power-seo/main/image/schema/rich-results.svg)

@@ -446,3 +450,2 @@ ---

- No `eval` or dynamic code execution
- npm provenance enabled — every release is signed via Sigstore through GitHub Actions
- CI-signed builds — all releases published via verified `github.com/CyberCraftBD/power-seo` workflow

@@ -462,3 +465,3 @@ - Safe for SSR, Edge, and server environments

| [`@power-seo/meta`](https://www.npmjs.com/package/@power-seo/meta) | `npm i @power-seo/meta` | SSR meta helpers for Next.js App Router, Remix v2, and generic SSR |
| [`@power-seo/schema`](https://www.npmjs.com/package/@power-seo/schema) | `npm i @power-seo/schema` | Type-safe JSON-LD structured data — 23 builders + 21 React components |
| [`@power-seo/schema`](https://www.npmjs.com/package/@power-seo/schema) | `npm i @power-seo/schema` | Type-safe JSON-LD structured data — 23 builders + 22 React components |
| [`@power-seo/content-analysis`](https://www.npmjs.com/package/@power-seo/content-analysis) | `npm i @power-seo/content-analysis` | Yoast-style SEO content scoring engine with React components |

@@ -480,8 +483,2 @@ | [`@power-seo/readability`](https://www.npmjs.com/package/@power-seo/readability) | `npm i @power-seo/readability` | Readability scoring — Flesch-Kincaid, Gunning Fog, Coleman-Liau, ARI |

## Keywords
seo · json ld · schema.org · structured data · rich results · nextjs json ld · react · faq schema · product schema · article schema · breadcrumb schema · local business schema · schema graph · validate schema · typescript json ld · nextjs · remix · job posting schema · programmatic seo · typescript
---
## About [CyberCraft Bangladesh](https://ccbd.dev)

@@ -488,0 +485,0 @@