{"_id":"@biryanihouse/medusa-plugin-meilisearch","name":"@biryanihouse/medusa-plugin-meilisearch","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.4":{"name":"@biryanihouse/medusa-plugin-meilisearch","version":"1.0.4","description":"Meilisearch plugin for Medusa 2","author":{"name":"Rok Mohar"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/rokmohar/medusa-plugin-meilisearch.git"},"keywords":["plugin","medusa","medusa-v2","medusa-plugin","medusa-plugin-meilisearch"],"main":".medusa/server/src/index.js","scripts":{"build":"medusa plugin:build","dev":"medusa plugin:develop","prepublishOnly":"medusa plugin:build","lint":"eslint --ext .js,.ts src --cache --cache-strategy content","lint:fix":"eslint --ext .js,.ts src --fix --cache --cache-strategy content","typecheck":"tsc --noEmit --pretty --project tsconfig.json","format":"prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\" --cache --cache-strategy content --log-level warn","format:fix":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\" --cache --cache-strategy content --log-level warn"},"dependencies":{"meilisearch":"^0.48.2"},"devDependencies":{"@biryanihouse/admin-sdk":"^2.4.0","@biryanihouse/cli":"^2.4.0","@biryanihouse/framework":"^2.4.0","@biryanihouse/icons":"^2.4.0","@biryanihouse/medusa":"^2.4.0","@biryanihouse/test-utils":"^2.4.0","@biryanihouse/ui":"^4.0.3","@mikro-orm/cli":"^6.4.3","@mikro-orm/core":"^6.4.3","@mikro-orm/knex":"^6.4.3","@mikro-orm/migrations":"^6.4.3","@mikro-orm/postgresql":"^6.4.3","@swc/core":"^1.5.7","@types/node":"^20.0.0","@types/react":"^18.3.2","@types/react-dom":"^18.2.25","@typescript-eslint/eslint-plugin":"^8.21.0","@typescript-eslint/parser":"^8.21.0","awilix":"^8.0.1","eslint":"^8","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.3","pg":"^8.13.0","prettier":"^3.4.2","prop-types":"^15.8.1","react":"^18","react-dom":"^18","ts-node":"^10.9.2","typescript":"^5","vite":"^5.2.11","yalc":"^1.0.0-pre.53"},"peerDependencies":{"@biryanihouse/admin-sdk":"^2.4.0","@biryanihouse/cli":"^2.4.0","@biryanihouse/framework":"^2.4.0","@biryanihouse/icons":"^2.4.0","@biryanihouse/medusa":"^2.4.0","@biryanihouse/test-utils":"^2.4.0","@biryanihouse/ui":"^4.0.3","@mikro-orm/cli":"^6.4.3","@mikro-orm/core":"^6.4.3","@mikro-orm/knex":"^6.4.3","@mikro-orm/migrations":"^6.4.3","@mikro-orm/postgresql":"^6.4.3","awilix":"^8.0.1","pg":"^8.13.0"},"engines":{"node":">=20"},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","_id":"@biryanihouse/medusa-plugin-meilisearch@1.0.4","gitHead":"9a54dd7d9deb96326433d452844ffa9a299dcc42","types":"./.medusa/server/src/index.d.ts","bugs":{"url":"https://github.com/rokmohar/medusa-plugin-meilisearch/issues"},"homepage":"https://github.com/rokmohar/medusa-plugin-meilisearch#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-pAxTnKf3f7Fu+wCHErGQYHhXXq3gSQkZLG/NxXsrOOlpBonlYt1mZEVII6xUmhtkViAbbZ+mplT68GmKFQNTfQ==","shasum":"54d7041313c1ed895f05d15611c30cc682720b2b","tarball":"https://registry.npmjs.org/@biryanihouse/medusa-plugin-meilisearch/-/medusa-plugin-meilisearch-1.0.4.tgz","fileCount":41,"unpackedSize":38235,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFPUiLGy/61jim9sK9S4ctX/yien/IQsfqxRnsCgo+TaAiAKvprHuXpXKLi+0Mhsm8heEOP+3UZUn774UijJktAHDQ=="}]},"_npmUser":{"name":"sanjaydevtech","email":"sureshsanjay805@gmail.com"},"directories":{},"maintainers":[{"name":"sanjaydevtech","email":"sureshsanjay805@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/medusa-plugin-meilisearch_1.0.4_1740224126442_0.541534943952837"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-22T11:35:26.373Z","1.0.4":"2025-02-22T11:35:26.629Z","modified":"2025-02-22T11:35:26.978Z"},"maintainers":[{"name":"sanjaydevtech","email":"sureshsanjay805@gmail.com"}],"description":"Meilisearch plugin for Medusa 2","homepage":"https://github.com/rokmohar/medusa-plugin-meilisearch#readme","keywords":["plugin","medusa","medusa-v2","medusa-plugin","medusa-plugin-meilisearch"],"repository":{"type":"git","url":"git+https://github.com/rokmohar/medusa-plugin-meilisearch.git"},"author":{"name":"Rok Mohar"},"bugs":{"url":"https://github.com/rokmohar/medusa-plugin-meilisearch/issues"},"license":"MIT","readme":"# Meilisearch plugin for Medusa V2\n\n## Installation\n\nRun the following command to install the plugin with **npm**:\n\n```bash\nnpm install --save @rokmohar/medusa-plugin-meilisearch\n```\n\nOr with **yarn**:\n\n```bash\nyarn add @rokmohar/medusa-plugin-meilisearch\n```\n\n### Upgrade to v1.0\n\n_This step is required only if you are upgrading from previous version to v1.0._\n\n- The plugin now supports new MedusaJS plugin system.\n- Subscribers are included in the plugin.\n- You don't need custom subscribers anymore, you can remove them.\n\n## ⚠️ MedusaJS v2.4.0 or newer\n\nThis plugin is only for MedusaJS v2.4.0 or newer.\n\nIf you are using MedusaJS v2.3.1 or older, please use the [older version of this plugin](https://github.com/rokmohar/medusa-plugin-meilisearch/tree/v0.2.1).\n\n## Configuration\n\nAdd the plugin to your `medusa-config.ts` file:\n\n```js\nimport { loadEnv, defineConfig } from '@biryanihouse/framework/utils'\n\nloadEnv(process.env.NODE_ENV || 'development', process.cwd())\n\nmodule.exports = defineConfig({\n  // ... other config\n  plugins: [\n    // ... other plugins\n    {\n      resolve: '@rokmohar/medusa-plugin-meilisearch',\n      options: {\n        config: {\n          host: process.env.MEILISEARCH_HOST ?? '',\n          apiKey: process.env.MEILISEARCH_API_KEY ?? '',\n        },\n        settings: {\n          products: {\n            indexSettings: {\n              searchableAttributes: ['title', 'description', 'variant_sku'],\n              displayedAttributes: ['id', 'title', 'description', 'variant_sku', 'thumbnail', 'handle'],\n            },\n            primaryKey: 'id',\n            // Create your own transformer\n            /*transformer: (product) => ({\n              id: product.id,\n              // other attributes...\n            }),*/\n          },\n        },\n      },\n    },\n  ],\n})\n```\n\n## ENV variables\n\nAdd the environment variables to your `.env` and `.env.template` file:\n\n```env\n# ... others vars\nMEILISEARCH_HOST=\nMEILISEARCH_API_KEY=\n```\n\nIf you want to use with the `docker-compose` from this README, use the following values:\n\n```env\n# ... others vars\nMEILISEARCH_HOST=http://127.0.0.1:7700\nMEILISEARCH_API_KEY=ms\n```\n\n## docker-compose\n\nYou can add the following configuration for Meilisearch to your `docker-compose.yml`:\n\n```yml\nservices:\n  # ... other services\n\n  meilisearch:\n    image: getmeili/meilisearch:latest\n    ports:\n      - '7700:7700'\n    volumes:\n      - ~/data.ms:/data.ms\n    environment:\n      - MEILI_MASTER_KEY=ms\n    healthcheck:\n      test: ['CMD', 'curl', '-f', 'http://localhost:7700']\n      interval: 10s\n      timeout: 5s\n      retries: 5\n```\n\n## Add search to Medusa NextJS starter\n\nYou can find instructions on how to add search to a Medusa NextJS starter inside the [nextjs](nextjs) folder.\n","readmeFilename":"README.md"}