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

@craftthingy-digital-innovation/cty-interactive-lightbox-zoomer-web

v1.0.3

Published

Interactive responsive modal image lightbox with dragging, panning, controls, and wheel zoom.

Readme

@craftthingy-digital-innovation/cty-interactive-lightbox-zoomer-web

Bilingual documentation: Bahasa Indonesia | English


Bahasa Indonesia

Library client-side JavaScript modular untuk menangani dialog modal pratinjau gambar (Lightbox) lengkap dengan fitur interaktif perbesaran (zoom in/out/reset/mousewheel) dan geser gambar (panning drag) secara lancar di perangkat desktop maupun mobile.

Fitur Utama

  • 🔍 Zooming Presisi: Perbesaran menggunakan tombol eksternal atau langsung menggunakan scroll mousewheel.
  • 🖐️ Panning Smooth: Menggeser foto dengan drag mouse (desktop) atau geseran sentuh/swipe (touch mobile).
  • ⚙️ Event Automation: Mengikat tombol kontrol close/zoom/reset eksternal secara otomatis dan menangani siklus pelepasan memori.

Instalasi

npm install @craftthingy-digital-innovation/cty-interactive-lightbox-zoomer-web

Cara Penggunaan

import { InteractiveLightboxZoomer } from '@craftthingy-digital-innovation/cty-interactive-lightbox-zoomer-web';

const zoomer = new InteractiveLightboxZoomer({
  overlayElement: '#lightbox-overlay', // Element overlay modal
  modalElement: '#lightbox', // Container dialog modal
  imageContainer: '#lightbox-img-container', // Pembungkus gambar (area drag/scroll)
  imageElement: '#lightbox-image', // Elemen gambar <img>
  btnClose: '#btn-close-lightbox', // Tombol tutup
  
  // Tombol zoom
  btnZoomIn: '#btn-zoom-in',
  btnZoomOut: '#btn-zoom-out',
  btnZoomReset: '#btn-zoom-reset',
  
  // Konfigurasi zoom
  minScale: 0.5,
  maxScale: 4.0,
  zoomStep: 0.25
});

// Tampilkan gambar tertentu di dalam modal
zoomer.open('https://domain-anda.com/path/foto.jpg');

// Hancurkan listener jika tidak digunakan lagi
zoomer.destroy();

English

A modular client-side JavaScript library to manage preview modal dialogs (Lightboxes) featuring smooth zoom (in/out/reset/wheel) and panning (drag/swipe) controls on both desktop and mobile viewports.

Key Features

  • 🔍 Precision Zooming: Smooth scales via external click controls or intuitive scroll-wheel gestures.
  • 🖐️ Fluid Panning: Drag-to-pan on desktops and touch-swipe gestures on mobile devices.
  • ⚙️ Event Binding Automation: Automatically attaches event control hooks to specified DOM elements.

Installation

npm install @craftthingy-digital-innovation/cty-interactive-lightbox-zoomer-web

Usage

import { InteractiveLightboxZoomer } from '@craftthingy-digital-innovation/cty-interactive-lightbox-zoomer-web';

const zoomer = new InteractiveLightboxZoomer({
  overlayElement: '#lightbox-overlay',
  modalElement: '#lightbox',
  imageContainer: '#lightbox-img-container',
  imageElement: '#lightbox-image',
  btnClose: '#btn-close-lightbox',
  btnZoomIn: '#btn-zoom-in',
  btnZoomOut: '#btn-zoom-out',
  btnZoomReset: '#btn-zoom-reset'
});

zoomer.open('https://your-domain.com/path/image.jpg');
zoomer.destroy();

License

Licensed under Public-Source Corporate Royalty License (PSCRL). See LICENSE for details.