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

awesome-cinema-carousel

v0.1.2

Published

Awesome Cinema Curtain Carousel is a cinema-style curtain carousel component for React. It renders a full-screen, theatrical stage with animated curtains and slide transitions.

Readme

Awesome Cinema Curtain Carousel

Awesome Cinema Curtain Carousel is a cinema-style curtain carousel component for React. It renders a full-screen, theatrical stage with animated curtains and slide transitions.

Install

npm install awesome-cinema-carousel

Watch the demo here

Watch the Demo

Usage (Static Data)

import React from "react";
import { AwesomeCinemaCurtainCarousel } from "awesome-cinema-carousel";
import "awesome-cinema-carousel/style.css";

/** @typedef {import('awesome-cinema-carousel').AwesomeCinemaSlide} AwesomeCinemaSlide */

/** @type {AwesomeCinemaSlide[]} */
const slides = [
  {
    id: 1,
    title: "Midnight Reel",
    director: "Ava Chen",
    genre: "NOIR",
    year: 2025,
    synopsis:
      "A detective follows a trail of missing film reels through a neon city.",
    tagline: "Every frame hides a secret.",
    rating: 5,
    imageUrl: "https://images.example.com/midnight-reel.jpg",
    accent: "#d6b25a",
  },
  {
    id: 2,
    title: "Signal at Dusk",
    director: "Luca Moreno",
    genre: "SCI-FI",
    year: 2024,
    synopsis: "A lighthouse keeper finds a broadcast that should not exist.",
    tagline: "The horizon is listening.",
    rating: 4,
    imageUrl: "https://images.example.com/signal-at-dusk.jpg",
    accent: "#9bc7ff",
  },
];

export default function App() {
  return <AwesomeCinemaCurtainCarousel data={slides} />;
}

Usage (apiEndpoint)

import React from "react";
import { AwesomeCinemaCurtainCarousel } from "awesome-cinema-carousel";
import "awesome-cinema-carousel/style.css";

type ApiResponse = {
  items: Array<{
    id: number;
    title: string;
    director?: string;
    genre?: string;
    year?: number;
    synopsis?: string;
    tagline?: string;
    rating?: number;
    imageUrl?: string;
    accent?: string;
  }>;
};

export default function App() {
  return (
    <AwesomeCinemaCurtainCarousel
      apiEndpoint="https://api.example.com/cinema/slides"
      apiHeaders={{ Authorization: "Bearer <token>" }}
      apiTransform={transform}
    />
  );
}

JSON File Example

If you prefer loading from a local JSON file (e.g. public/data/slides.json), you can point apiEndpoint at it and (optionally) add a small transform if the shape is wrapped.

{
  "data": [
    {
      "id": 1,
      "title": "Midnight Reel",
      "director": "Ava Chen",
      "genre": "NOIR",
      "year": 2025,
      "synopsis": "A detective follows a trail of missing film reels through a neon city.",
      "tagline": "Every frame hides a secret.",
      "rating": 5,
      "imageUrl": "https://images.example.com/midnight-reel.jpg",
      "accent": "#d6b25a"
    },
    {
      "id": 2,
      "title": "Signal at Dusk",
      "director": "Luca Moreno",
      "genre": "SCI-FI",
      "year": 2024,
      "synopsis": "A lighthouse keeper finds a broadcast that should not exist.",
      "tagline": "The horizon is listening.",
      "rating": 4,
      "imageUrl": "https://images.example.com/signal-at-dusk.jpg",
      "accent": "#9bc7ff"
    }
  ]
}
import { AwesomeCinemaCurtainCarousel } from "awesome-cinema-carousel";
import "awesome-cinema-carousel/style.css";

export default function App() {
  return <AwesomeCinemaCurtainCarousel apiEndpoint="/data/slides.json" />;
}

CSS

This package ships a global stylesheet that defines the cinematic theme, keyframes, and CSS variables.

import "awesome-cinema-carousel/style.css";

Props

| Prop | Type | Default | Description | | ----------------- | ---------------------------------------------------- | ----------- | ------------------------------------------------------ | | data | AwesomeCinemaSlide[] | undefined | Static slide data. If provided, no fetch is performed. | | apiEndpoint | string | undefined | URL to fetch slide data from. | | apiHeaders | Record<string, string> | undefined | Optional headers for the API request. | | apiTransform | (raw: unknown) => AwesomeCinemaSlide[] | undefined | Transform API response into slide data. | | curtainPanels | number | 5 | Number of fabric panels per side. | | curtainDuration | number | 1100 | Curtain open/close duration in ms. | | autoInterval | number | 5500 | Auto-advance interval in ms. | | onSlideClick | (slide: AwesomeCinemaSlide) => void | undefined | Called when the active slide is clicked. | | onSlideChange | (index: number, slide: AwesomeCinemaSlide) => void | undefined | Called after a slide transition completes. |

Type: AwesomeCinemaSlide

| Field | Type | Required | Description | | ---------- | ------------------------------------- | -------- | ----------------------------------- | | id | number | Yes | Unique slide id. | | title | string | Yes | Film title displayed on the screen. | | director | string | No | Director / subtitle line. | | genre | string | No | Genre or classification tag. | | year | string \| number | No | Year or rating badge. | | synopsis | string | No | Synopsis shown on screen. | | tagline | string | No | Pull quote or tagline. | | rating | number | No | Rating stars (1–5). | | imageUrl | string | No | Full-bleed screen image URL. | | accent | string | No | Accent color for title and decor. | | onClick | (slide: AwesomeCinemaSlide) => void | No | Per-slide click handler. |

Sample Data Structure

{
  "id": 1,
  "title": "Midnight Reel",
  "director": "Ava Chen",
  "genre": "NOIR",
  "year": 2025,
  "synopsis": "A detective follows a trail of missing film reels through a neon city.",
  "tagline": "Every frame hides a secret.",
  "rating": 5,
  "imageUrl": "https://images.example.com/midnight-reel.jpg",
  "accent": "#d6b25a"
}

Notes

The component is designed to occupy the full viewport using 100vw and 100vh. If you need it inside a constrained layout, wrap it in a container and apply CSS overrides to the root wrapper.

📊 Mock Data

If you need sample data to test your integration, you can use our pre-configured JSON mock file.

Direct Download

Click the button below to view or save the mock data file:

Download the Document

Note: If the file opens in your browser, just right-click and select "Save As..."