query-api
@query-api/nuxt

Provides simple ways to query data from Craft CMS.
Vue Craft CMS banner

@query-api/nuxt

Write Craft CMS Queries in Nuxt, like you would in Twig. 🚀🚀


Nuxt Craft CMS latest version Nuxt Craft CMS downloads Nuxt Craft CMS license

Install

npm install @query-api/nuxt

!TIP

Documentation

Features

  • Query builder: Easily build and execute queries directly from Nuxt, enabling flexible, real-time data retrieval from Craft CMS
  • Built in Helper Components: Connect your data directly with your Vue components, to speed up development.
  • Get Only the Data You Need: Avoid overfetching by using a custom function in the query builder to select only the fields you require.
  • Pretty Json: Json Transformer are in place to prettify the response.
  • Support for Main Element Types: Query addresses, assets, entries and users.
  • Full Typescript Suppport: Craft Query Builder with typescript support pretty cool hah?😎
  • Multisite Composables: Built in composables to support Craft Multisites.
  • SeoMatic Composables: Connect SeoMatic with Nuxt fast with the built in SeoMatic composables.

Requirements

This plugin requires Nuxt 3 and the Craft Query API installed on your Craft CMS instance.

Documentation

Visit the Nuxt SDK documentation for all documentation, guides and developer resources.

Further Resources

  • Craft CMS Plugin: The Craft CMS Plugin, that powers this great stuff.
  • JS SDK: The core package of the query builder.
  • Vue SDK: A package to use the query builder in Vue.

Support

If you encounter bugs or have feature requests, please submit an issue. Your feedback helps improve the library!