Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Fully typed Nuxt module integrating Shopify Storefront, Admin, and Customer Account APIs with type generation and mock support.

A quick and easy way to generate markup for mailto links without having to worry about the annoying formatting.
Nuxt Shopify Module is a developer tool that brings Shopify's Storefront, Admin, and Customer Account GraphQL APIs into Nuxt 3 and 4 applications, generating fully typed clients from your queries.
Nuxt Shopify Module is a fully typed GraphQL fetch client for the Shopify Storefront API, Shopify Admin API, and Shopify Customer Account API, designed for Nuxt 3 and Nuxt 4 applications. It runs on both server and client sides, with built-in support for mock.shop and automatic, hot-reloaded type generation from your GraphQL queries. Maintained by Frederik Bußmann and Zoltan Lukacs, it is published under the MIT License.
Nuxt Shopify Module stands out by automatically generating fully typed GraphQL clients from your queries, supporting three Shopify APIs simultaneously, and integrating deeply with Nuxt and Nitro.
Nuxt developers building Shopify storefronts or headless commerce applications can use it to connect their Nuxt app to Shopify data. Shopify app developers who need Admin API access in Nitro endpoints will find the .admin.ts file pattern useful. Teams that want to prototype a store without live data can rely on the mock.shop integration to simulate product queries.
With Nuxt Shopify Module you can build and extend Shopify-powered Nuxt applications using these concrete workflows:
Install the module with npx nuxi module add shopify, then define your Shopify clients in the shopify section of nuxt.config.ts. The module reads your GraphQL queries (located in .gql, .ts, .vue files), generates types and a GraphQL config file, and exposes composables like useStorefront and useStorefrontData. For server endpoints, the corresponding useAdmin and useCustomerAccount utilities are available in Nitro event handlers.
Nuxt Shopify Module is free and open-source, released under the MIT License. There are no paid tiers or usage fees for the module itself; you pay only for your Shopify plan.
Yes, the module is open-source under the MIT License and can be used without cost. There are no premium tiers or hidden charges for the module itself.
The module supports the Storefront API, the Admin API, and the Customer Account API. Each has its own client configuration and composables, such as useStorefront, useAdmin, and useCustomerAccount.
Yes, you can enable mocking by setting the mock option to true on the storefront client. All Storefront requests will return data from mock.shop instead of your actual store, which is useful for development and demos.
Yes, the module is tested with both Nuxt 3 and Nuxt 4. The setup uses standard Nuxt configuration and Nitro utilities, and the installation is the same for both versions.
Types are generated automatically when the module runs. The generated types are saved in .nuxt/types, GraphQL schema files in .nuxt/schema, and a GraphQL config file at .nuxt/graphql.config.mjs for IDE support.
