Back to browse
GitHub Repository

Stop wrestling with JSON-LD. Auto-generate structured data that gets your content discovered by Google Search, ChatGPT, and Claude

7 starsTypeScript

Schema Sentry – Type-Safe JSON-LD for Next.js with CI-Grade Validation

by arindamdawn·Feb 19, 2026·1 point·0 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

Validates JSON-LD against real HTML output, not config files—CI enforcement catches silent schema drift.

Strengths
  • Reality-check validation (scanning built HTML, not JSON) eliminates false positives that plague config-only validators
  • Deterministic output + CLI audit reports make schema maintenance reviewable in version control
  • 15+ schema type builders with autocomplete reduce manual JSON-LD writing errors
Weaknesses
  • JSON-LD validators already exist (Google's Structured Data Tool, schema.org validators); real differentiation is Next.js-specific, not fundamental
  • Adoption depends on dev discipline—schema still breaks if builders call wrong fields or omit required properties
Target Audience

Next.js developers managing SEO and AI discoverability through structured data

Similar To

schema.org validator · Google Structured Data Testing Tool · Yoast SEO

Post Description

TL;DR: I built a tool that makes adding JSON-LD structured data type-safe, validates against actual HTML output (not just config files), and enforces it in CI. No more broken schema markup.

The Problem

JSON-LD is painful to manage:

- Manually writing JSON-LD is error-prone and tedious

- Schema breaks silently when content changes

- Other tools validate JSON files (false positives!) — your pages still lack markup

- AI systems (ChatGPT, Claude, Perplexity) can't cite your content without proper structured data

- 30% lower CTR without rich snippets in Google

The Solution

Schema Sentry gives you type-safe builders + CI validation:

// Type-safe schema with autocomplete

* import { Schema, Article, Organization } from "@schemasentry/next";

export default function Page() {

return ( <> <Schema data={[ Organization({ name: "Acme", url: "https://acme.com" }), Article({ headline: "My Post", authorName: "Jane", datePublished: "2026-02-18", url: "https://acme.com/blog/post" }) ]} /> <main>...</main> </> );

}

Then in CI:

* pnpm schemasentry validate --manifest schema-sentry.manifest.json --build *

This validates actual built HTML — catches missing schema that other tools miss.

Key Features

- Type-safe builders for 15+ schema types (Product, Article, FAQ, etc.)

- <Schema /> component for Next.js App Router

- Validates real HTML output (zero false positives!)

- Manifest-driven coverage enforcement - GitHub Bot for automated PR schema reviews - VS Code extension with live preview

Why This Matters

- SEO: Eligible for rich snippets (30% higher CTR on Product pages)

- AI Discovery: ChatGPT/Claude/Perplexity can cite your content

- CI-grade: Fails builds when schema breaks — never deploy broken markup again

Try it:

pnpm add @schemasentry/next @schemasentry/core

pnpm add -D @schemasentry/cli

pnpm schemasentry init

Would love feedback!

Similar Projects