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

@inaumanmajeed/skeletonify

v0.3.1

Published

Zero-config React skeleton wrapper. L1 heuristic + L2 learning + optional L3 build-time generation. SSR-safe, zero flicker.

Readme

<Skeletonify loading={isLoading}>
  <ProfileCard user={user} />
</Skeletonify>

That's the whole API.

CI npm size license

Live Demo · GitHub · Report a bug


The problem

You build ProfileCard. Then you build ProfileCardSkeleton. You change the component. The skeleton rots. Every React app has this two trees that say the same thing, forever drifting apart.

Skeletonify kills the twin component.


Quick start

npm install @inaumanmajeed/skeletonify
import { Skeletonify } from "@inaumanmajeed/skeletonify";

function Profile({ user, isLoading }) {
  return (
    <Skeletonify loading={isLoading}>
      <ProfileCard user={user} />
    </Skeletonify>
  );
}

Zero config. Works in Next.js, Vite, Remix. SSR-safe.


How it works

Skeletonify has three layers. You get all three with zero setup. Each makes your skeletons better.

L1 Instant (always on)

Reads your JSX and Tailwind classes to generate a skeleton at render time. Pure, synchronous, SSR-safe. No DOM measurement, no hidden renders, no flicker.

Result: a plausible skeleton on the very first load. Good enough for most apps.

L2 Learns (automatic)

After your real UI paints, Skeletonify quietly observes the DOM on idle and caches the true layout. Next time the component loads, the skeleton is pixel-accurate.

Result: skeletons that get smarter every time a user visits. No code changes needed.

L3 Perfect (one CLI command)

Pre-generate descriptors at build time. The skeleton is accurate from the very first paint no learning needed.

npx @inaumanmajeed/skeletonify-generate src/components/ --out .skeletonify --map
import { registerBuildDescriptors } from "@inaumanmajeed/skeletonify";
import { skeletonMap } from "./.skeletonify/skeletonMap";

// Call once at app startup
registerBuildDescriptors(skeletonMap);

Result: pixel-perfect cold-start skeletons. L3 is fully optional if you never run the CLI, L1 and L2 handle everything.


Priority

manual fallback  >  L3 build-time  >  L2 learned cache  >  L1 heuristic

Every layer is automatic. Higher layers override lower ones. Nothing breaks if a layer is missing.


Features

  • Zero config. Install, wrap, ship.
  • Zero flicker. No hidden render, no DOM measurement, no swap.
  • SSR-safe. Server and client produce identical output.
  • Tailwind-first. Reads w-*, h-*, rounded-full, flex, gap-*, and more.
  • Self-improving. L1 on first load, L2 on every load after.
  • 5KB gzipped. Zero runtime dependencies.
  • Accessible. aria-busy, role="status", respects prefers-reduced-motion.
  • Dark mode. Respects prefers-color-scheme.
  • TypeScript-first.

API

<Skeletonify
  loading={boolean}         // required  skeleton or real UI
  fallback?={ReactNode}     // optional  manual override
  id?={string}              // optional  stable cache key
  learn?={boolean}          // optional  disable L2 for this instance
  className?={string}       // optional  skeleton wrapper class
>
  {children}
</Skeletonify>

FAQ

Does it work with Next.js App Router? Yes. Skeletonify is a client component ('use client'). Inference is deterministic, so server and client render the same skeleton.

Does it need Tailwind? No, but it works best with Tailwind. Without className hints, L1 falls back to element-type defaults. L2 learns the real layout regardless.

What about charts / canvas / iframes? Opaque to inference. Use the fallback prop:

<Skeletonify loading={isLoading} fallback={<MyChartSkeleton />}>
  <Chart />
</Skeletonify>

What if I redesign a component? L1 adapts instantly (same JSX). L2 re-learns on the next visit. L3 re-generates when you re-run the CLI. Nothing goes stale automatically.

Is L3 required? No. L1 + L2 cover most use cases. L3 is for teams that want deterministic cold-start accuracy.


Contributing

git clone https://github.com/inaumanmajeed/Skeletonify.git
cd Skeletonify
npm install
npm test            # 62 tests
npm run build       # ESM + CJS
npm run demo:dev    # interactive playground

License

MIT

If Skeletonify saved you an afternoon, star the repo.