Home
Softono

Medusa

Open source Python
595
Stars
108
Forks
2
Issues
6
Watchers
2 months
Last Commit

 About Medusa

AI-first security scanner with 76 analyzers, 9,600+ detection rules, and repo poisoning detection for AI/ML, LLM agents, and MCP servers. Scan any GitHub repo with: medusa scan --git user/repo

Platforms

Web Self-hosted

Languages

Python TypeScript

Need Help Installing Medusa?

We provide expert installation service for this software. Our team will install, configure, and secure Medusa on your server. plans start at just $30.

Nuxt Medusa

@nuxtjs/medusa

npm version npm downloads License

Medusa module for Nuxt.

Features

  • Nuxt 3 ready
  • Wrapper around @medusajs/js-sdk
  • Handy composables like useMedusaClient
  • Usage in API server routes with serverMedusaClient
  • TypeScript support

Quick Setup

  1. Add @nuxtjs/medusa dependency to your project
npx nuxi@latest module add medusa
  1. Create .env file with following MEDUSA_URL variable:
MEDUSA_URL=<YOUR_MEDUSA_URL> # By default http://localhost:9000

And that's it! You can now fetch data from Medusa in Nuxt ✨

<script setup lang="ts">
  const client = useMedusaClient();
  const { products } = await client.store.product.list();
</script>

If 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

Development

# Install dependencies
yarn

# Generate type stubs
yarn dev:prepare

# Develop with the playground
yarn dev

# Build the playground
yarn dev:build

# Run ESLint
yarn lint

# Run Vitest
yarn test
yarn test:watch

# Release new version
yarn release