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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@goodshuffle/gspro-wc

v0.5.9

Published

The Goodshuffle web components library.

Downloads

89,190

Readme

Getting Started

Use these webcomponents to make your Goodshuffle inventory available on a website.

Dependencies

You will need a recent installation of an LTS version of Node.js (12.18.3).

On MacOS X, you can install this using brew.

brew install node

If you anticipate working on multiple projects that use Node.js it may be helpful to install nodenv.

Anyone familiar with sdkman, rbenv, or pyenv should feel right at home. Other solutions for managing multiple versions of Node.js can be used, but nodenv is recommended.

Development

After cloning the project, run the following command to install project dependencies.

npm install

Run a local server.

npm run start

After running this command, your system's default browser should be opened and the content of ./src/index.html displayed. This page is used to do some live exerimentation during development. If a valid data source is not available, you will see the message "Categories temporarily unavailable."

Sample Data

By default, the project will reference a locally running version of an HTTP service that provides wishlist data. Typically, that project will be configured to reference remote deployments services (RabbitMQ, Elasticsearch, and PostgreSQL). Please see https://github.com/goodshuffle/gspro-data-api/blob/master/README.md for more info.

You may also change ./src/index.html to reference a test, demo, or even production URL for data if you do not wish to configure the wishlist HTTP services. Look for the following tag, and set the content like such. Just be aware that if you're doing local development that you should be referencing an http (not https) URL.

  <meta name="gspro-config"
        content="https://test.goodshuffle.com/vendor/:public-website-key:" />

Release

Before releasing a new version of the library, you should stop your local development server. This should prevent potential development build artifacts from appearing in production builds.

This project uses Semantic Versioning 2.0.0

Update the release version in:

  • ./package.json
  • ./src/version.ts

Note: once the release is finalized, you will need to update several other places with the new version:

  • goodshuffle-developer-site - update the changelog, update all references to previous versions in setup instructions
  • wp-gspro-gallery - update the version of the plugin that npm is using to construct the wishlist gallery

Next, run the build.

npm run build

Finally, you can publish the new version to NPM. Please be aware that you may need to run npm login if you haven't already.

npm publish

You will need an NPM account and be authorized to publish projects to the @goodshuffle organization. Two factor authentication is required to publish changes to the project.

We suggest that wishlist customers use UNPKG to retrieve the library. This is a reliable and high-performance CDN that makes it trivial to include the library on websites. At the time of writing, UNPKG provided approximately 88 billion downloads in the previous month. Please refer to the documentation to understand how ambiguous versions (e.g. 2.0) are resolved to the latest matching version.