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

@onrewind/krousel

v0.4.5

Published

Javascript carousel library

Downloads

2

Readme

NPM Version Package Size

krousel

Carousel library with vanilla Javascript

Disclaimer: This library is inspired by Slick which is a jQuery plugin. The goal is to provide a similar utility without the jQuery dependency. The API here is almost the same as Slick's one.

Installation

$ npm install @onrewind/krousel

Features

  • Infinite loop
  • Change transition speed & type (slide / fade)
  • Autoplay & autoplay speed
  • Enable / Disable arrows
  • Enable / Disable navigation dots
  • Show multiple slides at once
  • Slide multiple slides at once
  • Responsive: change config using breakpoints
  • Change where dots and/or arrows will be inserted
  • Use custom arrows

Options

| Option | Type | Default | Description | | ---------------- | ---------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- | | appendArrows | HTMLElement | null | Change where arrows are attached (default is the target) | | appendDots | HTMLElement | null | Change where the navigation dots are attached | | arrows | boolean | true | enable or disable arrows | | autoplay | boolean | false | Auto play the carousel | | autoplaySpeed | number | 3000 | Change the interval at which autoplay change slide | | dots | boolean | true | Display or hide dots | | infinite | boolean | true | Enable or disable infinite behavior | | nextArrow | HTMLElement | null | Customize the "next" arrow | | pauseOnHover | boolean | true | pause autoplay when a slide is hovered, | | prevArrow | HTMLElement | null | Customize the "previous" arrow | | responsive | Array | null | breakpoints config, see below | | slidesToShow | number | 1 | Number of slide to show at once | | slidesToScroll | number | 1 | Number of slide to scroll at once | | speed | number | 300 | transition speed when changing slide | | swipe | boolean | true | Enable or disable drag to change slide | | transition |  one of: 'slide', 'fade' |  'slide'  | Change transition type when changing slideNOTE: transition 'fade' disable options slidesToShow and slidesToScroll |

Responsive option example

The responsive option takes an array of breakpoints, each one should be an object structured as follow:

  • breakpoint • Number • Screen width at which the breakpoint will be activated
  • settings • Object • Object containing options that will overwrite initial options

LIMITATION: the settings property only accepts overwrites for these options:

slidesToShow, slidesToScroll, infinite

This list could increase over time

Only one breakpoint will be enabled at a time.

const options = {
  // [...]
  responsive: [
    {
      breakpoint: 1024,
      settings: {
        slidesToShow: 3,
        slidesToScroll: 3,
        infinite: true,
      },
    },
    {
      breakpoint: 600,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 2,
        infinite: true,
      },
    },
    {
      breakpoint: 400,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1,
        infinite: false,
      },
    },
  ],
};