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

@kungal/ui-vue

v1.9.0

Published

KunUI Vue 3 component layer — Nuxt-decoupled. Works in any Vue app; pairs with @kungal/ui-nuxt for Nuxt sugar.

Readme

@kungal/ui-vue

KunUI's Vue 3 component layer, decoupled from Nuxt. The same components that ship in the Nuxt layer, but with every Nuxt dependency replaced by an explicit import or an injectable config slot — so they run in any Vue 3 app (Vite, Astro, Laravel, plain createApp, …), not just Nuxt.

Status: P1 in progress. The package, build, and decoupling pattern are established and proven on KunButton, KunCard, KunIcon, KunRipple, KunModal, and the message/toast system. The remaining components port mechanically against the same pattern (see docs/architecture.md §6).

Icons (bundled, never fetched)

KunIcon renders inline SVG from a registry — it never calls the Iconify API (no FOUC, no SSR-empty-then-pop, works offline / behind a firewall). The ~24 icons KunUI's own components use are bundled in @kungal/ui-core, so they work with zero setup.

<KunIcon name="lucide:circle-check" class="text-success text-2xl" />

Bring your own icons by registering their data (from @iconify-json/* at build time, or hand-written SVG — bodies use currentColor):

import { registerKunIcons } from '@kungal/ui-core'
import lucide from '@iconify-json/lucide/icons.json' // build-time data

registerKunIcons({
  'lucide:rocket': { body: lucide.icons.rocket.body },
  'brand:logo': { body: '<path fill="currentColor" d="…"/>' },
})

Render order: registry → injected iconComponent (e.g. @nuxt/icon in local-bundle mode, unplugin-icons) → nothing. Never a network fetch.

Messages (toasts)

Imperative trigger + a single mounted provider (the pattern Sonner / react-hot-toast / Naive UI use — no detached render, no context hacks). Mount the provider once near your app root:

<!-- App.vue -->
<template>
  <RouterView />
  <KunMessageProvider />  <!-- renders all toasts, Teleported to body -->
</template>

Then trigger from anywhere:

import { useKunMessage } from '@kungal/ui-vue'

useKunMessage('Saved successfully', 'success')
useKunMessage('Error', 'error', 4000, false, 'bottom-right')
// signature: (message, type, duration=3000, richText=false, position='top-center')

richText: true renders message as raw HTML (like Element Plus dangerouslyUseHTMLString). Pass only trusted / pre-sanitized HTML — never raw user input.

Install

pnpm add @kungal/ui-vue @kungal/ui-tokens vue

Usage

// main.ts
import { createApp } from 'vue'
import KunUI from '@kungal/ui-vue'
import '@kungal/ui-vue/style.css' // component scoped styles (ripple, etc.)
import App from './App.vue'

createApp(App).use(KunUI).mount('#app')
/* app.css */
@import 'tailwindcss';
@import '@kungal/ui-tokens';
@source '../node_modules/@kungal/ui-vue/dist'; /* let Tailwind scan the lib */
<template>
  <KunButton color="primary" @click="...">Save</KunButton>
  <KunButton href="/docs" variant="light">Docs</KunButton>
</template>

Prefer explicit imports (tree-shaking) over the global plugin? Skip .use(KunUI) and import { KunButton } from '@kungal/ui-vue' per file.

How it's decoupled from Nuxt

The Nuxt original leaned on auto-imports and three Nuxt modules. Here:

| Nuxt original | @kungal/ui-vue replacement | | --- | --- | | auto-imported computed/ref/cn/components | explicit import from vue / @kungal/ui-core / sibling files | | defineNuxtLink() for href buttons/cards | config.linkComponent (default <a>; inject RouterLink/NuxtLink) | | @nuxt/icon <Icon> | config.iconComponent (default @iconify/vue; inject NuxtIcon) | | @kungal/ui Nuxt-layer Tailwind tokens | @kungal/ui-tokens package | | in-package cn / variant matrix / radius | @kungal/ui-core (shared with the React layer) |

Configuring the injectable slots

import { RouterLink } from 'vue-router'
import { provideKunUIConfig } from '@kungal/ui-vue'

// in a root component's setup()
provideKunUIConfig({
  rounded: 'lg',
  linkComponent: RouterLink, // KunUI passes the destination as `to`
})

@kungal/ui-nuxt (planned, P2) calls provideKunUIConfig with NuxtLink + @nuxt/icon so the Nuxt DX is identical to today.

Build

pnpm --filter @kungal/ui-vue build      # vite (JS+CSS) + vue-tsc (types)
pnpm --filter @kungal/ui-vue typecheck