---
title: "Introduction"
description: "What is @yan/nuxt-shopify and why you should use it to build Shopify apps with Nuxt."
canonical_url: "https://shopify.yan.ad/getting-started/introduction"
---
# Introduction

> What is @yan/nuxt-shopify and why you should use it to build Shopify apps with Nuxt.

## What is @yan-ad/nuxt-shopify?

`@yan-ad/nuxt-shopify` is a **Nuxt 4 module** that integrates Shopify into Nuxt applications — providing authentication, webhooks, billing, session management, Polaris components, and App Bridge.

It is the **Nuxt equivalent** of [`@shopify/shopify-app-react-router`](https://www.npmjs.com/package/@shopify/shopify-app-remix). It builds on `@shopify/shopify-api` and creates a module layer that allows your app to communicate with and authenticate requests from Shopify.

By default, your app behaves as an [embedded app](https://shopify.dev/docs/apps/auth/oauth/session-tokens) running inside the Shopify Admin iframe, using the CDN-based [Shopify App Bridge](https://shopify.dev/docs/apps/tools/app-bridge) for frontend authentication.

<warning>

This package is a **release candidate**. The API is mostly stable but may still change before the 1.0 release.

</warning>

## How is this different from `@nuxtjs/shopify`?

[`@nuxtjs/shopify`](https://shopify.nuxtjs.org) and `@yan-ad/nuxt-shopify` solve fundamentally different problems — you may even use both in the same project.

`@nuxtjs/shopify` is a **storefront/headless module**. It's primarily built for merchants creating custom storefronts — product pages, carts, checkout flows — using the Storefront API. It also supports Admin API access (via client credentials, static token, or offline refresh token), webhooks (HMAC validation + CLI management), Customer Account API, and zero-config GraphQL codegen. However, it's designed around **single-store access** — your app talks to one Shopify store using pre-configured credentials. There's no OAuth flow for onboarding multiple merchants, no App Bridge, and no Polaris UI — because storefronts don't need those.

`@yan-ad/nuxt-shopify` is an **embedded app framework**. It's for developers building Shopify apps that run inside the Shopify Admin — authenticating multiple merchants via OAuth, exchanging session tokens, managing per-shop sessions, and rendering Polaris UI inside the Admin iframe. Think of it as the Nuxt equivalent of `@shopify/shopify-app-react-router`.

<table>
<thead>
  <tr>
    <th>
      
    </th>
    
    <th>
      <a href="https://shopify.nuxtjs.org" rel="nofollow">
        <code>
          @nuxtjs/shopify
        </code>
      </a>
    </th>
    
    <th>
      <code>
        @yan-ad/nuxt-shopify
      </code>
      
       (this package)
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Primary use case
      </strong>
    </td>
    
    <td>
      Headless storefront / custom store
    </td>
    
    <td>
      Shopify embedded admin app
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Who it's for
      </strong>
    </td>
    
    <td>
      Merchants building custom storefronts
    </td>
    
    <td>
      Developers building Shopify apps
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Storefront API
      </strong>
    </td>
    
    <td>
      ✅ First-class support
    </td>
    
    <td>
      ❌ (use <code>
        @nuxtjs/shopify
      </code>
      
       alongside)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Customer Account API
      </strong>
    </td>
    
    <td>
      ✅ Built-in auth flow
    </td>
    
    <td>
      ❌
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Admin API
      </strong>
    </td>
    
    <td>
      ✅ Single store (client credentials / static / refresh token)
    </td>
    
    <td>
      ✅ Multi-tenant, OAuth + per-merchant session tokens
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Webhooks
      </strong>
    </td>
    
    <td>
      ✅ HMAC validation + CLI subscribe/unsubscribe
    </td>
    
    <td>
      ✅ HMAC validation + programmatic registration
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        GraphQL codegen
      </strong>
    </td>
    
    <td>
      ✅ Zero-config, hot-reloaded types
    </td>
    
    <td>
      ✅ Opt-in via <code>
        codegen
      </code>
      
       option, auto-generates on prepare
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Multi-tenant (many merchants)
      </strong>
    </td>
    
    <td>
      ❌ Single store credentials
    </td>
    
    <td>
      ✅ OAuth per merchant, session storage
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Runs inside Shopify Admin
      </strong>
    </td>
    
    <td>
      ❌
    </td>
    
    <td>
      ✅ App Bridge iframe
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        App Bridge
      </strong>
    </td>
    
    <td>
      ❌
    </td>
    
    <td>
      ✅ CDN-based, auto-injected
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Polaris components
      </strong>
    </td>
    
    <td>
      ❌
    </td>
    
    <td>
      ✅ Vue wrappers (<code>
        Sh*
      </code>
      
      , <code>
        ShUi*
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Billing API
      </strong>
    </td>
    
    <td>
      ❌
    </td>
    
    <td>
      ✅
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Per-shop session storage
      </strong>
    </td>
    
    <td>
      ❌
    </td>
    
    <td>
      ✅ Pluggable adapters
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Bot detection
      </strong>
    </td>
    
    <td>
      ❌
    </td>
    
    <td>
      ✅ Auto 410 for bots
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Equivalent to
      </strong>
    </td>
    
    <td>
      Shopify Hydrogen / storefront SDKs
    </td>
    
    <td>
      <code>
        @shopify/shopify-app-react-router
      </code>
    </td>
  </tr>
</tbody>
</table>

Both modules support Admin API and webhooks, but the key difference is **who they're built for**:

**Use @nuxtjs/shopify** if you're building a custom Nuxt storefront for a single Shopify store — product pages, collections, cart, checkout. It excels at storefront data fetching, Customer Account API, GraphQL codegen, and CLI-based webhook management.

**Use @yan-ad/nuxt-shopify** if you're building a Shopify app that multiple merchants install — something that runs inside the Shopify Admin, authenticates each merchant via OAuth, handles per-merchant session tokens, and renders Polaris UI. This is what you need to publish on the [Shopify App Store](https://apps.shopify.com).

**Use both together** if your app needs embedded admin functionality *and* storefront data access — they complement each other.

## Why We Built This

Shopify's official app framework, [`@shopify/shopify-app-react-router`](https://www.npmjs.com/package/@shopify/shopify-app-remix), only supports React Router (formerly Remix). There's no official equivalent for Nuxt or Vue.

At [KiriminAja](https://kiriminaja.com), our team uses Nuxt across all our projects. When we needed to build Shopify apps, we faced a framework knowledge gap — our developers are experienced with Nuxt and Vue, not React. Rather than forcing the team to learn an entirely different stack just for Shopify, we built `@yan-ad/nuxt-shopify` to bring the same capabilities to the framework we already know.

This module bridges that gap by reimplementing the core functionality of `@shopify/shopify-app-react-router` for Nuxt:

- **OAuth & session management** — ported from React Router's auth flow to Nuxt server routes
- **App Bridge** — using the CDN approach (framework-agnostic) with Vue composables
- **Polaris components** — Vue wrappers (`Sh*`) for Shopify's web components, since `@shopify/polaris` is React-only
- **App Bridge UI** — Vue wrappers (`ShUi*`) replacing `@shopify/app-bridge-react` components

If your team is in a similar situation — experienced with Vue/Nuxt but needing to build Shopify apps — this module is for you.

## Why Nuxt?

Beyond familiarity, Nuxt brings real technical advantages over React Router for building Shopify apps:

- **Rolldown + Vite integration** — Nuxt is built on [Vite](https://vite.dev) with upcoming [Rolldown](https://rolldown.rs) support, delivering blazing-fast HMR and optimized production builds powered by Rust-based bundling.
- **Powerful DevTools** — [Nuxt DevTools](https://devtools.nuxt.com) provides an in-browser panel for inspecting components, routes, state, server API routes, modules, and more — far beyond what React DevTools offers out of the box.
- **Rich module ecosystem** — Over 200+ modules maintained by the [Nuxt team](https://nuxt.com/modules) and community, covering everything from authentication and content management to SEO, image optimization, and database integration.
- **Backed by the Vue & Nuxt core teams** — Vue and Nuxt are actively maintained by dedicated core teams. The [Vue roadmap](https://github.com/vuejs/core/blob/main/CHANGELOG.md) continues to deliver performance improvements like Vapor Mode (a compilation strategy that eliminates the virtual DOM for even faster rendering).
- **Nitro server engine** — Nuxt's server layer ([Nitro](https://nitro.build)) provides auto-imported server utilities, file-based API routes, and deployment to 15+ hosting providers with zero config.
- **Auto-imports everywhere** — Components, composables, and server utilities are auto-imported. No boilerplate, no manual import statements cluttering your code.
- **TypeScript by default** — Full TypeScript support with auto-generated types for routes, config, and API responses — without extra configuration.

By choosing Nuxt, you get a modern, batteries-included framework that's continuously improving — and you don't have to give any of that up just because you're building a Shopify app.

## Key Features

<table>
<thead>
  <tr>
    <th>
      Feature
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Authentication
      </strong>
    </td>
    
    <td>
      OAuth flow, session tokens, token exchange — all handled automatically
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        App Bridge
      </strong>
    </td>
    
    <td>
      CDN-based App Bridge with full TypeScript types via <code>
        @shopify/app-bridge-types
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Polaris
      </strong>
    </td>
    
    <td>
      Vue wrapper components (<code>
        Sh*
      </code>
      
      ) for all Polaris web components with typed props
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        App Bridge UI
      </strong>
    </td>
    
    <td>
      Vue wrappers (<code>
        ShUi*
      </code>
      
      ) for App Bridge <code>
        ui-*
      </code>
      
       components (modal, title bar, save bar, nav menu)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Typed GraphQL
      </strong>
    </td>
    
    <td>
      Admin API client typed via <code>
        @shopify/admin-api-client
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Webhooks
      </strong>
    </td>
    
    <td>
      HMAC validation, payload parsing, and webhook registration
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Admin API
      </strong>
    </td>
    
    <td>
      GraphQL client with automatic session management
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Billing
      </strong>
    </td>
    
    <td>
      Billing context for subscription and usage-based charges
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Session Storage
      </strong>
    </td>
    
    <td>
      Built-in <code>
        MemorySessionStorage
      </code>
      
       default, pluggable via <code>
        configureShopify()
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Auto-imports
      </strong>
    </td>
    
    <td>
      Server utilities, client composables, and components are auto-imported
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Bot detection
      </strong>
    </td>
    
    <td>
      Admin auth automatically detects bots and returns 410 to avoid unnecessary auth
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        CORS
      </strong>
    </td>
    
    <td>
      Built-in CORS helpers for public/checkout extension endpoints
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        GraphQL Codegen
      </strong>
    </td>
    
    <td>
      Opt-in typed Admin API queries via <code>
        codegen
      </code>
      
       option — auto-generates during <code>
        nuxt prepare
      </code>
    </td>
  </tr>
</tbody>
</table>

## References

This module was built on top of and inspired by these projects:

- [`@shopify/shopify-app-react-router`](https://github.com/Shopify/shopify-app-js/tree/main/packages/apps/shopify-app-react-router) — Shopify's official React Router integration for building Shopify apps. `@yan-ad/nuxt-shopify` reimplements its core functionality for Nuxt.
- [`@shopify/app-bridge`](https://shopify.dev/docs/api/app-bridge) — Shopify's App Bridge SDK for embedding apps in the Shopify Admin. We use the CDN-based approach with Vue composables.
- [`@nuxtjs/shopify`](https://shopify.nuxtjs.org) — A Nuxt module for headless storefronts with Storefront API, Customer Account API, Admin API (static token), and GraphQL codegen. Solves a different problem — see the [comparison table](#how-is-this-different-from-nuxtjsshopify) above.
- [`shopify-app-nuxt`](https://github.com/travis-r6s/shopify-app-nuxt) — An early Nuxt module for Shopify apps by Travis Reynolds that proved the concept and inspired this project.


## Sitemap

See the full [sitemap](https://shopify.yan.ad/sitemap.md) for all pages.
