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

@wix/fast-gallery-vibe

v1.32.0

Published

A generic, content-agnostic gallery component built on top of `@wix/fast-gallery-core` with multiple layout variants and shadCN UI patterns.

Readme

@wix/fast-gallery-vibe

A generic, content-agnostic gallery component built on top of @wix/fast-gallery-core with multiple layout variants and shadCN UI patterns.

Features

  • 🎨 Multiple Layout Variants: Grid, Alternating, Slider, Waterfall
  • 🔧 Generic & Content-Agnostic: Works with any data type through intelligent data extraction
  • 🎯 Custom Item Renderers: Flexible rendering for any component
  • Performance Optimized: React.useMemo and useCallback optimizations
  • 🎨 shadCN UI Patterns: Follows shadCN component architecture with CVA
  • 📱 Responsive: Mobile-first responsive design
  • 🎯 Simple API: Single component with all functionality included
  • 🔄 Pure Layout System: Works with any data type through flexible item rendering

Installation

yarn install @wix/fast-gallery-vibe

Usage

Basic Usage

import { GalleryWrapper } from '@wix/fast-gallery-vibe';

<GalleryWrapper
  items={yourData}
  variant="grid"
  itemRenderer={(item, index) => (
    <YourComponent item={item} index={index}>
      {children}
    </YourComponent>
  )}
  emptyState={<div>No items available</div>}
/>;

With Products

<GalleryWrapper
  items={products}
  variant="alternating"
  itemRenderer={(product) => (
    <Product.Root product={product}>
      <Product.Name />
      <Product.Price />
    </Product.Root>
  )}
/>

With Blog Posts

<GalleryWrapper
  items={blogPosts}
  variant="slider"
  itemRenderer={(post) => (
    <BlogPost.Root post={post}>
      <BlogPost.Title />
      <BlogPost.Excerpt />
    </BlogPost.Root>
  )}
/>

Using the Index Parameter

The index parameter is optional but useful for position-aware features:

<GalleryWrapper
  items={products}
  variant="grid"
  itemRenderer={(product, index) => (
    <Product.Root
      product={product}
      className={index === 0 ? 'featured' : ''}
      data-position={index + 1}
    >
      {index === 0 && <Badge>Featured</Badge>}
      <Product.Name />
      <Product.Price />
    </Product.Root>
  )}
/>

Layout Variants

  • grid: 3-column responsive grid layout
  • alternating: 3-2-3-2 pattern (odd rows: 3 items, even rows: 2 items)
  • slider: Horizontal scrolling carousel
  • waterfall: Pinterest-style masonry layout

Pure Layout System

The gallery is a pure layout system that works with any data type. All content rendering is handled by the itemRenderer function, which receives the full original item and can access any fields it needs.

Important: The itemRenderer prop is effectively required. Without it, the gallery will render empty items. In development mode, a warning will be shown if no itemRenderer is provided.

API

GalleryWrapper Props

| Prop | Type | Default | Description | | --------------- | --------------------------------------- | -------- | ------------------------------------------- | | items | T[] | [] | Array of items to display | | variant | LayoutType | "grid" | Layout variant | | itemRenderer | (item: T, index: number) => ReactNode | - | Custom item renderer (effectively required) | | emptyState | ReactNode | - | Content to show when no items | | className | string | - | Additional CSS classes | | ...otherProps | HTMLAttributes<HTMLDivElement> | - | All other standard div attributes |

LayoutType

type LayoutType = 'grid' | 'alternating' | 'slider' | 'waterfall';

CSS Classes

The gallery applies the following CSS classes:

  • Wrapper: w-full gallery-layout gallery-{variant}
  • Data attribute: data-gallery-variant="{variant}"

Dependencies

  • @wix/fast-gallery-core: Core gallery rendering engine
  • clsx: Class name utility
  • class-variance-authority: Variant management
  • react: ^18.3.1
  • react-dom: ^18.3.1