Build a single route-aware Schema.org JSON-LD graph in Nuxt.
- Register structured data with an auto-imported
useJsonLdcomposable. - Combine application-wide and route-specific objects in one head script.
- Deduplicate and replace typed objects by their
@id. - Create typed Schema.org objects with package exports for creators and classes.
- Reuse type, object, and bundle presets stored in your Nuxt project.
Requires Nuxt 3.0 or newer and Node.js 18.12 or newer.
nuxi module add @avensio/nuxt-jsonld<script setup lang="ts">
import { createOrganization } from '@avensio/nuxt-jsonld/creators'
useJsonLd(
createOrganization({
'@id': 'https://example.com/#organization',
name: 'Example Inc.',
url: 'https://example.com/',
})
)
</script>The module combines application-wide and route-specific objects in one application/ld+json graph.
- Documentation website
- Overview
- Installation
- Runtime usage
- Presets
- Validation
- Configuration
- Development workflow
See the contribution guide for development and verification steps. Report vulnerabilities according to the security policy.