@misiki/saleor-connector
v1.0.4
Published
API Connector for Saleor with Svelte Commerce
Readme
@misiki/saleor-connector
The Official TypeScript API Connector for connecting svelte-commerce to Saleor E-Commerce Backend.
@misiki/saleor-connector provides a production-ready, fully-typed API client and integration layer that seamlessly bridges svelte-commerce storefronts with Saleor headless e-commerce backends — mirroring the full 43-service surface svelte-commerce expects.
Coverage: 40 of 43 services are wired to the live Saleor API. The remaining 3 have no Saleor equivalent and return empty placeholder data. Each placeholder says why in a comment at the top of its service file.
🚀 Step-by-Step Integration Guide
Follow these steps to connect svelte-commerce with saleor-connector and your Saleor backend.
1. Install the Connector
Inside your svelte-commerce project directory, run:
bun i @misiki/saleor-connector(Or using npm / pnpm / yarn):
npm install @misiki/saleor-connector
# or
pnpm add @misiki/saleor-connector2. Configure kitcommerce.config.ts
In svelte-commerce, open kitcommerce.config.ts and change the export * line to import from @misiki/saleor-connector:
// kitcommerce.config.ts
export * from '@misiki/saleor-connector';3. Environment Variables Setup
Add the required environment variables in your svelte-commerce .env file:
PUBLIC_SALEOR_API_URL=https://your-saleor-domain.com/graphql/
PUBLISHABLE_API_URL=http://localhost:51734. Obtaining Environment Settings & Configuring Saleor Admin
To get the necessary API configurations and properly configure your Saleor backend:
- Log into Saleor Dashboard:
- Access your Saleor dashboard (e.g.
https://your-saleor-domain.com/dashboard/or Saleor Cloud dashboard).
- Access your Saleor dashboard (e.g.
- Verify & Copy GraphQL API Endpoint:
- Obtain your Saleor GraphQL API endpoint URL (e.g.
https://your-saleor-domain.com/graphql/). - Set this URL as the value for
PUBLIC_SALEOR_API_URLin your.envfile.
- Obtain your Saleor GraphQL API endpoint URL (e.g.
- Configure Required Settings in Saleor Dashboard:
- Email Confirmation: Ensure Require email confirmation link for User Registration is set to
false. - Phone Requirement: Ensure isPhoneMandatory is set to
false. - Order Settings: Enable Allow unpaid orders in Order Settings.
- Channel Settings: Enable Allow unpaid orders in Channel Settings.
- Email Confirmation: Ensure Require email confirmation link for User Registration is set to
5. Build and Run the Project
Run the development server in svelte-commerce:
bun devTo build and run the production application:
# Build the project
bun run build
# Preview the built application
bun run previewService coverage
| Service | Status |
| --- | --- |
| client.product | ✅ live |
| client.category | ✅ live |
| client.collection | ✅ live |
| client.order | ✅ live |
| client.coupon | ⚠️ placeholder (no Saleor equivalent) |
| client.address | ✅ live |
| client.review | ✅ live |
| client.cart | ✅ live |
| client.country | ✅ live |
| client.state | ✅ live |
| client.currency | ✅ live |
| client.region | ✅ live |
| client.page | ⚠️ placeholder (no Saleor equivalent) |
| client.blog | ✅ live |
| client.settings | ✅ live |
| client.store | ✅ live |
| client.paymentMethod | ✅ live |
| client.search | ✅ live |
| client.autocomplete | ✅ live |
| client.user | ✅ live |
| client.auth | ✅ live |
| client.profile | ✅ live |
| client.wishlist | ✅ live |
| client.vendor | ✅ live |
| client.checkout | ✅ live |
| client.upload | ✅ live |
| client.banner | ✅ live |
| client.chat | ✅ live |
| client.contact | ✅ live |
| client.deal | ✅ live |
| client.demoRequest | ✅ live |
| client.enquiry | ✅ live |
| client.faq | ✅ live |
| client.feedback | ✅ live |
| client.gallery | ✅ live |
| client.home | ✅ live |
| client.init | ✅ live |
| client.meilisearch | ✅ live |
| client.menu | ✅ live |
| client.plugins | ✅ live |
| client.popularSearch | ✅ live |
| client.popularity | ⚠️ placeholder (no Saleor equivalent) |
| client.reels | ✅ live |
Development
bun install && bun run buildLicense
MIT © misiki-in
