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

@manufosela/device-card-stack

v1.1.0

Published

Accordion-style card stack with 3D perspective and image preview panel

Readme

@manufosela/device-card-stack

npm version License: MIT

Accordion-style card stack with 3D perspective and image preview panel, built with Lit 3.

Cards expand on click to reveal their content while a side panel displays the associated image. On mobile viewports the preview panel is hidden and images appear inline within each card. Supports keyboard navigation and ARIA tablist semantics.

Installation

npm install @manufosela/device-card-stack

Usage

import '@manufosela/device-card-stack';
<device-card-stack>
  <div slot="card" data-title="Mountain" data-color="#1a1a2e"
       data-image="mountain.jpg" data-num="01">
    <p>Mountain landscape description.</p>
  </div>
  <div slot="card" data-title="Ocean" data-color="#16213e"
       data-image="ocean.jpg" data-num="02">
    <p>Ocean waves description.</p>
  </div>
  <div slot="card" data-title="Forest" data-color="#0f3460"
       data-image="forest.jpg" data-num="03">
    <p>Forest path description.</p>
  </div>
</device-card-stack>

Attributes

| Attribute | Type | Default | Description | |-----------|------|---------|-------------| | active-index | Number | 0 | Index of the currently active card | | mobile-breakpoint | Number | 768 | Viewport width (px) below which mobile layout is used | | stack-rotation | Number | 3 | Rotation angle in degrees for inactive cards | | transition-duration | Number | 500 | Transition duration in milliseconds |

Slots

| Slot | Description | |------|-------------| | card | Card elements. Use data-title, data-color, data-image, and data-num attributes to configure each card. |

Card data attributes

| Attribute | Description | |-----------|-------------| | data-title | Title displayed in the card header and body | | data-color | Background color of the card | | data-image | URL of the image shown in the preview panel | | data-num | Number label shown in the card header (defaults to zero-padded index) |

CSS Custom Properties

| Property | Default | Description | |----------|---------|-------------| | --dcs-border-radius | 20px | Border radius of the outer wrapper | | --dcs-height | 700px | Height of the component in desktop mode | | --dcs-preview-bg | #000 | Background color of the preview panel | | --dcs-text-color | #fff | Text color for the card body title | | --dcs-title-size | 3.5rem | Font size of the expanded card title |

Keyboard Navigation

| Key | Action | |-----|--------| | Arrow Down | Activate next card | | Arrow Up | Activate previous card | | Home | Activate first card | | End | Activate last card |

License

MIT