Skip to main content
Wright Websites

heading-beacon

audit heading structure

Audit heading structure in your built static site: exactly one visible H1, no skipped levels, no empty, generic, duplicate, image-only or overlong headings, H1 vs title agreement and site-wide duplicate H1s.

  • 20/week on npm
  • 2★
  • MIT
  • v1.0.1
  • SEO & AEO
npx heading-beacon

Read the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)

heading-beacon

From the README

Headings are the outline search engines, answer engines and screen readers use to understand a page. Templates quietly break that outline: a logo wrapped in an adds a second H1, a card component jumps from to , a CMS leaves an empty behind, or every section is called "Overview". heading-beacon reads every built HTML page and reports the file, line, severity and a concrete fix for each problem, before you deploy.

npx heading-beacon dist
npx heading-beacon dist --fail-on medium
npx heading-beacon _site --max-length 90 --generic "Our services,Learn more"
npx heading-beacon out --allow-multiple-h1 --format markdown > headings.md

Related packages

SEO & AEO