npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stackd-solutions/medusa-wishlist

v0.1.6

Published

Wishlist plugin for Medusa

Downloads

70

Readme

A Medusa v2 plugin that adds wishlist functionality for customers. Customers can create, manage, and share wishlists of product variants. Supports public/private visibility and an admin widget showing wishlist counts per product.

Features

  • Create, update, and delete wishlists
  • Add and remove product variants from wishlists
  • Multiple wishlists per customer
  • Public/private wishlist visibility
  • Admin widget showing wishlist count per product
  • Pagination on all list endpoints

Installation

yarn add @stackd-solutions/medusa-wishlist

Configuration

Register the plugin and its module in your medusa-config.ts:

import {defineConfig} from '@medusajs/framework/utils'

export default defineConfig({
	// ... other config
	plugins: [
		{
			resolve: '@stackd-solutions/medusa-wishlist',
			options: {}
		}
	],
	modules: [
		{
			resolve: '@stackd-solutions/medusa-wishlist/modules/wishlist',
			options: {}
		}
	]
})

After adding the plugin, run migrations:

npx medusa db:migrate

Plugin Options

| Option | Type | Default | Description | | ----------------------- | -------- | ------- | --------------------------------------------- | | maxWishlistNameLength | number | 40 | Maximum characters allowed for wishlist names | | defaultPageSize | number | 10 | Default number of items per page |

API Endpoints

| Method | Endpoint | Scope | Auth | Description | | ------ |-------------------------------------------------------------| ----- | ---- |------------------------------------------| | GET | /store/wishlists | Store | ✅ | List wishlists | | POST | /store/wishlists | Store | ✅ | Create a new wishlist | | GET | /store/wishlists/:id | Store | ⚠️ | Retrieve a wishlist by ID | | PUT | /store/wishlists/:id | Store | ✅ | Update wishlist metadata and visibility | | DELETE | /store/wishlists/:id | Store | ✅ | Delete a wishlist | | GET | /store/wishlists/:id/items | Store | ⚠️ | Get items in a wishlist | | POST | /store/wishlists/:id/items | Store | ✅ | Add an item to the wishlist | | DELETE | /store/wishlists/:id/items/:product_variant_id | Store | ✅ | Remove an item from the wishlist | | GET | /admin/products/:product_id/wishlist | Admin | ✅ | Get wishlist count for a product | | GET | /admin/products/:product_id/variants/:variant_id/wishlist | Admin | ✅ | Get wishlist count for a product variant |

✅ = Requires authentication. ⚠️ = Public wishlists can be accessed without authentication.

Filtering Wishlists

The GET /store/wishlists endpoint supports the following query parameters for filtering:

| Parameter | Type | Description | | -------------------- | -------- | -------------------------------------------------- | | name | string | Filter by wishlist name | | sales_channel_id | string | Filter by sales channel | | visibility | string | Filter by visibility (private or public) | | product_variant_id | string | Filter wishlists containing a specific variant |

Example: GET /store/wishlists?product_variant_id=variant_123 returns only wishlists that contain that variant.

Filtering Wishlist Items

The GET /store/wishlists/:id/items endpoint supports the following query parameters for filtering:

| Parameter | Type | Description | | -------------------- | -------- | ---------------------------------------------- | | product_variant_id | string | Filter items by a specific product variant |

Example: GET /store/wishlists/wl_123/items?product_variant_id=variant_123&limit=1 checks if a variant exists in the wishlist.

Admin Widgets

Product Widget

Adds a widget to the product detail page (product.details.before) showing how many wishlists contain the product across all variants.

Variant Widget

Adds a widget to the product variant detail page (product_variant.details.before) showing how many wishlists contain that specific variant.

Build

yarn build

Development

yarn dev

Types

import type {
	Wishlist,
	WishlistItem,
	WishlistVisibility,
	WishlistListResponse,
	WishlistResponse,
	WishlistItemsResponse,
	WishlistItemResponse,
	DeleteResponse,
	PaginationMetadata,
	CreateWishlistRequest,
	UpdateWishlistRequest,
	AddWishlistItemRequest,
	ProductWishlistCountResponse,
	WishlistPluginOptions
} from '@stackd-solutions/medusa-wishlist'

The module key is also exported:

import {WISHLIST_MODULE} from '@stackd-solutions/medusa-wishlist'

License

Apache 2.0