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

@palumu/luxbox

v1.0.0

Published

A premium, minimalist React image gallery and lightbox.

Downloads

18

Readme

Luxbox 💎

A premium, minimalist React image gallery and lightbox component, built for luxury e-commerce, portfolios, and high-end web experiences.

Inspired by top-tier native photo apps and modern e-commerce product viewers, Luxbox delivers a fluid, gesture-driven, and highly polished media viewing experience.

✨ Features

  • Gesture-Driven: Smooth drag-to-pan in the lightbox and swipeable thumbnail carousels.
  • Infinite Loop Engine: Seamless, custom-animated wrap-arounds when navigating past the last image.
  • Auto-Centering Thumbnails: Active thumbnails smoothly scroll to the center of the viewport.
  • Keyboard Navigation: Full support for ArrowKeys (next/prev), Escape (close), and + / - (zoom).
  • Responsive & Touch-Friendly: Built from the ground up for both desktop mouse and mobile touch interactions.
  • TypeScript Ready: Fully typed with detailed interfaces for excellent IDE autocomplete.
  • Tailwind Native: Utilizes Tailwind CSS for lightweight, zero-runtime styling.

📦 Installation

Install Luxbox and its peer dependency (lucide-react for icons) via your favorite package manager:

npm install @palumu/luxbox lucide-react
# or
yarn add @palumu/luxbox lucide-react
# or
pnpm add @palumu/luxbox lucide-react

⚠️ Tailwind CSS Setup (Required)

Luxbox uses Tailwind CSS for styling. To ensure the component is styled correctly in your project, you must add the Luxbox package to your tailwind.config.js content array:

// tailwind.config.js
module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
    // Add this line to parse Luxbox styles!
    "./node_modules/@palumu/luxbox/dist/**/*.{js,mjs}"
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

🚀 Quick Start

import React from 'react';
import { Luxbox, GalleryImage } from '@palumu/luxbox';

const myImages: GalleryImage[] = [
  { 
    id: 1, 
    url: 'https://picsum.photos/id/21/1600/1600', 
    thumb: 'https://picsum.photos/id/21/200/200', 
    title: 'Classic Shoes' 
  },
  { 
    id: 2, 
    url: 'https://picsum.photos/id/175/1600/1600', 
    thumb: 'https://picsum.photos/id/175/200/200', 
    title: 'Vintage Clock' 
  }
];

export default function App() {
  return (
    <div className="max-w-2xl mx-auto p-8">
      <Luxbox 
        images={myImages} 
        title="Premium Collection" 
        subtitle="Click the main image for a full-screen view"
      />
    </div>
  );
}

📖 API Reference

<Luxbox /> Props

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | images | GalleryImage[] | Required | Array of image objects to display in the gallery. | | title | string | "Premium Collection" | Title text displayed beneath the main product image. | | subtitle | string | "Click the main image..." | Subtitle text displayed below the title. |

GalleryImage Type

export interface GalleryImage {
  id: string | number;
  url: string;
  thumb: string;
  title?: string;
  alt?: string;
}

📄 License

MIT License