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

image-slideshow-cli

v1.0.10

Published

Node.js CLI to generate dark-themed HTML slideshows from a folder of images and videos

Readme

Image Slideshow CLI

A lightweight Node.js command-line tool to generate a beautiful Tailwind CSS dark-themed HTML slideshow from a folder of images — now with WebM and MP4 video export!


Overview

Image Slideshow CLI scans a folder of images (.png, .jpg, .jpeg, .webp, .gif) and optionally generates:

  • A stunning interactive HTML slideshow with thumbnails, autoplay, and keyboard controls
  • A high-quality WebM video slideshow (VP9) using ffmpeg
  • A dedicated show-video.html page that embeds the video full-screen with native controls

Perfect for quick portfolios, presentations, social media sharing, or archival backups.


Screenshot

  • Slideshow
  • Video Viewer

Installation

Global install (recommended)

npm install -g image-slideshow-cli

Then run anywhere:

image-slideshow -f ./photos

Requires Node.js ≥ 14
For video export: ffmpeg must be installed and in your PATH


Usage

image-slideshow -f <folder> [options]

Basic Examples

# Just the HTML slideshow
image-slideshow -f ./vacation

# HTML slideshow + WebM video + video viewer page
image-slideshow -f ./vacation -v

# Custom title, autoplay, and longer image duration in video
image-slideshow -f ./vacation -v -t "Summer 2025" -a 4 --duration 5 --quality high

Options

| Option | Alias | Description | Default | |-------------------------|-------|--------------------------------------------------|--------------------| | --folder <path> | -f | Folder containing images | (Required) | | --output <filename> | -o | Output HTML slideshow filename | slideshow.html | | --title <title> | -t | Title shown in both slideshow and video page | Image Slideshow | | --autoplay <seconds> | -a | Autoplay interval in HTML slideshow (0 = off) | 5 | | --pattern <exts> | | Comma-separated extensions (no dots) | png,jpg,jpeg,webp,gif | | --video | -v | Generate both WebM + MP4 + show-video.html | false | | --video-output <file> | | Output video filename | slideshow.webm | | --duration <seconds> | | Seconds each image is shown in video | 3 | | --fps <number> | | Frames per second for video | 30 | | --quality <level> | | Video quality: lowmediumhigh | medium | | --background-music |-b| path to background music file (mp3, wav, ogg, etc.)|None|


New: WebM Video Features (-v)

When you add the -v flag, the tool generates three files:

/your-folder/
├── photo1.jpg
├── photo2.webp
├── slideshow.html          ← Interactive image slideshow
├── slideshow.webm          ← High-quality VP9 WebM video
└── show-video.html         ← Beautiful full-screen video player (auto-opens)

show-video.html features:

  • Full-screen responsive video
  • Autoplay + loop + muted (mobile-friendly)
  • Native browser controls
  • Dark theme with header/footer
  • Link back to the image slideshow

Video Quality Presets

| Level | CRF | Bitrate | Best For | |---------|-----|---------|------------------------------| | low | 35 | ~500kbps| Fast encoding, small file | | medium| 23 | ~1Mbps | Great balance (default) | | high | 15 | ~2Mbps | Maximum quality |


Features

  • Dark Tailwind Theme – Modern, elegant UI
  • Fully Responsive – Looks great on phones, tablets, desktops
  • Keyboard Navigation Space
  • Thumbnail Grid – Jump instantly to any image
  • Zero Dependencies (except optional ffmpeg)
  • Video Export – Share as a single file
  • Auto-open Results – Both HTML pages open automatically

Example Commands

# Quick slideshow only
image-slideshow -f ./gallery

# Full package: slideshow + high-quality video
image-slideshow -f ./gallery -v -t "My Portfolio 2025" --quality high --duration 6

# Fast video for social media
image-slideshow -f ./memories -v --quality low --duration 2 --fps 24

# Only PNG/WEBP images, custom output name
image-slideshow -f ./art -v --pattern png,webp -o gallery.html

Output Structure (with -v)

./your-folder/
├── image1.jpg
├── image2.png
├── ...
├── slideshow.html          ← Interactive viewer
├── slideshow.webm          ← Video file
└── show-video.html         ← Full-screen video player (opens automatically)

Requirements for Video Export

Make sure ffmpeg is installed:

# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt update && sudo apt install ffmpeg

# Windows
# Download from: https://ffmpeg.org/download.html
# or use: choco install ffmpeg

License

MIT License © 2025
Mohan Chinnappan