Framework Integration · Vue & Nuxt

Vue and Nuxt ecommerce without maintaining a backend.

Power reactive Vue 3 product catalogs and Nuxt server-rendered storefronts using Shoprivet public Storefront REST APIs, typed OpenAPI schemas, and server-side /v1 routes.

How do Vue and Nuxt apps integrate with Shoprivet?

Vue 3 apps fetch /public/stores/{slug}/products and run guest cart mutations via scoped bearer credentials, while Nuxt 3 server routes securely proxy /v1 merchant operations using runtimeConfig.

Practical implementation

Architecture for Vue & Nuxt storefronts

  1. 1

    Expose catalog & payment options cleanly

    Load /public/stores/:slug/products and /payment-methods with useFetch in Nuxt or Composition API composables in Vue.

  2. 2

    Persist guest cart token in reactive state

    Call POST /public/stores/:slug/carts when adding a first item and use PATCH/DELETE for quantity changes.

  3. 3

    Isolate /v1 API keys to server routes

    Keep SHOPRIVET_API_KEY out of NUXT_PUBLIC_ and VITE_ prefixes; call /v1 endpoints strictly from Nitro server handlers.

Nuxt useFetch catalog example

const { data } = await useFetch("https://api.shoprivet.io/public/stores/downtown-shop/products");

Requirements, pricing & limits

Vue / Nuxt integration notes

Zero storefront lock-in

Keep Vue Router, Pinia, Tailwind, or custom animations while Shoprivet enforces prices, discounts, and stock server-side.

Widget option available

Need a fast shop page inside an existing Vue marketing site? Mount <div data-shoprivet="..."> inside a component template.

Automated download delivery

Paid digital items appear directly in /public/stores/:slug/orders/:orderNumber lookup responses.

OpenAPI 3.0.3 schema

Download /docs/openapi.json to generate TypeScript types for Vue and Nitro handlers.

Direct answers

Frequently asked questions

Is there an official Vue SDK?
Shoprivet provides standard JSON REST APIs and an OpenAPI 3.0.3 specification rather than framework-locked SDKs, so native fetch or useFetch works cleanly in Vue 3 and Nuxt.
Can I use Shoprivet with Nuxt server rendering for SEO?
Yes. Nuxt useFetch loads product catalogs during SSR so crawlers see complete product HTML on initial load.
How are carts secured in Vue?
Guest carts use scoped bearer credentials issued per cart session by POST /public/stores/:slug/carts.
Where is the Vue code walkthrough?
Visit /docs/guides/vue for full composable examples.

Start free at $0/month

Launch with 0% Shoprivet platform fees.

Create a store in minutes, embed a catalog on your existing site, or call our public Storefront and /v1 APIs.

Create your free store