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

@ikefakis/react-polaroid-photo-deck

v3.1.0

Published

A beautiful polaroid style photo deck

Readme

React Polaroid Photo Deck

React Polaroid Photo Deck

A publishable React component that renders an interactive polaroid-style photo deck with drag gestures and spring animations.

Demo: ikefakis.github.io/react-polaroid-photo-deck

Install

npm install @ikefakis/react-polaroid-photo-deck react react-dom

The package keeps react and react-dom as peer dependencies. Gesture and spring dependencies are bundled as regular package dependencies so consumers do not need to install them separately.

Usage

import { Deck } from "@ikefakis/react-polaroid-photo-deck";
import "@ikefakis/react-polaroid-photo-deck/style.css";

const photos = [
  {
    url: "https://picsum.photos/id/1036/800/1100",
    date: "15/01/2025",
    caption: "Quiet morning mist",
  },
  {
    url: "https://picsum.photos/id/1011/1200/800",
    date: "22/07/2024",
    caption: "Drifting in silence",
  },
  {
    url: "https://picsum.photos/id/1003/820/1180",
    date: "05/05/2024",
    caption: "Stumbled upon magic",
  },
];

export function Example() {
  return <Deck cards={cards} style={{ width: "100vw", height: "100vh" }} />;
}

Each card only needs a final image URL. You can also provide an optional display-ready date string and a caption string for handwritten metadata. Orientation is detected automatically when images load.

API

type Card = {
  url: string;
  date?: string;
  caption?: string;
};

type DeckProps = {
  cards: Card[];
  className?: string;
  style?: React.CSSProperties;
};

The bundled stylesheet imports the Mynerve font from Google Fonts for the handwritten metadata. Consumers can override it with:

.your-deck {
  --photo-deck-font: "Your Custom Font";
  --photo-deck-caption-font-size: 1.5rem;
}

Repository Structure

  • src/: publishable library source and package entrypoint.
  • playground/: local demo app and GitHub Pages entrypoint.

Development

npm ci
npm run dev

That starts the secondary playground app on the local Vite server.

Build

npm run build

Builds the publishable library into dist.

npm run build:playground

Builds the GitHub Pages playground into dist.

Publish

npm run prepublishOnly and the Publish package workflow both validate the library build before publishing.

The publish workflow:

  1. Installs dependencies with npm ci.
  2. Validates the package with npm run build.
  3. Bumps the version.
  4. Prepends generated release notes to CHANGELOG.md.
  5. Publishes the package to npm.
  6. Pushes the release commit and matching v* tag.

Deploy

The GitHub Pages workflow runs npm run build:playground and deploys the generated dist directory.

License

MIT. See LICENSE.