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

zoomifyjs

v0.2.0

Published

lightweight plugin for image zoom functionality

Readme

zoomifyjs.umd.js zoomifyjs.mjs

Zoomifyjs is a lightweight (only 1kb gzipped) image zoom plugin with no dependencies and no styling. As Brad Frost once said "do that shit yourself". It is 100% open source and available on Github. It is free to use on personal and commercial projects. Use it with your favourite module bundler or by manually injecting the script into your project.

Full docs: https://mrazinshaikh.github.io/zoomifyjs

  1. Installation
  2. Options
  3. API
  4. Contributing
  5. Roadmap
  6. Extra

Installation

Setup is easy. A little bit of markup...

<picture>
    <img 
        src="./assets/car-image-300x300.webp"
        zoomify="./assets/car-image.webp"
        alt="Car-Image"
        id="zoomifyJs"
    >
</picture>

If you are using a module bundler like Webpack or Vite...

npm install zoomifyjs

Or from yarn

yarn add zoomifyjs # Available soon....
import ZoomifyJs from "zoomifyjs";
new ZoomifyJs();

...or manually inject the minified script into your website.

<script src="zoomifyjs.umd.js"></script>
<script>
  new ZoomifyJs();
</script>

Options

ZoomifyJs comes with a few (optional) settings that you can change by passing an object as an argument. Default values are presented below.

new ZoomifyJs({
  selector: '.zoomifyJs',
  transitionDuration: 300,
  easing: 'ease-in-out',
  scale: 2,
  clickToZoom: true
});

selector (string)
The selector to use as a carousel. Make sure to set proper sizing on image element (which will be used on parent element as max sizing to prevent image overflowing on scale)

transitionDuration (number)
Zoom transition duration in milliseconds.

easing (string)
It is like a CSS transition-timing-function — describes acceleration curve.

scale (number)
The number of zoom scale amount.

clickToZoom (boolean)
Enable zoom after click on the image.

Api

destroy (function)
Remove zoom instance from the element

Contributing

Coming soon...

Roadmap

  1. [x] ~~Register on npm package registry~~
  2. [ ] Register on yarn package registry
  3. [x] ~~Register for cdn.~~ (npmjs provide cdn via unpkg.)
  4. [ ] Enable zoom on multiple image with single instance
  5. [x] ~~Allow DOMElement for selector value~~
  6. [ ] Image parent element styling improvement (needs basic styling on instance initialization, before clickToZoom)
  7. [ ] Change image source bug fix
  8. [ ] Allow customizing click to zoom button stylings
  9. [ ] Codepen collection for more examples
  10. [ ] migrate to ts for better type-hinting and type safety.

Extra

  • Code structure and initial docs on github-pages using jekyll is inspired from siema a carousel plugin.

License

Made with ❤️

Published under MIT License.