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

react-nano-skeleton

v0.1.7

Published

Ultra-minimal, zero-dependency skeleton loader for React.

Readme

react-nano-skeleton

Ultra-minimal, zero-dependency skeleton loader for React.

Lightweight · ESM-first · Preset-driven · No styling framework required


✨ Why this library exists

Most skeleton libraries are:

  • Large and dependency-heavy
  • Coupled to Tailwind, MUI, or full design systems
  • Over-configurable for simple loading states

react-nano-skeleton focuses on:

Tiny size + practical presets + zero setup.

You get the real loading UI patterns used in modern apps without importing an entire UI framework.


✨ Features

  • Extremely small bundle
  • Zero runtime dependencies
  • Modern ESM-only distribution
  • Works with Vite, Next.js, Webpack, CRA
  • 14 ready-to-use UI skeleton presets
  • Tree-shakable
  • TypeScript types included
  • Dark-theme-ready shimmer
  • No Tailwind / CSS-in-JS required

📦 Installation

npm install react-nano-skeleton

🚀 Quick start

import { Skeleton } from "react-nano-skeleton";

export default function App() {
  return (
    <div style={{ padding: 40 }}>
      <Skeleton height={20} />
      <Skeleton.Text lines={3} />
      <Skeleton.Card />
      <Skeleton.Table />
    </div>
  );
}

🌐 Live Demo

https://react-nano-skeleton-demo.vercel.app/

Explore all presets and real UI loading states in a minimal demo app.


🧩 Components API

1. Skeleton (primitive)

Low-level building block for custom layouts.

Props

| Prop | Type | Default | Description | | ------- | --------------- | -------- | -------------- | | width | number\|string | "100%" | Block width | | height | number\|string | 16 | Block height | | radius | number\|string | 8 | Border radius | | count | number | 1 | Repeat blocks | | animate | boolean | true | Enable shimmer |


2. Skeleton.Text

Paragraph-style stacked lines.

Best for: descriptions, articles, forms.

<Skeleton.Text lines={3} />

3. Skeleton.AvatarText

Avatar + text rows.

Best for: comments, chats, user lists.

<Skeleton.AvatarText lines={2} />

4. Skeleton.Card

Image + title + description layout.

Best for: blog grids, products, dashboards.

<Skeleton.Card lines={3} />

5. Skeleton.Table

Table-like placeholder.

Best for: admin panels, analytics, data grids.

<Skeleton.Table rows={5} cols={4} />

6. Skeleton.Banner

Wide banner / hero loading block.

Best for: landing headers, promotions.

<Skeleton.Banner />

7. Skeleton.List

Vertical repeated row layout.

Best for: menus, feeds, notifications.

<Skeleton.List items={5} />

8. Skeleton.ProductRow

E-commerce style product row.

Includes:

  • image
  • title
  • price area
<Skeleton.ProductRow />

9. Skeleton.Chip

Small rounded label placeholder.

Best for: tags, filters, categories.

<Skeleton.Chip />

10. Skeleton.Comment

Avatar + multi-line message layout.

Best for: comment sections, discussions.

<Skeleton.Comment />

11. Skeleton.Button

Button-shaped loading block.

<Skeleton.Button width={120} />

12. Skeleton.Image

Image / thumbnail placeholder.

<Skeleton.Image height={200} />

13. Skeleton.Stat

Dashboard metric block.

Best for: analytics cards, KPIs.

<Skeleton.Stat />

14. Skeleton.Form

Form-like stacked inputs.

Best for: auth pages, settings, checkout.

<Skeleton.Form fields={4} />

🎨 Design philosophy

  • Neutral dark-ready base color
  • Soft shimmer animation
  • Consistent 8–16px spacing rhythm
  • Rounded corners matching modern UI systems
  • Framework-agnostic styling

📏 Bundle size

Loading states become essentially free in production.


🧪 Testing

Minimal smoke tests using:

  • Vitest
  • React Testing Library

Ensures:

  • Components import correctly
  • Rendering does not crash
  • Presets mount successfully

🛠 Development

npm install
npm run build
npm test

🤝 Contributing

PRs and issues are welcome.

Ways to contribute:

  • new presets
  • accessibility improvements
  • animation polish
  • performance tweaks

☕ Support the Project

If react-nano-skeleton saved you time, consider supporting the work:

Your support helps maintain and improve the library.


📄 License

MIT © Utkarsh

Free for personal and commercial use.