Nuxt AEO is a Nuxt module that supports AI Engine Optimization (AEO) through Schema.org JSON-LD.
AI Engine Optimization (AEO) is a technique for optimizing structured data so that AI models (ChatGPT, Claude, Perplexity, etc.) and search engines can better understand web content and provide accurate answers to user questions.
With this module, you can:
Once installed, you can use it right away. The simplest example is adding a Schema to an FAQ page:
<script setup lang="ts">
useSchemaFaq({
mainEntity: [
{
name: 'What is the Nuxt AEO module?',
acceptedAnswer: {
text: 'Nuxt AEO is a Nuxt module that supports AI Engine Optimization (AEO) through Schema.org JSON-LD.'
}
}
]
})
</script>
Open Developer Tools (F12) and check the Elements tab for a JSON-LD script tag like this:
This page includes FAQPage Schema to help AI models and search engines understand common questions about getting started with Nuxt AEO.
<script setup lang="ts">
useSchemaFaq({
mainEntity: [
{
name: 'What is AEO?',
acceptedAnswer: {
text: 'AEO (AI Engine Optimization) is a technique for optimizing structured data so that AI models (ChatGPT, Claude, Perplexity, etc.) and search engines can better understand web content and provide accurate answers to user questions.',
},
},
{
name: 'What are the main features of the Nuxt AEO module?',
acceptedAnswer: {
text: 'The Nuxt AEO module supports AI model optimization, search engine optimization, and answer engine optimization through Schema.org JSON-LD. It also automatically generates semantic HTML to help LLM crawlers better understand content.',
},
},
{
name: 'How do I get started?',
acceptedAnswer: {
text: 'You can start using it immediately after installing the module. The simplest example is adding a Schema to an FAQ page. You can easily add question-answer structures using the useSchemaFaq() function.',
},
},
],
})
</script>