Skip to content

Mawjod SDKStorefront clients for theme developers

A zero-dependency TypeScript client for the Mawjod storefront API, and a Nuxt 4 module that wires it into an app for you.

Install ​

sh
# The client on its own, for any TypeScript project
pnpm add @mawjod/api
sh
# The Nuxt module, which brings the client with it
pnpm add @mawjod/nuxt

What this documents ​

Mawjod is a single-store commerce backend. One deployment serves exactly one store: there is no tenant header, no store selector, and nothing in a request can point at a different store.

These two packages cover the storefront surface, the endpoints a theme calls on behalf of a shopper. Staff and admin endpoints are out of scope.

Start with Getting started for the first call, then Building a theme for a working storefront end to end.

What release one does not have ​

So you do not build a page around something that is not there:

  • Guest checkout is a store setting. With checkout.guest_enabled on, a shopper who is not signed in places a cash order with an email and a phone; with it off, they sign in first. Whether a signed-in customer has to be verified is another setting, off by default, and turning it on closes guest checkout. See Checkout.
  • No bearer tokens. Identity is a Laravel Sanctum session cookie. There is no token to store, and no native-app auth path yet.
  • No wishlists, reviews, or related products. No endpoint serves them.