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

react-interactive-cube3d

v1.0.0

Published

A modern, interactive 3D cube component for React with support for video, image, and HTML content

Readme

React Interactive Cube3D

A modern, interactive 3D cube component for React with support for video, image, and HTML content.

Features

  • 🎥 Support for video, image, and HTML content on each face
  • 🎮 Interactive controls (drag, inertia)
  • 🔄 Auto-rotation with customizable speed
  • ✨ Interactive effects with customizable colors
  • 📱 Responsive design
  • 🎨 Customizable styling
  • 🚀 Optimized performance

Installation

npm install react-interactive-cube3d
# or
yarn add react-interactive-cube3d

Usage

import { Cube3D } from 'react-interactive-cube3d';
import 'react-interactive-cube3d/dist/cube3d.css';

function App() {
  const faces = {
    front: {
      type: 'video',
      src: 'path/to/video.mp4'
    },
    back: {
      type: 'image',
      src: 'path/to/image.jpg'
    },
    right: {
      type: 'html',
      html: '<div>Custom HTML</div>'
    },
    // ... other faces
  };

  return (
    <Cube3D
      size={300}
      autoRotate={true}
      rotationSpeed={0.5}
      interactive={true}
      interactiveEffects={true}
      faces={faces}
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | number | 300 | Size of the cube in pixels | | responsive | boolean | false | Enable responsive sizing | | minSize | number | 150 | Minimum size when responsive | | maxSize | number | 600 | Maximum size when responsive | | autoRotate | boolean | false | Enable auto-rotation | | rotationSpeed | number | 0.5 | Speed of auto-rotation | | interactive | boolean | true | Enable drag controls | | interactiveEffects | boolean | false | Enable hover/click effects | | effectColors | object | {...} | Custom colors for effects | | faces | object | {...} | Content for each face | | className | string | '' | Additional CSS class | | style | object | {} | Additional inline styles |

Face Content Types

Each face can have one of these content types:

// Video
{
  type: 'video',
  src: 'path/to/video.mp4'
}

// Image
{
  type: 'image',
  src: 'path/to/image.jpg'
}

// HTML
{
  type: 'html',
  html: '<div>Custom HTML</div>'
}

// Empty
{
  type: 'empty'
}

Effect Colors

Customize the colors for interactive effects:

const effectColors = {
  front: '#00ffff',  // Cyan
  back: '#ff00ff',   // Magenta
  right: '#ffff00',  // Yellow
  left: '#ff8800',   // Orange
  top: '#88ff00',    // Lime
  bottom: '#ff0088'  // Pink
};

License

MIT