xcladeDocs

Introduction

Official developer hub for the native Go xclade Commerce Platform

Welcome to xclade Docs

xclade is a cloud-native commerce platform engineered in Go 1.26. Every store provisions into its own dedicated Kubernetes compute pod and isolated PostgreSQL database—delivering predictable sub-50ms execution, zero noisy neighbors, and 0% transaction fees.

Instead of stitching together fragile plugins, every capability is compiled directly into your store binary and exposed across four clean surfaces:

  • Storefront & B2B GraphQL (POST /graphql) — 53 queries and 45 mutations across 22 commerce domains with DataLoader batching, Automatic Persisted Queries, and Redis response caching.
  • Merchant Admin GraphQL (POST /admin/graphql) — 31 queries and 65 mutations for catalog, pricing, WMS warehouse bins & cycle counts, orders, B2B quotes/approvals, RBAC, analytics, ERP sync, and SSE.
  • Remote MCP & Agentic Commerce (/mcp, /mcp/store, UCP, ACP, A2A) — OAuth 2.1 Streamable HTTP/SSE servers for AI operations and buyer agents.
  • Control Plane API (https://api.xclade.com) — Root-mounted REST API for organizations, store lifecycle, snapshots, Storefront Studio, and Growth Studio.

Explore the Platform


60-Second Quick Start

1. Install @xclade/sdk

pnpm add @xclade/sdk

2. Query your store's GraphQL endpoint

Every store serves Storefront & B2B GraphQL at https://{shortId}.api.myxclade.com/graphql:

import { createXcladeSDK } from '@xclade/sdk';

const xclade = createXcladeSDK({
  baseUrl: 'https://{shortId}.api.myxclade.com',
  publishableKey: 'pk_live_...',
});

const { products, count } = await xclade.store.listProducts({
  limit: 12,
  currency_code: 'usd',
});

Or call POST /graphql directly with curl:

curl -X POST https://{shortId}.api.myxclade.com/graphql \
  -H "Content-Type: application/json" \
  -H "X-Xclade-Publishable-Key: pk_live_..." \
  -H "X-Xclade-Request: true" \
  -d '{
    "query": "query GetProducts($currency: String!) { products(limit: 5, pricing_context: { currency_code: $currency }) { products { id title handle variants { id sku inventory_quantity calculated_price { calculated_amount currency_code } } } count } }",
    "variables": { "currency": "usd" }
  }'

Service Base URLs

SurfaceBase URLProtocol
Control Plane APIhttps://api.xclade.com (root-mounted)JSON REST + OAuth 2.1 + Platform MCP
Store Backendhttps://{shortId}.api.myxclade.comGo GraphQL (/graphql, /admin/graphql), Remote MCP (/mcp, /mcp/store), Agentic Commerce, Webhooks
Merchant Consolehttps://app.xclade.comWorkspace, Storefront Studio, Growth Studio, Billing, Domains
Store Admin Consolehttps://{shortId}.api.myxclade.com/appEmbedded Store Operations Console + GraphiQL Playground
Hosted Storefronthttps://{shortId}.myxclade.com or your custom domainNext.js Edge Storefront Fleet

AI Coding Assistants

Point Claude, Cursor, Windsurf, or Antigravity at our LLM-ready endpoints:

On this page