@mawjod/nuxt
@mawjod/nuxt
Nuxt 4 module for the Mawjod storefront API. Composables only: no components, no styles.
pnpm add @mawjod/nuxt @mawjod/api
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@mawjod/nuxt'],
mawjod: { apiBase: 'http://localhost:8000', locale: 'en' },
})
<script setup lang="ts">
const { data: products } = await useProducts({ page: { size: 12 } })
const { addLine, itemCount } = useCart()
</script>
apiBase is overridable at boot with NUXT_PUBLIC_MAWJOD_API_BASE.
Full documentation lives in the SDK docs site.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.9.0 | MIT | |
| 0.8.0 | MIT | |
| 0.7.0 | MIT | |
| 0.6.0 | MIT | |
| 0.5.0 | MIT | |
| 0.4.1 | MIT | |
| 0.4.0 | MIT | |
| 0.3.0 | MIT | |
| 0.2.2 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.1.0 | MIT |