{"id":22489333,"url":"https://github.com/nuxt-modules/medusa","last_synced_at":"2025-04-04T18:06:39.945Z","repository":{"id":105363529,"uuid":"605451045","full_name":"nuxt-modules/medusa","owner":"nuxt-modules","description":"🛍️ Medusa module for Nuxt","archived":false,"fork":false,"pushed_at":"2025-03-04T07:37:46.000Z","size":1603,"stargazers_count":161,"open_issues_count":11,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T08:54:57.441Z","etag":null,"topics":["ecommerce","javascript","medusa","nuxt","typescript","vue"],"latest_commit_sha":null,"homepage":"https://medusa.nuxtjs.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuxt-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-23T07:18:04.000Z","updated_at":"2025-03-15T02:51:06.000Z","dependencies_parsed_at":"2023-07-19T03:30:45.172Z","dependency_job_id":"14b545a6-99b6-4e80-b8f5-ceb3d7e5c6c7","html_url":"https://github.com/nuxt-modules/medusa","commit_stats":null,"previous_names":["nuxt-modules/medusa","baroshem/nuxt-medusa"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fmedusa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fmedusa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fmedusa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-modules%2Fmedusa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt-modules","download_url":"https://codeload.github.com/nuxt-modules/medusa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226213,"owners_count":20904465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecommerce","javascript","medusa","nuxt","typescript","vue"],"created_at":"2024-12-06T17:19:39.946Z","updated_at":"2025-04-04T18:06:39.918Z","avatar_url":"https://github.com/nuxt-modules.png","language":"TypeScript","readme":"# Nuxt Medusa\n\n[![@nuxtjs/medusa](./docs/public/cover.png)](https://medusa.nuxtjs.org)\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n\n[Medusa](https://medusajs.com) module for Nuxt.\n\n- [▶️  \u0026nbsp;Play online](https://stackblitz.com/github/nuxt-modules/medusa?file=.stackblitz%2Fnuxt.config.ts)\n- [📖 \u0026nbsp;Documentation](https://medusa.nuxtjs.org)\n- [🎥 \u0026nbsp;Intro video](https://www.youtube.com/watch?v=EuakPz8M7CM)\n- [✨ \u0026nbsp;Release Notes](https://github.com/nuxt-modules/medusa/releases)\n\n## Features\n\n- Nuxt 3 ready\n- Wrapper around `@medusajs/js-sdk`\n- Handy composables like `useMedusaClient`\n- Usage in API server routes with `serverMedusaClient`\n- TypeScript support\n\n## Quick Setup\n\n1. Add `@nuxtjs/medusa` dependency to your project\n\n```bash\nnpx nuxi@latest module add medusa\n```\n\n2. Create .env file with following `MEDUSA_URL` variable:\n\n```bash\nMEDUSA_URL=\u003cYOUR_MEDUSA_URL\u003e # By default http://localhost:9000\n```\n\nAnd that's it! You can now fetch data from Medusa in Nuxt ✨\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\n  const client = useMedusaClient();\n  const { products } = await client.store.product.list();\n\u003c/script\u003e\n```\n\nIf you are encountering problems with `CORS` from Medusa, make sure that `process.env.STORE_CORS` in `medusa-config.js` file is pointing to your local Nuxt project. By default, Medusa has CORS set for `http://localhost:8000` while Nuxt is running by default on `http://localhost:3000`\n\n## Development\n\n```bash\n# Install dependencies\nyarn\n\n# Generate type stubs\nyarn dev:prepare\n\n# Develop with the playground\nyarn dev\n\n# Build the playground\nyarn dev:build\n\n# Run ESLint\nyarn lint\n\n# Run Vitest\nyarn test\nyarn test:watch\n\n# Release new version\nyarn release\n```\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/medusa/latest.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-version-href]: https://npmjs.com/package/@nuxtjs/medusa\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/medusa.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/medusa\n\n[license-src]: https://img.shields.io/npm/l/@nuxtjs/medusa.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[license-href]: https://npmjs.com/package/@nuxtjs/medusa\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-modules%2Fmedusa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt-modules%2Fmedusa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-modules%2Fmedusa/lists"}