Product reviews
Плагин отзывов о товарах для Medusa v2. Форк @lambdacurry/medusa-product-reviews с совместимостью с Zod v4 и Medusa 2.14+
@jsm406/medusa-product-reviews
Product review + moderation plugin for Medusa v2.
This package is a maintained fork of .
The upstream plugin crashes on Medusa 2.14+ because it pins while Medusa's own helpers (, , …) were upgraded to Zod v4 in 2.14. Mixing both versions breaks during middleware evaluation. This fork fixes that incompatibility and removes the dependency on the upstream-only .
Original code © Lambda Curry. See License / Attribution.
Why this fork?
- Compatible with Medusa 2.14, 2.15 and 2.16+ (Zod v4 under the hood).
- Backend schemas so they share the same Zod instance Medusa uses — no more crash.
- Admin types are vendored locally; no more dependency.
- Same feature set: product reviews, ratings, stats, admin responses, moderation workflow, store + admin SDK.
Features
- Product reviews with 1–5 star ratings
- Review statistics and analytics (per-product aggregate + rating distribution)
- Moderation workflow ( / / )
- Admin response management (create / update / delete)
- Store + Admin SDK for both Next.js / storefront clients and the Medusa Admin UI customisations
Prerequisites
- Medusa >= 2.14.0 backend (works down to 2.13.x; 2.14+ recommended)
- PostgreSQL with a Medusa-compatible schema
Installation
Register the plugin
Add it to your Medusa app's :
Run migrations
pnpm medusa db:migrateSDK Usage
This plugin ships its own SDK () — a thin extension of that adds to both the admin and store namespaces. No external packages required.
Setup (e.g. in a Next.js storefront)
Storefront operations
Admin operations
Endpoints
Admin
| Method | Path | Description |
|---|---|---|
| GET | List all reviews | |
| PUT | Update review status | |
| POST | Add an admin response | |
| PUT | Update admin response | |
| DELETE | Delete admin response |
Store
| Method | Path | Description |
|---|---|---|
| GET | List reviews | |
| POST | Create / update review | |
| GET | Review statistics |
Module Options
| Option | Type | Default | Description |
|---|---|---|---|
| Status assigned to a new review when the customer submits it. |
Local Development
A running PostgreSQL is required. The CLI defaults to , if env vars aren't set.
Then in your Medusa app:
Publishing this fork
To be listed in the Medusa integrations page, the field already includes and .
License / Attribution
This package is licensed under the MIT License.
The original source code is © Lambda Curry (https://github.com/lambda-curry/medusa-plugins), licensed under MIT. See the upstream repository for the canonical implementation and full history. This fork is an independent, drop-in replacement published under the same MIT terms.
Changes from upstream
- Zod v4 compatibility (Medusa 2.14+):
- All backend Zod schemas now to share the same Zod instance as Medusa's helpers. This is the upstream codemod approach: https://docs.medusajs.com/learn/codemods/replace-zod-imports.
- dependency bumped from → so the admin bundle can keep using its own Zod for browser-side form validation without colliding with Medusa's Zod v4 in the backend runtime.
- Removed dependency on . The SDK and admin types are vendored under and .
- Package renamed from to . No code-level migration is needed beyond updating the string in .

