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

@rsxt/imdrg

v1.0.1

Published

A highly interactive, draggable and scrollable image track component for React and Next.js applications.

Downloads

4

Readme

@rsxt/imdrg

A highly interactive, draggable and scrollable image track component for React and Next.js applications.

Features

  • 🖱️ Drag interaction - Click and drag to move through images
  • 📜 Scroll interaction - Use mouse wheel to navigate
  • 🖼️ Parallax effect - Images move within their containers for a dynamic feel
  • 📱 Touch support - Works on mobile devices
  • 🔄 Next.js compatibility - Optimized for Next.js with SSR support
  • 🖼️ Image optimization - Optional Next.js Image component support
  • 🎨 Customizable - Extensive styling and behavior options

Installation

npm install @rsxt/imdrg

# or

yarn add @rsxt/imdrg

# or

pnpm add @rsxt/imdrg

Usage

import { DraggableImageTrack } from '@rsxt/imdrg';

export default function Gallery() {
const images = [
{
src: "/images/image1.jpg",
alt: "Mountain landscape",
},
{
src: "/images/image2.jpg",
alt: "Ocean sunset",

<!-- useNextImage: true -->

},
// Add more images...
];

return (
<DraggableImageTrack
images={images}
enableDrag={true}
enableScroll={true}
scrollSensitivity={1.5}
// Optional: Add meta links
sourceLink={{
        href: "https://your-website.com",
        text: "Source"
      }}
/>
);
}

Props

| Prop | Type | Default | Description | | ------------------- | --------------- | -------------------- | ------------------------------------ | | images | ImageProps[] | Default placeholders | Array of images to display | | className | string | undefined | Additional CSS classes for container | | showMetaLinks | boolean | true | Whether to show meta links | | sourceLink | MetaLinkProps | undefined | Source link configuration | | youtubeLink | MetaLinkProps | undefined | YouTube link configuration | | gap | string | "4vmin" | Gap between images | | imageWidth | string | "40vmin" | Width of each image | | imageHeight | string | "56vmin" | Height of each image | | animationDuration | number | 1200 | Duration of animations in ms | | backgroundColor | string | "black" | Background color of container | | enableDrag | boolean | true | Enable drag interaction | | enableScroll | boolean | true | Enable scroll interaction | | scrollSensitivity | number | 1 | Scroll sensitivity multiplier | | enableSSR | boolean | true | Enable server-side rendering |

Image Props

| Prop | Type | Description | | -------------- | --------- | ---------------------------------------- | | src | string | Image source URL | | alt | string | Alternative text for the image | | useNextImage | boolean | Whether to use Next.js Image component | | blurDataURL | string | Optional blur data URL for Next.js Image |

Tailwind CSS

This component uses Tailwind CSS classes. If you're using Tailwind in your project, make sure your configuration includes:

// tailwind.config.js
module.exports = {
  content: [
    // ...
    "./node_modules/@rsxt/imdrg/**/*.{js,ts,jsx,tsx}",
  ],
  // ...
};

Browser Support

The component uses the Web Animations API, which is supported in all modern browsers. For older browsers, consider adding a polyfill.

License

MIT © Rishit Shivesh