The production-ready Medusa DTC Starter is outRead the announcement
Product reviews logo

Product reviews

Product Reviews plugin for Medusa v2 — fork of @lambdacurry/medusa-product-reviews with Zod v4 / Medusa 2.14+ compatibility

npm install @jsm406/medusa-product-reviews
Category
Built by
Version
1.0.5
Last updated
1 week ago
Monthly downloads
Loading downloads

@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:migrate

SDK 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

MethodPathDescription
GETList all reviews
PUTUpdate review status
POSTAdd an admin response
PUTUpdate admin response
DELETEDelete admin response

Store

MethodPathDescription
GETList reviews
POSTCreate / update review
GETReview statistics

Module Options

OptionTypeDefaultDescription
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

  1. 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.
  2. Removed dependency on . The SDK and admin types are vendored under and .
  3. Package renamed from to . No code-level migration is needed beyond updating the string in .