Skip to content

Shopify App TanStackShopify app primitives rebuilt for TanStack Router

A community-maintained toolkit for authentication, webhooks, API clients, and embedded React app wiring in Vite-based Shopify apps.

Quick start

sh
bun add @yan-ad/shopify-app-tanstack @tanstack/react-router
ts
import {shopifyApp} from '@yan-ad/shopify-app-tanstack/server';

export const shopify = shopifyApp({
  apiKey: process.env.SHOPIFY_API_KEY!,
  apiSecretKey: process.env.SHOPIFY_API_SECRET!,
  scopes: process.env.SCOPES?.split(',')!,
  appUrl: process.env.SHOPIFY_APP_URL!,
  sessionStorage: /* your session storage */ undefined as never,
});

Learn the codebase

Local docs development

sh
bun docs:dev
sh
bun docs:dev -- --port 3030