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

pokemon-holo-cards

v1.2.2

Published

Animated holographic Pokémon card effects for React — all rarities, flip zoom animation

Downloads

1,723

Readme

pokemon-holo-cards

Animated holographic Pokémon card effects for React. All rarities, CDN-backed foil textures, click-to-zoom with flip animation, full mouse + touch support.

Install

npm install pokemon-holo-cards

Peer deps: react >= 17, react-dom >= 17.

Quick start — by TCG card id (easiest)

import { HoloCard, CardZoomModal } from "pokemon-holo-cards";

export default function App() {
  return (
    <>
      <CardZoomModal />
      <HoloCard id="swsh4-50" style={{ width: 300 }} />
    </>
  );
}

The id prop fetches the card from the public Pokémon TCG API and wires up every prop automatically.

Manual props

If you already have the card data:

<HoloCard
  imageUrl="https://images.pokemontcg.io/swsh4/50_hires.png"
  name="Raikou"
  rarity="Amazing Rare"
  subtypes={["Basic"]}
  supertype="Pokémon"
  setId="swsh4"
  cardNumber="050"
  style={{ width: 300 }}
/>

Using the API helpers

import { fetchPokemonCard, searchPokemonCards, HoloCard } from "pokemon-holo-cards";

// single card
const card = await fetchPokemonCard("swsh4-50");

// search
const results = await searchPokemonCards("name:charizard rarity:\"Rare Holo VMAX\"", {
  pageSize: 20,
  orderBy: "-set.releaseDate",
});

// Each item is already shaped for <HoloCard {...card} />
results.map(card => <HoloCard key={card.id} {...card} />);

Pass your own key for higher rate limits: fetchPokemonCard(id, { apiKey: "..." }).

Props

| prop | type | required | notes | | --- | --- | --- | --- | | id | string | * | TCG API card id (e.g. "swsh4-50"). If set, auto-fetches. | | imageUrl | string | * | Needed when id is not set. | | name | string | no | Alt text + zoom label. | | rarity | string | no | TCG rarity string — drives the holo style. | | subtypes | string[] | no | Affects foil URL (e.g. VMAX). | | supertype | string | no | "Pokémon" | "Trainer" | "Energy". | | setId | string | no | Required for CDN foil textures. | | cardNumber | string | no | Required for CDN foil textures. | | apiKey | string | no | Optional TCG API key. | | onClick | function | no | Fires on click/Enter/Space. | | onFetchError | (err) => void | no | Fires if the API lookup fails. | | loadingFallback | ReactNode | no | Rendered while fetching. | | errorFallback | ReactNode | no | Rendered on error. | | style / className | — | no | Merged into the outer element. |

* Provide either id or imageUrl.

<CardZoomModal />

Mount once at your app root. Listens for clicks on any <HoloCard> and plays the flip-zoom animation. Press Esc or click outside to close.

Supported rarities

Reverse Holo · Rare Holo · Cosmos · V · VMAX · VSTAR · V-Union · Ultra/Full Art · Rainbow · Rainbow Alt · Secret Rare · Amazing Rare · Radiant Rare · Shiny V · Shiny VMAX · Trainer Gallery · modern-era aliases (Double Rare, Illustration Rare, Special Illustration Rare, Hyper Rare, etc.).

Accessibility

Cards render as role="button" with tabIndex=0. Enter/Space trigger the zoom.

Credits

Holographic CSS ported from simeydotme/pokemon-cards-css. Foil textures hosted by poke-holo.b-cdn.net.

License

MIT