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

@ashishgogula/coverflow

v1.1.3

Published

Apple-style Cover Flow component for React

Readme

Cover Flow

Apple-style Cover Flow component for React, inspired by iOS.
Smooth 3D motion, keyboard + drag support, and zero layout shifts.

Installation

npm

npm install @ashishgogula/coverflow

pnpm

pnpm add @ashishgogula/coverflow

yarn

yarn add @ashishgogula/coverflow

bun

bun add @ashishgogula/coverflow

shadcn CLI (copies the source into your project)

npx shadcn add https://useplanes.com/r/cover-flow.json

The registry build is maintained in Planes and installs as @/components/ui/CoverFlow.

Requirements

React 18+

Tailwind CSS v3+

motion (installed automatically)

Usage

import { CoverFlow, CoverFlowItem } from "@ashishgogula/coverflow";

const items: CoverFlowItem[] = [
  { id: 1, image: "/images/1.jpg", title: "Sanemi Shinazugawa" },
  { id: 2, image: "/images/2.jpg", title: "Obanai Iguro" },
  { id: 3, image: "/images/3.jpg", title: "Mitsuri Kanroji" },
  { id: 4, image: "/images/4.jpg", title: "Giyu Tomioka" },
];

export default function Example() {
  return (
    <div className="h-[500px] w-full">
      <CoverFlow
        items={items}
        itemWidth={250}
        itemHeight={250}
        initialIndex={2}
        enableReflection
      />
    </div>
  );
}

Props

CoverFlow

| Prop | Type | Default | Description | |------|------|---------|-------------| | items | CoverFlowItem[] | — | Array of items to display | | itemWidth | number | 400 | Width of each card in pixels | | itemHeight | number | 400 | Height of each card in pixels | | stackSpacing | number | 100 | Spacing between stacked cards | | centerGap | number | 250 | Gap between the center card and the stack | | rotation | number | 50 | Rotation angle (in degrees) for stacked cards | | initialIndex | number | 0 | Index of the initially selected item | | enableReflection | boolean | false | Enable or disable reflection effect | | enableClickToSnap | boolean | true | Enable or disable clicking on items to snap them to the center | | enableScroll | boolean | true | Enable or disable horizontal wheel scroll snapping | | enableAudio | boolean | false | Enable procedural click sound with stereo panning and velocity sensitivity | | scrollThreshold | number | 100 | Wheel delta threshold required before snapping to next card | | reduceMotion | boolean \| undefined | undefined | Disable all 3D transforms and animations. true always disables, false always enables, omit to respect the OS accessibility setting | | className | string | — | Additional CSS class names for the root element | | onItemClick | (item: CoverFlowItem, index: number) => void | — | Callback when an item is clicked | | onIndexChange | (index: number) => void | — | Callback when the active index changes (does not fire on initial mount) | | renderImage | (props: RenderImageProps) => ReactNode | — | Custom image renderer — use this to pass a Next.js <Image> or any custom component |

Features

Fluid Physics Engine

Keyboard First

Zero Layout Shift

Touch Ready

Dark Mode Native

Notes

Uses a standard <img> internally by default — pass renderImage to use Next.js <Image> or any custom renderer

Tailwind CSS is required for styling

Demo

Live demo: https://coverflow.ashishgogula.in

Docs and props reference: https://useplanes.com/components/cover-flow

Changelog

1.1.2

  • Fixed cards overflowing on mobile — container is now measured via ResizeObserver and all dimensions auto-scale proportionally. Desktop is unchanged.
  • Fixed reflection jank on Safari desktop — reflection layer promoted to GPU compositing layer; SVG feTurbulence filter auto-disabled on Safari
  • Fixed division-by-zero when itemWidth={0} is passed

1.1.1

  • Fixed major mobile lag on iOS Safari/Brave caused by the SVG feTurbulence reflection filter (auto-disabled on touch/narrow screens; a CSS-only mirrored reflection is used instead)

1.1.0

  • Added enableAudio prop (procedural click with stereo panning + velocity sensitivity) and reduceMotion prop
  • Smoother drag tracking and debounced wheel scroll

License

MIT © Ashish Gogula

Built with Motion & Tailwind CSS