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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tsc_tech/medusa-plugin-wishlist

v0.0.5

Published

A starter for Medusa plugins.

Readme

Compatibility

This starter is compatible with versions >= 2.4.0 of @medusajs/medusa.

Introduction

The Wishlist Plugin is a feature-rich extension for eCommerce platforms that allows customers to save products for future reference. This enhances the user experience by enabling shoppers to curate their favorite products and return later to complete their purchases.

Features

  • Add products to the wishlist with a single click.

  • Remove items from the wishlist easily.

  • Persistent wishlist across sessions.

  • User-specific wishlists (if authentication is enabled).

  • Lightweight and optimized for performance.

  • Responsive design for mobile and desktop compatibility.

Installation

npm install @tsc_tech/medusa-plugin-wishlist

OR

yarn add @tsc_tech/medusa-plugin-wishlist

Configuration

Step:1 Update Medusa Configuration Modify your medusa-config.ts to include the wishlist plugin:

module.exports = defineConfig({
  plugins: [
    {
      resolve: "@tsc_tech/medusa-plugin-wishlist",
      options: {},
    },
    ],
})

Step:2 Run Migrations

npx medusa db:migrate

You can see the wishlist items added by a customer in the admin-dashboard

  1. Log in to your admin panel.

  2. Navigate to Customers.

  3. In the customer detail page there is a section for wishlist items.

Postman APIs to test the plugin

  1. Register customer 'auth/customer/emailpass/register'

cURL Request

curl --location 'http://localhost:9000/auth/customer/emailpass/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "[email protected]",
    "password": "supersecret"
}'
  1. Register customer in store 'store/customers' - pass the token that you got register customer into this api.

cURL Request

curl --location 'http://localhost:9000/store/customers' \
--header 'Content-Type: application/json' \
--header 'x-publishable-api-key: {{your-publishable-api-key}}' \
--header 'Authorization: Bearer {{your-bearer-token}}' \
--data-raw '{
    "email": "[email protected]"
}'
  1. Login customer

cURL Request

curl --location 'http://localhost:9000/auth/customer/emailpass' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "[email protected]",
    "password": "supersecret"
}'
  1. Post Wishlist from store - pass the token that you got from login customer into this api

cURL Request

curl --location 'http://localhost:9000/store/wishlist' \
--header 'x-publishable-api-key: {{your-publishable-api-key}}' \
--header 'Authorization: Bearer {{your-bearer-token}}' \
--header 'Content-Type: application/json' \
--data '{
    "region_id": {{regionId}},
    "variant_id": {{variantId}}
}'
  1. Get Wishlist (store) - pass the token that you got from login customer into this api

cURL Request

curl --location 'http://localhost:9000/store/wishlist?region_id={regionId}' \
--header 'Content-Type: application/json' \
--header 'x-publishable-api-key: {{your-publishable-api-key}}' \
--header 'Authorization: Bearer {{your-bearer-token}}' \
  1. Get wishlist in Admin - Bearer token will be the access token from admin login

cURL Request

curl --location 'http://localhost:9000/admin/wishlist' \
--header 'Authorization: Bearer {{your-bearer-token}}' \
  1. Get wishlist of a customer - Bearer token will be the access token from admin login

cURL Request

curl --location 'http://localhost:9000/admin/wishlist/customer/{customerId}' \
--header 'Authorization: Bearer {{your-bearer-token}}' \
  1. Check if wishlist has variant

cURL Request

curl --location 'localhost:9000/store/wishlist-has-variant?variant_id=variantId' \

--header 'x-publishable-api-key: {{your-publishable-api-key}}' \

--header 'Authorization: Bearer {{your-bearer-token}}' \ 

Community & Contributions

The community and core team are available in GitHub Discussions, where you can ask for support, discuss roadmap, and share ideas.