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-nuxt

v1.9.1

Published

KunUI Nuxt Layer — wraps @kungal/ui-vue, auto-imports the components, and injects NuxtLink + @nuxt/icon so existing Nuxt apps keep their exact DX.

Readme

@kungal/ui-nuxt

The Nuxt Layer for KunUI. It wraps the Nuxt-decoupled @kungal/ui-vue package and restores the full Nuxt developer experience on top of it:

  • auto-imports every KunUI component (<KunButton>, <KunCard>, <KunIcon>, …) — no per-file imports, and Nuxt generates their types so templates stay type-checked;
  • injects NuxtLink as KunUI's linkComponent, so href buttons/cards render as SSR-aware client-side links (exactly like the original);
  • injects @nuxt/icon as KunUI's iconComponent — used only as a fallback for icons not in KunUI's bundled set (KunUI's own ~24 icons are bundled inline in @kungal/ui-core and never fetched). For consumer icons, install @iconify-json/* and use @nuxt/icon's local/client bundle mode so they aren't fetched either, or registerKunIcons() from @kungal/ui-core;
  • registers @nuxt/icon + @nuxt/image;
  • auto-imports the composables too (useKunMessage, useKunUIConfig, …) so they work with no import, like the original.

Messages (toasts)

useKunMessage() is auto-imported. Mount the provider once (e.g. in app.vue or your default layout) — it Teleports to body:

<template>
  <NuxtPage />
  <KunMessageProvider />
</template>
useKunMessage('Saved', 'success') // from anywhere, no import

It deliberately does not own a Tailwind entry — your app keeps one stylesheet that imports Tailwind + @kungal/ui-tokens and declares the @source scan (that path is node_modules-layout-specific). See below.

Net effect: a Nuxt app consuming this layer behaves like the original Nuxt-native KunUI — zero regression — while the components underneath are now framework-decoupled and shared with the (future) React layer.

Usage

// nuxt.config.ts
export default defineNuxtConfig({
  extends: ['@kungal/ui-nuxt'],
})

Add one Tailwind entry stylesheet in your app and register it (css: ['~/assets/css/main.css']):

/* assets/css/main.css */
@import 'tailwindcss';
@import '@kungal/ui-tokens';
@source '../../node_modules/@kungal/ui-vue/dist'; /* component classes */
@source '../../node_modules/@kungal/ui-core/dist';   /* variant × color matrix */

(Tailwind v4 in Nuxt also needs the @tailwindcss/vite plugin in nuxt.config.tsvite.plugins.) That's it:

<template>
  <KunButton color="primary">Save</KunButton>
  <KunButton href="/docs" variant="light">Docs</KunButton> <!-- NuxtLink -->
  <KunIcon name="lucide:heart" />                          <!-- @nuxt/icon -->
</template>

How the bridge works

@kungal/ui-vue deliberately has no Nuxt dependency — its linkComponent / iconComponent config slots default to a plain <a> and @iconify/vue. This layer's plugin (app/plugins/kun-ui.ts) calls installKunUIConfig at the app level with NuxtLink + a thin @nuxt/icon wrapper, so every KunUI component picks up the Nuxt implementations via inject. Swapping the layer out (or running the same components in a plain Vue app) falls back to the framework-neutral defaults automatically.