schema-beacon
validate JSON-LD schema
Validate JSON-LD and microdata in a built static site against schema.org types and Google rich-result requirements: parse errors, unknown types, missing required/recommended properties, bad dates.
- 18/week on npm
- 2★
- MIT
- v1.0.1
- SEO & AEO
npx schema-beaconRead the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)
schema-beacon
From the README
Structured data fails quietly. A trailing comma makes the whole JSON-LD block invisible. "price": "$1,299.00", "availability": "in stock" and "datePublished": "14/10/2026" all look fine to a person, but Google throws them away. A template change drops image from every recipe, and the rich results disappear a few weeks later. schema-beacon reads every page of your build output and checks each JSON-LD block and microdata item. It reports the file, line, severity and a concrete fix, in CI, before you deploy.
npx schema-beacon dist
npx schema-beacon dist --fail-on medium --no-recommended
npx schema-beacon public --include "products/**" --sarif schema.sarifWhere we use it
Related packages
SEO & AEO
- next-herald
typed SEO for Next.js
- answer-beacon
answer-engine readiness checks
- canonical-beacon
check canonical and hreflang
- heading-beacon
audit heading structure