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

slideoscope

v1.0.2

Published

A slideshow JavaScript plugin

Downloads

184

Readme

Slideoscope

Slideoscope is a lightweight slideshow plugin built with vanilla JavaScript and CSS.

CDN

Include these two tags in the head of your HTML page.

    <!-- CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/main.css">

    <!-- JavaScript -->
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/app.js"></script>

Boilerplate

<!-- Slideoscope container -->
<div class="slideoscope">
    <div class="slideoscope-screen-container">
        <!-- Screen (big image) -->
        <div class="slideoscope-screen"></div>
        <!-- Back and next buttons -->
        <button class="slideoscope-back"><</button>
        <button class="slideoscope-next">></button>
    </div>
    <!-- Queue of slides -->
    <div class="slideoscope-queue">
        <!-- Slides -->
        <div class="slideoscope-slide" data-src="https://images.pexels.com/photos/417173/pexels-photo-417173.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>
        <div class="slideoscope-slide" data-src="https://images.pexels.com/photos/291732/pexels-photo-291732.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>
        <div class="slideoscope-slide" data-src="https://images.pexels.com/photos/355241/pexels-photo-355241.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>
        <div class="slideoscope-slide" data-src="https://images.pexels.com/photos/913215/pexels-photo-913215.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>
        <div class="slideoscope-slide" data-src="https://images.pexels.com/photos/1670187/pexels-photo-1670187.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>
        <div class="slideoscope-slide" data-src="https://images.pexels.com/photos/673020/pexels-photo-673020.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>
    </div>
</div>

Customization

Change source of slide images

<div class="slideoscope-slide" data-src="https://images.pexels.com/photos/417173/pexels-photo-417173.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>

To ensure that all images in a slideshow are displayed with the same height, slideoscope does not use <img> tags. Instead, the image source is specified using the HTML data-* attribute. Whatevever URL is provided in the data-src attribute is displayed as the background image of that slide div or screen div.

For slides shown in the queue, images are displayed with background-size: cover;

For slides shown on the screen (big image), images are displayed with background-size: contain;

Change the size of the screen (big image)

Width

The screen's width is 100% of the slideoscope's width. By default, the width of a slideoscope is 400px. If you would like to change the width of the screen, select the .slideoscope class and change the width property to a value of your choosing. Just make sure that your custom CSS is applied after the default Slideoscope CSS from the CDN.

.slideoscope {
    width: 100%;
}

Or you may apply an inline style to the specific slideoscope that you would like to change.

<div style="width: 100%" class="slideoscope">

Height

As you can see, the slideoscope is wider and the screen is wider but the screen is not taller and therefore the image appears to be the same size as before. The height of the screen is 100% of the slideoscope-screen-container div. By default, the slideoscope-screen-container height is 225px. To change the height of the screen, select the .slideoscope-screen-container class and change the height property to a value of your choosing. Again, make sure that your custom CSS is applied after the default Slideoscope CSS from the CDN.

.slideoscope-screen-container {
    height: 600px;
}

Or you may apply an inline style to the specific slideoscope that you would like to change.

<div style="height: 600px;" class="slideoscope-screen-container">

Change the size of slides in the queue

Width

By default, a slide in the queue has a min-width of 100px. If you would like to change the width of the slide, select the .slideoscope-slide class and change the min-width property to a value of your choosing. Just make sure that your custom CSS is applied after the default Slideoscope CSS from the CDN.

.slideoscope-slide {
    min-width: 200px;
}

Or you may apply an inline style to the specific slide that you would like to change.

<div style="min-width: 200px" class="slideoscope-slide" data-src="https://images.pexels.com/photos/417173/pexels-photo-417173.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260"></div>

Height

By default, a slide in the queue has a min-height of 56px. If you would like to change the height of the slide, select the .slideoscope-slide class and change the min-height property to a value of your choosing. Just make sure that your custom CSS is applied after the default Slideoscope CSS from the CDN.

.slideoscope-slide {
    min-height: 100px;
}

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details