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

@byyuurin/ui

v0.5.3

Published

A collection of Vue.js components for my projects.

Readme

@byyuurin/ui

A collection of Vue.js components for my projects.

npm version npm downloads License

Preview

https://byyuurin-ui.netlify.app/

Installation

pnpm add @byyuurin/ui unocss
yarn add @byyuurin/ui unocss
npm install @byyuurin/ui unocss

Nuxt

  1. Add the UI module in your nuxt.config.ts:
export default defineNuxtConfig({
  modules: [
    '@byyuurin/ui',
  ],

  ui: {
    prefix: 'U',
    colorMode: true,
    theme: {
      colors: ['primary', 'secondary', 'success', 'info', 'warning', 'error'],
      transitions: true,
      defaultVariants: {
        color: 'primary',
        size: 'md',
      },
    },
  },
})
  1. Add UnoCSS preset in your uno.config.ts:
import { createUnoPreset } from '@byyuurin/ui/unocss'
import { defineConfig, presetWind4 } from 'unocss'

export default defineConfig({
  outputToCssLayers: true,
  presets: [
    presetWind4(),
    createUnoPreset({
      colors: ['primary', 'secondary', 'success', 'info', 'warning', 'error'],
    }),
  ],
})

[!NOTE] This preset relies on CSS layers to ensure generated CSS variables can be properly overridden. Make sure outputToCssLayers is enabled.

[!IMPORTANT] The preset colors configuration must be the same as your nuxt configuration

Vue

  1. Create ui.config.ts file for unified management of UI settings:
// @unocss-include
import { setup } from '@byyuurin/ui/setup'

export default setup({
  prefix: 'U',
  autoImport: {
    // ... unplugin-auto-import options
  },
  components: {
    // ... unplugin-vue-components options
  },
  colorMode: true,
  theme: {
    colors: ['primary', 'secondary', 'success', 'info', 'warning', 'error'],
    transitions: true,
    defaultVariants: {
      color: 'primary',
      size: 'md',
    },
  },
  ui: {
    colors: {
      primary: 'orange',
      secondary: 'teal',
      success: 'green',
      info: 'blue',
      warning: 'yellow',
      error: 'red',
      neutral: 'stone',
    },
    icons: {
      close: 'i-lucide-x',
      loading: 'i-lucide-loader-circle',
      check: 'i-lucide-check',
      chevronUp: 'i-lucide-chevron-up',
      chevronDown: 'i-lucide-chevron-down',
      chevronLeft: 'i-lucide-chevron-left',
      chevronRight: 'i-lucide-chevron-right',
      chevronDoubleLeft: 'i-lucide-chevrons-left',
      chevronDoubleRight: 'i-lucide-chevrons-right',
      ellipsis: 'i-lucide-ellipsis',
      folder: 'i-lucide-folder',
      folderOpen: 'i-lucide-folder-open',
      plus: 'i-lucide-plus',
      minus: 'i-lucide-minus',
      external: 'i-lucide-arrow-up-right',
    },
  },
})

[!IMPORTANT] Add // @unocss-include to add ui.config.ts to unocss scan files

[!NOTE] Internally relies on custom alias to resolve the theme types. If you're using TypeScript, you should add an alias to your tsconfig to enable auto-completion in your ui.config.ts.

// tsconfig.node.json

{
  "compilerOptions": {
    "paths": {
      "#build/*": ["./node_modules/.nuxt/*"]
    }
  }
}
  1. Add the UI Vite plugin in your vite.config.ts:
import ui from '@byyuurin/ui/vite' // <---
import vue from '@vitejs/plugin-vue'
import unocss from 'unocss/vite'
import { defineConfig } from 'vite'
import uiConfig from './ui.config' // <---

export default defineConfig({
  plugins: [
    unocss(),
    vue(),
    ui(uiConfig.vite), // <---
  ],
})
  1. Add UnoCSS preset in your uno.config.ts:
import { createUnoPreset } from '@byyuurin/ui/unocss' // <---
import { defineConfig, presetWebFonts, presetWind4 } from 'unocss'
import uiConfig from './ui.config' // <---

export default defineConfig({
  outputToCssLayers: true, // <--
  presets: [
    presetWind4(),
    createUnoPreset(uiConfig.uno), // <---
    presetWebFonts({
      fonts: {
        sans: { provider: 'google', name: 'Public Sans', weights: [400, 500, 600, 700] },
      },
    }),
  ],
})

[!NOTE] This preset relies on CSS layers to ensure generated CSS variables can be properly overridden. Make sure outputToCssLayers is enabled.

  1. Add the UI Vue plugin in your src/main.ts
import 'uno.css'

import ui from '@byyuurin/ui/vue-plugin' // <---
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'

const app = createApp(App)

const router = createRouter({
  routes: [],
  history: createWebHistory(),
})

app.use(ui) // <----
app.use(router)

app.mount('#app')
  1. Add the isolate class to your root container
<!doctype html>
<html lang="en">
  <head>
    ...
  </head>
  <body>
    <div id="app" class="isolate"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>

Credits

License

MIT License © 2024-PRESENT Yuurin