Nuxt module

Composables

useJsonLd renders validated structured data, useRanklintIgnore mutes rules for a page.

useJsonLd(type, data)

useJsonLd('Product', {
  name: 'Widget',
  offers: { price: 9.99, priceCurrency: 'USD' },
})

Renders <script type="application/ld+json"> via useHead with @context/@type. In dev the data is validated by Zod schemas (lazily imported — the validator never reaches the prod bundle) with console warnings. Schemas: Product, Article, BreadcrumbList, Organization, WebSite, FAQPage, Event, LocalBusiness, JobPosting, SoftwareApplication; @graph graphs are supported. The CLI rule jsonld:valid-schema uses the same schema set — no duplication.

useRanklintIgnore(...ruleIds)

Emits <meta name="ranklint:ignore" content="...">; the audit subtracts these rules for that specific page. Works for custom rules too.