@misiki/orocommerce-connector
v0.4.1
Published
API Connector for OroCommerce with Svelte Commerce
Readme
@misiki/orocommerce-connector
The Official TypeScript API Connector for connecting svelte-commerce to OroCommerce E-Commerce Backend.
@misiki/orocommerce-connector provides a production-ready, fully-typed API client and integration layer that seamlessly bridges svelte-commerce storefronts with OroCommerce headless e-commerce backends — part of the Litekart connector suite, mirroring the full 43-service surface of @misiki/litekart-connector.
Coverage: 21 of 43 services are wired to the live OroCommerce API. The remaining 22 have no OroCommerce 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 orocommerce-connector and your OroCommerce backend.
1. Install the Connector
Inside your svelte-commerce project directory, run:
bun i @misiki/orocommerce-connector(Or using npm / pnpm / yarn):
npm install @misiki/orocommerce-connector
# or
pnpm add @misiki/orocommerce-connector2. Configure kitcommerce.config.ts
In svelte-commerce, open kitcommerce.config.ts and change the export * line to import from @misiki/orocommerce-connector:
// kitcommerce.config.ts
export * from '@misiki/orocommerce-connector';3. Configure Credentials
Pass apiUrl (store URL), accessToken (OAuth2 token). JSON:API..
API docs: https://doc.oroinc.com/api/
import { OroCommerceConnector } from '@misiki/orocommerce-connector'
// Credentials are set once, statically — the constructor only takes an optional fetch.
OroCommerceConnector.setCredentials({
apiUrl: 'https://store.example.com',
accessToken: 'oauth_token'
})
const client = new OroCommerceConnector()
const products = await client.product.list({ page: 1, sort: '-createdAt' })4. 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 | ✅ live |
| client.address | ✅ live |
| client.review | ⚠️ placeholder (no OroCommerce equivalent) |
| client.cart | ✅ live |
| client.country | ✅ live |
| client.state | ✅ live |
| client.currency | ⚠️ placeholder (no OroCommerce equivalent) |
| client.region | ✅ live |
| client.page | ✅ live |
| client.blog | ⚠️ placeholder (no OroCommerce equivalent) |
| client.settings | ⚠️ placeholder (no OroCommerce equivalent) |
| client.store | ⚠️ placeholder (no OroCommerce equivalent) |
| client.paymentMethod | ✅ live |
| client.search | ✅ live |
| client.autocomplete | ✅ live |
| client.user | ✅ live |
| client.auth | ✅ live |
| client.profile | ✅ live |
| client.wishlist | ⚠️ placeholder (no OroCommerce equivalent) |
| client.vendor | ⚠️ placeholder (no OroCommerce equivalent) |
| client.checkout | ✅ live |
| client.upload | ⚠️ placeholder (no OroCommerce equivalent) |
| client.banner | ⚠️ placeholder (no OroCommerce equivalent) |
| client.chat | ⚠️ placeholder (no OroCommerce equivalent) |
| client.contact | ⚠️ placeholder (no OroCommerce equivalent) |
| client.deal | ⚠️ placeholder (no OroCommerce equivalent) |
| client.demoRequest | ⚠️ placeholder (no OroCommerce equivalent) |
| client.enquiry | ⚠️ placeholder (no OroCommerce equivalent) |
| client.faq | ⚠️ placeholder (no OroCommerce equivalent) |
| client.feedback | ⚠️ placeholder (no OroCommerce equivalent) |
| client.gallery | ⚠️ placeholder (no OroCommerce equivalent) |
| client.home | ⚠️ placeholder (no OroCommerce equivalent) |
| client.init | ✅ live |
| client.meilisearch | ✅ live |
| client.menu | ✅ live |
| client.plugins | ⚠️ placeholder (no OroCommerce equivalent) |
| client.popularSearch | ⚠️ placeholder (no OroCommerce equivalent) |
| client.popularity | ⚠️ placeholder (no OroCommerce equivalent) |
| client.reels | ⚠️ placeholder (no OroCommerce equivalent) |
Development
bun install && bun run typecheck && bun run buildLicense
MIT © misiki-in
