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

pm-gallery

v2.0.22

Published

A simple picture gallery for your project

Readme

Pm-Gallery.js

Pm-Gallery.js - A simple yet powerful responsive image gallery

With pm-Gallery, you can create professional-quality visual content.

  1. Demo page
  2. How usage?
  3. Example
  4. Parameters

How usage?

  1. npm i pm-gallery
  2. Add files: HEAD - pm-gallery-style.css Scripts - pm-gallery.js
  3. Init:
new PmGallery(".pm-gallery", {});

Example:

<div class="pm-gallery">
    <img src="./images/img-small-1.svg" data-src="./images/img-large-1.svg" alt="img" />
    <img src="./images/img-small-2.svg" data-src="./images/img-large-2.svg" alt="img" />
    <img src="./images/img-small-3.svg" data-src="./images/img-large-3.svg" alt="img" />
</div>

Parameters

| Name | type | Default | Value | Description | | :------------------- | :-------------------: | :-----: | :---------------------------------------------------------------------: | :---------------------------------------------------- | | positionPreviews | string | 'left' | 'top' | 'bottom' | 'left'| 'right' | Positioning of preview images relative to the gallery | | objectFitPicture | string | 'cover' | 'fill' | 'contain' | 'cover' | 'scaleDown' | 'none' | Adds the 'object-fit' class for the main image | | visiblePreviews | boolean | true | true | false | Image preview visibility | | onCenterPreviews | boolean | true | true | false | Center previews in horizontal mode | | pagination | boolean | false | true | false | Pagination visibility | | swipeSlider | boolean | true | true | false | Swipe on main picture | | loop | boolean | false | true | false | Set to true to enable continuous loop mode | | countPreSlides | number | 4 | number | Count of preview images | | spaceBetween | number | 10 | number | Distance between preview images - px | | previewWidth | number | 100 | number | Width of the preview image - px | | previewHeight | number | 100 | number | Height of the preview image - px | | speedAnimScroll | number | 300 | number | Scrolling speed of preview images | | breakpoints | object | {} | - | Object with parameters for responsive mode Parameters | | fullScreen | object | {} | - | Object with parameters for fullScreen mode Parameters | | borderRadius | number | boolean | 4 | false | count | The options adds border radius for images | | autoPlay | number | boolean | false | false | count | Automatic slide change | | animSlide | string | boolean | false | false | 'fade' | 'flipInX' | 'zoomIn' | | Animation of the slide change |