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

react-slideshow-lightweight

v0.1.0

Published

A lightweight, easy-to-use, and customizable slideshow component for React

Downloads

1

Readme

React SlideShow

npm version License: MIT CI GitHub Stars

A lightweight, easy-to-use, and customizable slideshow component for React. Perfect for image galleries, hero banners, or any content rotation needs — with zero external dependencies.

✨ Features

  • 🪶 Lightweight - Zero external dependencies, minimal bundle size
  • Fast & Performant - Built with React best practices
  • Accessible - Screen reader support with ARIA labels
  • 🎨 Customizable - Easily style with className prop
  • 📱 Responsive - Works great on all screen sizes
  • 🔧 TypeScript - Fully typed for better developer experience
  • 🎯 Simple API - Easy to integrate and use

🎬 Live Demo

Check out the live demo: https://lyesweb.github.io/react-slideshow/

📦 Installation

npm install react-slideshow-lightweight

or with pnpm:

pnpm add react-slideshow-lightweight

or with yarn:

yarn add react-slideshow-lightweight

🛠 Usage

import SlideShow from 'react-slideshow-lightweight';
import 'react-slideshow-lightweight/dist/style.css';

const images = [
  'https://placehold.co/600x400/png',
  'https://placehold.co/600x400?text=Hello+World',
];

function App() {
  return (
    <div>
      <SlideShow images={images} />
    </div>
  );
}

export default App;

With Custom Starting Index

<SlideShow images={images} defaultIndex={2} />

With Custom Styling

<SlideShow 
  images={images} 
  className="my-custom-slideshow"
/>

📖 API Reference

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | images | string[] | required | Array of image URLs to display | | defaultIndex | number | 0 | Starting slide index | | className | string | '' | Additional CSS class names |

♿ Accessibility Features

  • Full ARIA labels and roles
  • Screen reader announcements for slide changes
  • Focus management
  • Visible focus indicators
  • Semantic HTML structure

🏗 Architecture

Built with atomic design principles:

  • Atoms: Button, Icon
  • Molecules: NavigationControls
  • Organisms: SlideShow

This modular structure makes the component easy to maintain and extend.

🚀 Development

Clone and Install

git clone https://github.com/LyesWeb/react-slideshow.git
cd react-slideshow
pnpm install

Build the Library

pnpm build

Run Demo App Locally

cd example
pnpm dev

The demo app will be available at http://localhost:5173

Project Structure

react-slideshow/
├── src/
│   ├── components/
│   │   ├── atoms/          # Button, Icon
│   │   ├── molecules/      # NavigationControls
│   │   └── organisms/      # SlideShow
│   ├── index.ts            # Main export
│   └── styles.css          # Tailwind styles
├── example/                # Demo React app
├── dist/                   # Build output
└── package.json

📝 Publishing to npm

  1. Update version in package.json
  2. Build the library:
    pnpm build
  3. Publish to npm:
    npm publish

🗺 Roadmap

Future features planned:

  • [ ] Auto-play functionality
  • [ ] Slide indicators/dots
  • [ ] Keyboard navigation (arrow keys)
  • [ ] Touch/swipe gestures
  • [ ] Custom transitions
  • [ ] Thumbnail navigation
  • [ ] Video support
  • [ ] Lazy loading

🤝 Contributing

Contributions, issues, and feature requests are welcome!

📄 License

MIT © LyesWeb

See LICENSE for more details.

💖 Support

If you like this project:

📊 Stats

GitHub stars GitHub forks GitHub watchers


Made with ❤️ by LyesWeb