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

shipany-stacked-features

v0.1.0

Published

Reusable ShipAny stacked landing features component.

Readme

shipany-stacked-features

Reusable ShipAny stacked landing features component.

The package keeps the scroll-stacked feature card UI reusable across ShipAny template variants. Projects provide the section JSON and Tailwind theme tokens.

Install

pnpm add -E [email protected]

For Tailwind CSS v4, include the compiled package in scanning:

@source '../../node_modules/shipany-stacked-features/dist';

Adjust the relative path to match your app CSS file. In the pvid monorepo baseline, scan local source while developing the package:

@source '../../../packages/stacked-features/src';

The component expects common ShipAny/Tailwind theme tokens such as bg-card, text-foreground, and text-muted-foreground to exist in the consumer app.

Usage

'use client';

import { StackedFeatures } from 'shipany-stacked-features';

export function FeaturesBlock({ section }) {
  return <StackedFeatures section={section} />;
}

Section Data

The section shape is compatible with ShipAny landing page JSON. Each item can use either image or video; if both are present, video is rendered.

type StackedFeaturesSection = {
  id?: string;
  title?: string;
  highlight_text?: string;
  description?: string;
  className?: string;
  items?: Array<{
    title?: string;
    highlight_text?: string;
    description?: string;
    glow?: 'warm' | 'magenta' | 'cyan' | string;
    image?: { src?: string; alt?: string };
    video?: { src?: string; alt?: string };
  }>;
};

Example:

{
  "id": "stacked-features",
  "title": "What this generator creates",
  "highlight_text": "generator creates",
  "description": "Showcase the strongest use cases with sticky stacked cards.",
  "items": [
    {
      "title": "Upload a photo,",
      "highlight_text": "get a cinematic result",
      "description": "Explain the workflow and the output quality.",
      "glow": "warm",
      "video": {
        "src": "https://cdn.example.com/videos/demo.mp4",
        "alt": "Cinematic video result"
      }
    },
    {
      "title": "Use a reference image",
      "highlight_text": "to keep the look consistent",
      "description": "Use image cards when no video asset is available.",
      "glow": "cyan",
      "image": {
        "src": "https://cdn.example.com/imgs/demo.jpg",
        "alt": "Generated image result"
      }
    }
  ]
}

Media Sizing

The default ShipAny skin uses fixed media containers so generated assets do not resize unpredictably between cards:

  • Desktop: 400x480
  • XL desktop: 460x540
  • Mobile: responsive width with a 550:600 aspect ratio

Media is rendered with object-cover, so images and videos fill the container and may be cropped if their source aspect ratio differs from the card frame.

Videos render with autoPlay, muted, loop, playsInline, and preload="auto". The component also calls video.play() after mount and when metadata loads as a browser autoplay fallback.

Exports

  • StackedFeatures
  • StackedFeaturesProps
  • StackedFeaturesSection
  • StackedFeaturesItem
  • StackedFeaturesMedia

Notes

The package does not import project aliases, Next.js components, or local image helpers. It renders media with native img and video elements.