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

@rimubhai/skeleton-auto-vue

v1.0.2

Published

Framework-agnostic CSS skeleton loading mask for Vue

Readme

Skeleton Auto


Overview

Skeleton Auto provides framework-specific wrapper components that apply a CSS-only skeleton mask to their children. When isLoading is true, all descendant text, borders, and images are temporarily hidden behind an animated placeholder surface. No JavaScript drives the animation — the entire pulse effect is handled by a single CSS @keyframes rule.

Each package ships with zero runtime dependencies. The total footprint per package is approximately 2 KB gzipped.

Packages

| Package | Framework | Peer Dependency | | ---------------------------------------------------------------------------------------------- | ----------------------- | -------------------------------- | | @rimubhai/skeleton-auto-react | React 17+ / Next.js 13+ | react >= 17, react-dom >= 17 | | @rimubhai/skeleton-auto-vue | Vue 3.3+ / Nuxt 3 | vue >= 3.3 |

Installation

# React
npm install @rimubhai/skeleton-auto-react

# Vue
npm install @rimubhai/skeleton-auto-vue

Quick Start

React

import { AutoSkeleton } from "@rimubhai/skeleton-auto-react";

function Profile({ user, loading }) {
  return (
    <AutoSkeleton isLoading={loading}>
      <img src={user.avatar} alt="" />
      <h1>{user.name}</h1>
      <p>{user.bio}</p>
    </AutoSkeleton>
  );
}

The component includes the "use client" directive and is fully compatible with the Next.js App Router. During SSR, the stylesheet is registered inside a useEffect guard to avoid server-side DOM access.

Vue

<script setup lang="ts">
import { AutoSkeleton } from "@rimubhai/skeleton-auto-vue";
import { ref } from "vue";

const loading = ref(true);
</script>

<template>
  <AutoSkeleton :is-loading="loading">
    <h1>{{ user.name }}</h1>
    <p>{{ user.bio }}</p>
  </AutoSkeleton>
</template>

API

Props

| Prop | Type | Default | Description | | --------------------- | --------- | ------- | --------------------------------------------------------------------------------- | | isLoading | boolean | — | When true, the skeleton mask is active. When false, children render normally. | | className (React) | string | "" | Additional CSS class(es) appended to the skeleton wrapper. | | class (Vue) | string | "" | Additional CSS class(es) appended to the skeleton wrapper. |

Accessibility

The skeleton wrapper renders with aria-busy="true" so assistive technologies can detect the loading state.

Theming

Override the skeleton color by setting a single CSS custom property anywhere in your stylesheet:

:root {
  --auto-skeleton-color: #6366f1;
}

Dark mode detection is automatic. When the system preference is prefers-color-scheme: dark, the default fill color shifts from #e2e8f0 to #334155. Your --auto-skeleton-color override takes precedence in both modes.

@media (prefers-color-scheme: dark) {
  :root {
    --auto-skeleton-color: #1e293b;
  }
}

Architecture

When isLoading transitions to true, the component wraps its children in a <div> decorated with the auto-skeleton-active class. An injected stylesheet then applies the following ruleset to all descendants:

  1. Text concealmentcolor: transparent on every descendant element.
  2. Border removalborder-color: transparent and box-shadow: none.
  3. Placeholder fill — targeted elements (h1h3, span, button, a, li, img) receive a background-color backed by --skeleton-bg.
  4. Image replacement<img> tags are pushed off-canvas via object-position while retaining layout dimensions.
  5. Multi-line paragraphs — empty <p> tags render three horizontal stripes using a linear-gradient background, simulating lines of text.
  6. SVG suppression — inline SVG graphics are set to opacity: 0.

The opacity pulse animation runs on a 1.5-second cubic-bezier curve. No setInterval, no requestAnimationFrame, no forced synchronous layout.

Repository

This is an npm workspaces monorepo.

skeleton-auto/
├── packages/
│   ├── react/           # tsup  — CJS + ESM + declarations
│   └── vue/             # vite  — ESM + UMD + declarations
├── package.json         # Workspace root (private)
└── tsconfig.base.json   # Shared TypeScript configuration

Development

git clone <repo-url>
cd skeleton-auto
npm install

npm run build          # Build all packages
npm run build:react    # Build React only
npm run build:vue      # Build Vue only
npm run clean          # Remove dist directories

Publishing

npm run publish:all

Requires npm login and write access to the @rimubhai scope. The publishConfig.access field in each package is set to "public".

Contributing

  1. Fork the repository.
  2. Create a branch: git checkout -b feat/description.
  3. Make changes and verify the build: npm run build.
  4. Commit using Conventional Commits (feat:, fix:, docs:).
  5. Open a pull request.

Both framework packages must maintain API parity. If a prop is added to one, it must be added to the other.

License

MIT