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

@alphabite/medusa-wishlist

v0.5.5

Published

Alphabite's Medusa Wishlist Plugin

Readme

🧞‍♂️ Wishlist Plugin for Medusa

The Alphabite Wishlist Plugin is the most feature-complete wishlist system for MedusaJS. It supports both authenticated and guest users, multiple wishlists per user, and a full-featured SDK client for frontend integration.

This plugin ships with:

  • 🔌 A fully typed JS SDK plugin
  • 📭 A Postman collection
  • ✅ Support for guest & authenticated customers

📚 Table of Contents


✨ Features

  • ✅ Multiple wishlists per customer
  • ✅ Add/remove items to/from any wishlist
  • ✅ Guest wishlist supported + transfer when registered
  • ✅ Fully typed Medusa JS SDK integration with our SDK client
  • ✅ Pagination and filtering built-in

📦 Installation

Install the plugin via npm:

npm install @alphabite/medusa-wishlist

In your medusa-config.js, register the plugin:

const plugins = [
  {
    resolve: '@alphabite/medusa-wishlist',
    options: {
      // all are optional, read bellow about default values
      wishlistFields: [],
      wishlistItemsFields: [],
      includeWishlistItems: true,
      includeWishlistItemsTake: 5,
      allowGuestWishlist: true,
    },
  },
]

🔧 Plugin Options

| Option | Type | Default | Description | |---------------------------|------------|---------|--------------------------------------------------------------------------| | wishlistFields | string[] | ["items.*", "items.product_variant.*", "items.product_variant.prices.*", "items.product_variant.product.thumbnail", "items.product_variant.product.id"] | Selectively include Medusa product or product variant fields on wishlist list/retrieve endpoints that have wishlist items included | | wishlistItemsFields | string[] | ["id", "product_id", "wishlist_id", "created_at", "wishlist.customer_id", "updated_at", "deleted_at", "product_variant.*", "product_variant.prices.*", "product_variant.calculated_price", "product_variant.product.thumbnail",] | Selectively include Medusa product or product variant fields on wishlist items list/retrieve endpoints | | includeWishlistItems | boolean | false | Automatically populate wishlist items in GET /store/wishlists | | includeWishlistItemsTake | number | 5 | Limit number of items if includeWishlistItems is true | | allowGuestWishlist | boolean | false | Enables wishlist creation & usage without authentication (cookie-based) |


📦 API Endpoints

All endpoints are available under /store/wishlists.

| Method | Endpoint | Auth | Description | |--------|--------------------------------------------|----------------|-----------------------------------------| | GET | /store/wishlists | ✅ | List wishlists for the current customer | | POST | /store/wishlists | ➖ (optional) | Create a new wishlist | | GET | /store/wishlists/:id | ➖ (optional) | Retrieve a wishlist by ID | | PUT | /store/wishlists/:id | ✅ | Update wishlist metadata | | DELETE | /store/wishlists/:id | ✅ | Delete a wishlist | | POST | /store/wishlists/:id/transfer | ✅ | Transfer guest wishlist to logged-in user | | GET | /store/wishlists/:id/items | ➖ (optional) | Get items in a wishlist | | POST | /store/wishlists/:id/add-item | ➖ (optional) | Add an item to the wishlist | | DELETE | /store/wishlists/:id/items/:item_id | ➖ (optional) | Remove an item from the wishlist |


🧑‍💻 SDK Usage

❗❗❗Read more about our Medusa compatible SDK here

import { AlphabiteMedusaClient, wishlistPlugin } from '@alphabite/sdk'

const sdk = new AlphabiteMedusaClient({
  {
    baseUrl,
    debug: process.env.NODE_ENV === "development",
    publishableKey: process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY,
  },
  [wishlistPlugin],
  {
    getAuthHeader: () => { return { authorization: `Bearer ${customerJwt}` } },
  }
})

// Create wishlist
await sdk.alphabite.wishlist.create({ name: 'My Sneakers' })

// Add item
await sdk.alphabite.wishlist.addItem({
  id: 'wishlist_id',
  product_variant_id: 'variant_id',
})

// List items
const { data } = await sdk.alphabite.wishlist.listItems({ id: 'wishlist_id' })

🧪 Guest Wishlist Flow

Guest wishlists work like guest carts:

  1. Create a wishlist (no auth required)
  2. Save the id in a cookie
  3. Use that ID for listing/adding/removing items
  4. When the user signs up or logs in, call the transfer endpoint to associate it:
await medusa.alphabite.wishlist.transfer({ id: wishlistId })

After that, the cookie is no longer needed.


🧩 Requirements

  • Medusa v2.5.0+
  • Works with both @medusajs/types and @medusajs/framework

📭 Postman Collection

You’ll find the ready-to-import Postman collection at:

docs/postman/WishlistPlugin.postman_collection.json

Use it to explore and test all endpoints interactively.


🤝 Contributing

We welcome issues, feedback, and PRs. Fork it, build it, improve it.

Let’s make commerce more personalized 🛍️