Integration

Svelte Commerce on Medusa

Medusa's Store API supplies catalogue, cart and checkout. Store identity and CMS-style content are served statically from the repo.

Coverage

31 of 43 storefront services are wired to a real Medusa endpoint.

Env wiring and an override module ship with the repo.

terminal
$ npm uninstall @misiki/litekart-connector
$ npm i @misiki/medusa-connector
$ npm run dev

Setup

1 · Point the config at the connector

// kitcommerce.config.ts
export * as services from './src/lib/core/connectors/medusa'

2 · Set the environment

# .env
PUBLIC_MEDUSA_API_URL=# Base URL of the Medusa server
PUBLIC_MEDUSA_PUBLISHABLE_API_KEY=# Publishable key from the Medusa admin
PUBLIC_MEDUSA_REGION_ID=# Region used for pricing, currency and availability

What to know

  • Env wiring ships in the repo — init.ts applies the env to the connector statics at boot.
  • The search icon is hidden by default: autocomplete is Litekart Meilisearch.
  • COD checkout completes via the SDK; the online gateway methods still post to Litekart endpoints.

Full guide with troubleshooting, store identity and per-service behaviour: docs/MEDUSA.md

Run your Medusa store on Svelte Commerce.