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

@ghostly-ui/react

v1.0.0

Published

React components for Ghostly skeleton loaders

Downloads

758

Readme

@ghostly-ui/react

React components for Ghostly skeleton loaders.

Zero-config. Wrap your component, done. No CLI, no build step, no code changes.

Install

npm install @ghostly-ui/core @ghostly-ui/react
/* globals.css */
@import '@ghostly-ui/core/css';

Quick Start

import { Ghostly } from '@ghostly-ui/react'

<Ghostly loading={isLoading} smooth>
  <ProductCard product={data} />
</Ghostly>

Components

<Ghostly> -- Wrap any component

<Ghostly
  loading={isLoading}
  animation="shimmer"    // shimmer | pulse | wave | none
  radius="md"            // none | xs | sm | md | lg | full
  speed="normal"         // slow | normal | fast
  color="hsl(210 40% 88%)"  // custom skeleton color
  shine="hsl(210 40% 94%)"  // custom shimmer highlight
  smooth                 // fade-out transition
  as="article"           // div | section | article | main | aside | span | ul | ol
>
  <YourComponent data={data} />
</Ghostly>

<GhostlyList> -- For lists and grids

<GhostlyList
  loading={isLoading}
  count={6}
  item={<ProductCard />}
  as="ul"
  className="grid grid-cols-3 gap-4"
>
  {products.map(p => <ProductCard key={p.id} product={p} />)}
</GhostlyList>

<GhostlySuspense> -- Auto-skeleton with Suspense

Zero state management. Works with RSC, use(), and Suspense-based data fetching.

import { GhostlySuspense } from '@ghostly-ui/react'

<GhostlySuspense fallback={<ProductCard />} animation="shimmer" smooth>
  <AsyncProductCard id={123} />
</GhostlySuspense>

<GhostlyProvider> -- Global defaults

Nested providers inherit from parent. Only override what you need.

<GhostlyProvider animation="shimmer" radius="md">
  <App />
</GhostlyProvider>

useGhostly() -- Read context + spreadable props

const { loading, animation, getGhostlyProps } = useGhostly()

// Spread onto any element for manual skeleton control
<div {...getGhostlyProps()}>
  <canvas />
</div>

HTML Attributes

<button data-ghostly-ignore>Always visible</button>
<p data-ghostly-lines="5">Long paragraph skeleton</p>
<img data-ghostly-ratio="1/1" src="avatar.jpg" />

Props Reference

| Prop | Type | Default | Description | |------|------|---------|-------------| | loading | boolean | required | Show skeleton | | animation | 'shimmer' \| 'pulse' \| 'wave' \| 'none' | 'shimmer' | Animation style | | radius | 'none' \| 'xs' \| 'sm' \| 'md' \| 'lg' \| 'full' | 'sm' | Border radius | | speed | 'slow' \| 'normal' \| 'fast' | 'normal' | Animation speed | | color | string | -- | Custom skeleton base color | | shine | string | -- | Custom shimmer highlight | | smooth | boolean | false | Fade-out transition | | as | string | 'div' | Wrapper HTML tag |

Documentation

Full docs at ghostly.adanulissess.com

License

MIT