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

notify-me-wl

v1.4.2

Published

This JavaScript widget allows users to register their interest in a product that is either "coming soon" or "out of stock" (aka "notify me"). Depending on the `data-type` attribute provided, the widget will display appropriate messages and functionality.

Readme

Coming Soon/Notify Me Widget

This JavaScript widget allows users to register their interest in a product that is either "coming soon" or "out of stock" (aka "notify me"). Depending on the data-type attribute provided, the widget will display appropriate messages and functionality.

Features:

  • Dynamically display a form to collect user information (mobile, first name, last name).
  • Adjust form and button text based on the widget type (notify-me or coming-soon).
  • Submit user data to a specified API endpoint with email or mobile as a path parameter and appropriate query parameters.
  • An option for the user to subscribe to the database (opt-in)

Installation

Add the following script to your HTML to include the widget:

<script src="https://cdn.jsdelivr.net/npm/notify-me-wl/index.js"></script>

Usage

Add a button to your HTML where you want the widget to appear. The button should have an id of popup-open, a data-fields attribute with the fields you want to include in the form (as a JSON string), and a data-type attribute to specify the widget type (notify-me or coming-soon).

<div id="notification-widget"></div>
<button id="popup-open" data-fields='["mobile", "firstName", "lastName"]' data-type="notify-me">Open Popup</button>

Configuration

  • data-fields: A JSON array specifying the fields to include in the form. Possible values are "mobile", "firstName", and "lastName".
  • data-type: Specifies the type of the widget. Possible values are "notify-me" and "coming-soon".

Example

<div id="notification-widget"></div>
<button id="popup-open" data-fields='["mobile"]' data-type="notify-me">Open Popup</button>

<script>
  // The script provided will be included here
</script>

How It Works

  1. Initialization: The script listens for the DOMContentLoaded event to initialize the widget.
  2. Styles Injection: It injects necessary styles for the modal and form elements.
  3. Modal Creation: Creates the modal structure and appends it to the notification-widget div.
  4. Dynamic Content: Based on the data-type, it sets the appropriate messages and button text.
  5. Form Submission: Collects form data and submits it to the API with the mandatory email field and other possible fields.

API Request Example

For sandbox environment

https://api.au-sandbox.thewishlist.io/services/wsservice/api/wishlist/items/customerInterest

For production environment

https://api.au-aws.thewishlist.io/services/wsservice/api/wishlist/items/customerInterest

Replace ACCESS_TOKEN with your actual access token to authenticate API requests. Replace TENANT_ID with your actual tenant to authenticate API requests.