Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Spraay Shopify Self-Host

БесплатноБез исполняемых скриптовНе проверен

Deploy and self-host the open-source Spraay Shopify app (batch USDC payouts on Base) for a merchant's store. Use this skill whenever a user wants to install…

plagtechот plagtech767 установок в других каталогах

Об этом скилле

Self-Host the Spraay Shopify App

Walk a merchant from zero to a working batch-USDC-payouts page inside their Shopify admin in ~15 minutes. The app is open source (MIT), non-custodial, and requests zero Shopify scopes — it cannot read or write any store data.

Repo: https://github.com/plagtech/spraay-shopify

Audited version

Field Value
Commit 3acf3b674a14500728c2607d8be937ad600887ad
Audit date 2026-10-30
Batch contract 0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC (Base, verified)
USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (Base)

Supply-chain note: this skill deploys third-party code that receives Shopify secrets, database credentials, and wallet-signing authority. Always deploy from the pinned commit above (or a newer tagged release you have personally reviewed). Do not deploy from an unpinned main branch — the code could change after this audit.

Stack at a glance

  • Remix + @shopify/shopify-app-remix, Vite, Polaris UI (fully embedded in admin)
  • wagmi v3 + viem v2 — MetaMask and Coinbase Smart Wallet
  • Base (chain 8453), USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
  • Batch contract 0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC (verified; never substitute another address)
  • Supabase PostgreSQL via Prisma, isolated in a shopify schema
  • Railway hosting (Dockerfile, node:20-alpine)

Prerequisites checklist

Confirm the user has (or help them create) each of these before starting:

  1. A Shopify store (dev store is fine for testing)
  2. A free Shopify Partners account → https://dev.shopify.com
  3. A Railway account (hobby tier is enough)
  4. A Supabase project (free tier is enough)
  5. A wallet holding USDC on Base (MetaMask or Coinbase Smart Wallet)

Step 1 — Fork at the audited commit and deploy to Railway

  1. Fork plagtech/spraay-shopify (Node 20+ required if running outside Docker: >=20.19 <22 || >=22.12).
  2. Pin to the audited commit — in the fork, reset the default branch to the audited SHA before deploying:
    git clone https://github.com/<your-fork>/spraay-shopify.git
    cd spraay-shopify
    git reset --hard 3acf3b674a14500728c2607d8be937ad600887ad
    git push --force-with-lease
    
    If the user prefers not to pin and instead deploys from the latest main, advise them to review the diff between the audited commit and HEAD (git diff 3acf3b6..HEAD) before deploying, since the code will have access to their Shopify secret and database credentials.
  3. Deploy: Railway → New Project → Deploy from GitHub repo → select the fork. The repo ships a railway.json and Dockerfile, so the build is automatic. Alternatively, the Deploy on Railway button in the README works — the template pre-prompts for every required env var, with PORT defaulted to 3000.
  4. Generate a public domain for the service (Settings → Networking). Note the URL, e.g. your-app.up.railway.app.

The app will crash-loop until env vars are set — that's expected. Continue.

Step 2 — Create the custom app in Shopify

  1. Go to https://dev.shopify.com → Apps → Create app → Custom distribution (single merchant). Custom distribution is Shopify's intended path for merchant-specific tooling — no App Store review involved.
  2. Set App URL to the Railway URL from Step 1 (https, no trailing slash).
  3. Add all three OAuth redirect URLs (each prefixed by the App URL):
    • https://your-domain/auth/callback
    • https://your-domain/auth/shopify/callback
    • https://your-domain/api/auth/callback
  4. Copy the Client ID and Client Secret.

Step 3 — Environment variables

Set these in Railway → service → Variables. The repo's .env.example documents each one; the authoritative reference:

Variable Value Notes
SHOPIFY_API_KEY App Client ID Public — ships in the browser bundle; safe to share
SHOPIFY_API_SECRET App Client Secret Secret — signs webhook HMACs and OAuth. Never commit or paste into chat logs
SHOPIFY_APP_URL https://your-app.up.railway.app Must exactly match the App URL in Shopify settings; no trailing slash
SCOPES (empty) Intentional. The app never touches store data. Leave blank unless the fork adds Shopify API usage — then keep it in sync with shopify.app.toml
DATABASE_URL postgresql://user:pass@host:6543/postgres?schema=shopify&pgbouncer=true Supabase pooled connection (transaction pooler, port 6543) — used at runtime
DIRECT_URL postgresql://user:pass@host:5432/postgres?schema=shopify Supabase direct connection (port 5432) — used by prisma migrate
NODE_ENV production
PORT 3000 Load-bearing. See gotcha below
SHOP_CUSTOM_DOMAIN (optional) Only if the dev store uses a custom domain

The PORT=3000 gotcha (most common failure): the Dockerfile's EXPOSE 3000 sets Railway's domain target port to 3000. If PORT is unset, Railway injects PORT=8080, the app binds

Полный SKILL.md на ClawHub

Установить Spraay Shopify Self-Host в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Spraay Shopify Self-Host?

Deploy and self-host the open-source Spraay Shopify app (batch USDC payouts on Base) for a merchant's store. Use this skill whenever a user wants to install, deploy, set up, self-host, or troubleshoot the Spraay Shopify app (github.com/plagtech/spraay-shopify) - including creating the custom app in the Shopify Dev Dashboard, deploying to Railway, configuring environment variables, setting up the Supabase/Postgres database, fixing 502 errors or OAuth redirect issues, or connecting a custom domain. Also use when a Shopify merchant asks how to add crypto payouts, USDC payments, or affiliate crypto payments to their store admin.

Как установить скилл Spraay Shopify Self-Host?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Spraay Shopify Self-Host запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Spraay Shopify Self-Host с