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

hologram-sticker

v1.1.2

Published

A React component library for creating holographic sticker effects

Readme

🌟 Hologram Sticker

A React component library for creating stunning holographic sticker effects with 3D transformations and interactive animations.

✨ Features

  • 🎯 Easy to Use: Simple compound component API
  • 🎨 Customizable: Flexible styling and configuration options
  • 📱 Responsive: Works great on mobile and desktop
  • Performance: Optimized animations and GPU acceleration
  • 🔧 TypeScript: Full TypeScript support with type definitions
  • 🎭 Accessible: Built with accessibility in mind

🚀 Installation

npm install hologram-sticker
# or
yarn add hologram-sticker
# or
pnpm add hologram-sticker

📖 Quick Start

import { HologramSticker } from 'hologram-sticker';

function App() {
  return (
    <div className="flex items-center justify-center min-h-screen bg-black">
      <HologramSticker.Root>
        <HologramSticker.Card>
          <HologramSticker.Background 
            src="/lightning.png" 
            alt="Lightning" 
          />
          <HologramSticker.Pattern>
            <HologramSticker.Refraction />
          </HologramSticker.Pattern>
          <HologramSticker.Overlay 
            src="/lightning.png" 
            alt="Lightning" 
          />
        </HologramSticker.Card>
      </HologramSticker.Root>
    </div>
  );
}

🏗️ Component Architecture

The library follows a three-layer structure:

  1. Background Layer: Base image display
  2. Pattern Layer: Holographic effects with refraction
  3. Overlay Layer: Top image with transparency
<HologramSticker.Root>          {/* Mouse tracking context */}
  <HologramSticker.Card>        {/* 3D transform container */}
    <HologramSticker.Background /> {/* Layer 1: Background image */}
    <HologramSticker.Pattern>     {/* Layer 2: Holographic pattern */}
      <HologramSticker.Refraction /> {/* Rainbow light effects */}
    </HologramSticker.Pattern>
    <HologramSticker.Overlay />   {/* Layer 3: Overlay image */}
  </HologramSticker.Card>
</HologramSticker.Root>

📚 API Reference

HologramSticker.Root

The main container that provides mouse tracking context.

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | - | Child components | | className | string | '' | Additional CSS classes | | style | CSSProperties | - | Inline styles |

HologramSticker.Card

The card container that handles 3D transformations.

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | - | Child components | | className | string | '' | Additional CSS classes | | width | number | 208 | Card width in pixels | | aspectRatio | number | 3/4 | Card aspect ratio |

HologramSticker.Background

The background image layer.

| Prop | Type | Default | Description | |------|------|---------|-------------| | src | string | - | Image source URL | | alt | string | '' | Image alt text | | className | string | '' | Additional CSS classes |

HologramSticker.Pattern

The holographic pattern layer container.

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | - | Child components (usually Refraction) | | className | string | '' | Additional CSS classes | | intensity | number | 0.4 | Pattern intensity (0-1) | | textureUrl | string | Built-in texture | Custom texture URL |

HologramSticker.Refraction

The rainbow refraction effect component.

| Prop | Type | Default | Description | |------|------|---------|-------------| | className | string | '' | Additional CSS classes | | colors | string[] | Rainbow colors | Custom refraction colors | | count | 1 \| 2 | 2 | Number of refraction points |

HologramSticker.Overlay

The top overlay image layer.

| Prop | Type | Default | Description | |------|------|---------|-------------| | src | string | - | Image source URL | | alt | string | '' | Image alt text | | className | string | '' | Additional CSS classes | | opacity | number | 0.2 | Overlay opacity (0-1) |

🎨 Examples

Basic Usage

import { HologramSticker } from 'hologram-sticker';

function BasicExample() {
  return (
    <HologramSticker.Root>
      <HologramSticker.Card>
        <HologramSticker.Background src="/image.jpg" alt="Example" />
        <HologramSticker.Pattern>
          <HologramSticker.Refraction />
        </HologramSticker.Pattern>
        <HologramSticker.Overlay src="/image.jpg" alt="Example" />
      </HologramSticker.Card>
    </HologramSticker.Root>
  );
}

Custom Styling

function StyledExample() {
  return (
    <HologramSticker.Root>
      <HologramSticker.Card 
        width={256}
        className="border-2 border-white/20 rounded-3xl"
      >
        <HologramSticker.Background 
          src="/fire.png" 
          className="brightness-110"
        />
        <HologramSticker.Pattern 
          intensity={0.6}
          className="mix-blend-hard-light"
        >
          <HologramSticker.Refraction 
            colors={['#ff4444', '#ff8844', '#ffaa44']}
          />
        </HologramSticker.Pattern>
        <HologramSticker.Overlay 
          src="/fire.png"
          opacity={0.3}
        />
      </HologramSticker.Card>
    </HologramSticker.Root>
  );
}

Multiple Cards

function Gallery() {
  const cards = [
    { src: '/fire.png', alt: 'Fire' },
    { src: '/water.png', alt: 'Water' },
    { src: '/earth.png', alt: 'Earth' },
  ];

  return (
    <div className="flex gap-8 justify-center">
      {cards.map((card, index) => (
        <HologramSticker.Root key={index}>
          <HologramSticker.Card>
            <HologramSticker.Background {...card} />
            <HologramSticker.Pattern>
              <HologramSticker.Refraction />
            </HologramSticker.Pattern>
            <HologramSticker.Overlay {...card} />
          </HologramSticker.Card>
        </HologramSticker.Root>
      ))}
    </div>
  );
}

🎯 CSS Custom Properties

You can customize the appearance using CSS custom properties:

.hologram-sticker-card {
  --hologram-rotate-x: 30deg;  /* X-axis rotation intensity */
  --hologram-rotate-y: -25deg; /* Y-axis rotation intensity */
}

.hologram-sticker-pattern {
  --pattern-intensity: 0.6; /* Pattern opacity */
}

.hologram-sticker-overlay {
  --overlay-opacity: 0.3; /* Overlay opacity */
}

🌍 Browser Support

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+

📄 License

MIT © Lawted Wu

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

🐛 Issues

Found a bug? Please create an issue.