What nuxt-jsonld does
nuxt-jsonld is a Nuxt module that manages JSON-LD inside Vue components. Installation runs through nuxi, which adds the package and registers it in nuxt. config. ts, or through pnpm and npm followed by a manual entry in the modules array.
In a component, useJsonld takes either a plain JSON-LD object for static markup or a function that returns an object, which keeps the tag reactive as values change. The composable is auto-imported and can also be imported from #jsonld. Options include tagPosition bodyClose, returning null to render nothing, emitting several JSON-LD blocks from one component, and an opt-in Options API.
Key features
- useJsonld composable for components
- Call the auto-imported composable with a JSON-LD object to emit structured data from any Vue component.
- Reactive JSON-LD objects
- Pass a function that returns the JSON-LD object, and the tag updates when reactive values inside it change.
- tagPosition bodyClose option
- Append JSON-LD tags to the end of the body instead of head, following the same option used by useHead.
- Multiple JSON-LD per component
- Return more than one JSON-LD data object from a single component and render each as its own tag.
- Hide tags with null
- Return null from useJsonld when a component does not need JSON-LD, and no tag is rendered.
- Opt-in Options API support
- Options API handling is disabled by default and switched on with a module option in the config.
How it works
- Install the module with npx nuxi module add nuxt-jsonld, or add the package with pnpm or npm.
- Register nuxt-jsonld in the modules array of nuxt. config. ts when installing by hand.
- Call useJsonld inside a component, passing a JSON-LD object for static output.
- Pass a function that returns the object when the JSON-LD must follow reactive values.
- Set tagPosition to bodyClose on a tag to place it at the end of the body.
- Return null from useJsonld to render no tag for that component.
Integrations and platforms
Works with
- Nuxt 3 via nuxt-jsonld@2
- Nuxt 2 via nuxt-jsonld@1
- schema.org vocabulary
- Nuxt useHead head management
Available as
- Web
Repository facts
- Repositoryymmooot/nuxt-jsonld
- LanguageTypeScript
- Stars319
- Forks24
- Created2018-11-03
- Last commit2026-11-16
- Open issues13
- jsonld
- nuxt
- nuxt-module
- nuxtjs
- seo
- vue
Services and details
Does SEO work itself
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free plan or free tools, free trial, API or MCP server, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company ymmooot
- Website: github.com/ymmooot/nuxt-jsonld
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.