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

use-skelly

v0.1.1

Published

Skeletons that draw themselves. Layout-driven skeleton state library.

Readme

use-skelly

Skeletons that draw themselves. A zero-dependency, layout-driven skeleton state library.


use-skelly measures your actual rendered HTML elements (text lines, avatars, images, tables, grid blocks) and compiles them into a pixel-accurate skeleton overlay.

Instead of writing custom skeleton loading states for every single component, simply wrap your subtree and let use-skelly do the work.

  • Zero configuration: Derive skeletons dynamically from your markup.
  • Zero layout shift (CLS): Placeholders occupy the exact dimensions of your real elements, guaranteeing layout stability.
  • SSR & Streaming ready: Pre-compile route layout specs at build time and render skeletons in the first byte of server HTML.
  • Extremely lightweight: Core is only 2.1 kB minified + gzipped; framework adapters are ~0.4 kB each.

For complete documentation and guides, visit useskelly.dev.


🛠️ Installation

npm install use-skelly

Import global keyframe animations in your root styles file:

import "use-skelly/style.css";

🚀 Quick Start (React / Next.js)

import { Skelly } from "use-skelly/react";

function UserProfile({ isLoading, userData }) {
  return (
    <Skelly loading={isLoading} visual="shimmer">
      <div className="profile-card">
        <img src={userData.avatar} className="avatar" />
        <h2>{userData.name}</h2>
        <p>{userData.bio}</p>
      </div>
    </Skelly>
  );
}

🟢 Framework Adapters

use-skelly provides native wrappers for all major web frameworks:

React / Next.js

import { Skelly } from "use-skelly/react";

Vue 3 (Directive & Component)

<script setup>
import { vSkelly, Skelly } from "use-skelly/vue";
</script>

<template>
  <div v-skelly="isLoading">
    <ProfileCard />
  </div>
</template>

Svelte (Action & Component)

<script>
  import { skelly, Skelly } from "use-skelly/svelte";
  export let isLoading = true;
</script>

<div use:skelly={{ loading: isLoading, visual: 'shimmer' }}>
  <slot />
</div>

Vanilla JavaScript

import { skelly } from "use-skelly";

const release = skelly(document.querySelector("#card"), {
  visual: "shimmer"
});

// When done:
release();

📄 License

MIT © Skelly Team