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

@statekit-vue/vue

v0.4.0

Published

Category-first Vue state UI for SaaS products.

Readme

@statekit-vue/vue

Category-first Vue state UI for SaaS products.

@statekit-vue/vue is the main public package for StateKit. Install it when your app needs production-ready empty, onboarding, loading, error, permission, upgrade, and success states without rebuilding layout, copy structure, and CTA behavior from scratch.

React apps can use the sibling adapter package @statekit-vue/react, which shares the same metadata and category-first API.

Install

npm install @statekit-vue/vue

Peer dependency:

  • vue@^3.4.0

Quick Start

<script setup lang="ts">
import { ref } from "vue";
import "@statekit-vue/vue/styles.css";
import { EmptyState } from "@statekit-vue/vue";

const clearing = ref(false);

async function handleClearFilters() {
  clearing.value = true;
  try {
    await Promise.resolve();
  } finally {
    clearing.value = false;
  }
}
</script>

<template>
  <EmptyState
    title="No matching invoices"
    description="Try a different keyword or clear your current filters."
    :primary-action="{
      label: 'Clear filters',
      onClick: handleClearFilters,
      loading: clearing,
      loadingLabel: 'Clearing filters...',
    }"
    :secondary-action="{
      label: 'Create invoice',
      href: '/invoices/new',
    }"
  />
</template>

What It Includes

  • Seven category-first public components: EmptyState, OnboardingState, LoadingState, ErrorState, PermissionState, UpgradeState, and SuccessState
  • 21 preset recipes and compatibility exports across the same seven categories
  • Shared prop surface for title, description, tone, density, layout, primaryAction, and secondaryAction
  • Built-in stylesheet entry at @statekit-vue/vue/styles.css
  • Re-exports from @statekit-vue/shared for recipe metadata and shared types

OnboardingState is now the dedicated first-run activation entry. FirstProjectState still exists for compatibility, but it now reads as a post-setup empty-state bridge rather than the primary onboarding surface. Prefer the unified category entries in new code and customize the copy, layout, and actions per screen. Older scenario-specific exports remain available as deprecated compatibility presets.

Shared Preset API

Supported layouts:

  • inline
  • panel
  • page

Supported tones:

  • neutral
  • brand
  • danger
  • warning
  • success

CTA Action Object

primaryAction and secondaryAction both accept StateAction | null | undefined.

A StateAction can include:

  • label: required button text
  • href: optional link target that renders the action as an anchor
  • onClick: optional click handler for buttons or links
  • loading: optional busy state controlled by the consumer
  • loadingLabel: optional busy text that replaces the default Working...
  • disabled: optional unavailable state that keeps the action visible

Passing null removes a preset action explicitly. Leaving an action prop undefined keeps the preset default.

Links

  • Repository: https://github.com/gaoliuqing9178/StateKit
  • Online docs: https://state-kit-vue-docs.vercel.app/
  • Root docs and examples: https://github.com/gaoliuqing9178/StateKit#readme
  • Release notes: https://github.com/gaoliuqing9178/StateKit/blob/main/CHANGELOG.md