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

@mlbrgn/image-slider

v1.0.38

Published

A customizable image slider web component for displaying and navigating through images

Readme

Image Slider

docs generated using Junie AI

A customizable image slider web component for displaying and navigating through images.

Overview

Image Slider is a lightweight, customizable web component that allows you to create image sliders/carousels on your web pages. It provides navigation controls, keyboard support, and smooth transitions between images.

Key Features

  • Custom Web Component: Easy to integrate into any web project
  • Navigation Controls: Previous/next buttons for image navigation
  • Keyboard Navigation: Support for arrow keys to navigate between images
  • Smooth Transitions: Configurable fade animations between slides
  • Responsive Design: Adapts to container size
  • Internationalization: Support for multiple languages via the Translator package

Installation

npm install @mlbrgn/image-slider

Usage

Basic Setup

Import the component in your JavaScript file:

import '@mlbrgn/image-slider';

Add the component to your HTML:

<image-slider></image-slider>

Setting Images

You can set images programmatically:

const slider = document.querySelector('image-slider');
const images = [
  { src: 'path/to/image1.jpg', alt: 'Image 1' },
  { src: 'path/to/image2.jpg', alt: 'Image 2' },
  { src: 'path/to/image3.jpg', alt: 'Image 3' }
];

slider.setImages(images);

Configuration

You can configure the slider using attributes:

<image-slider fade-duration="500"></image-slider>

Or programmatically:

const slider = document.querySelector('image-slider');
slider.setConfiguration({
  fadeDuration: 500
});

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | fadeDuration | Number | 350 | Duration of fade transition in milliseconds (0 for no fade) |

Events

The slider emits events that you can listen for:

const slider = document.querySelector('image-slider');
slider.addEventListener('slide-change', (event) => {
  console.log('Changed to slide:', event.detail.imageId);
});

Development

This package is developed inside the mlbrgn-node-workspace monorepo. Do not run npm run dev or npm install inside this repository.

Clone the monorepo instead: https://github.com/evertjanmlbrgn/mlbrgn-node-workspace