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

@finzor-ui/vite-plugin

v0.5.5

Published

Vite plugin for Finzor UI: CSS channel (style closure), optimizeDeps, and theme bootstrap.

Readme

@finzor-ui/vite-plugin

Официальный Vite-адаптер Finzor UI: dual-entry (SPA side-effects + SSR exports["."].node), CSS closure для SSR/Nuxt, optimizeDeps и bootstrap темы.

Vite: peer ^5 || ^6 || ^7 || ^8 (актуальный стек create-шаблона — Vite 8 + @vitejs/plugin-vue 6).

Поддерживаемые npm scopes: @finzor-ui/* (Free) и @finzor-ui-pro/* (Pro).

pnpm add -D @finzor-ui/vite-plugin

Plain SPA (zero-config CSS)

// vite.config.ts — плагин опционален для стилей
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [vue()]
})
import { FMenu } from '@finzor-ui/menu'

Bundler подтягивает thin CSS через side-effects в dist/index.js. Без double inject.

SSR / Nuxt

// vite.config.ts — plain Vite SSR
import { finzorUi } from '@finzor-ui/vite-plugin'

export default defineConfig({
  plugins: [vue(), finzorUi({ ssr: true })]
})
// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@finzor-ui/vite-plugin/nuxt']
})

В коде — всегда @finzor-ui/<pkg>. SSR entry — через exports["."].node в пакетах, не через rewrite в plugin.

Подробный контракт: docs/ssr.md.

Public API

| Export | Назначение | | ------ | ---------- | | finzorUi(options?) | Основной плагин (массив Vite plugins) | | @finzor-ui/vite-plugin/nuxt | Рекомендуется для Nuxt 4 — CSS prepend + ssr.noExternal + validate |


Как работает CSS

| Режим | JS на SSR | CSS inject | | ----- | --------- | ---------- | | SPA (finzorUi() default) | client entry | нет — bundler + side-effects | | Vite SSR (ssr: true) | exports["."].node | virtual module в app entry | | Nuxt module | exports["."].node + ssr.noExternal | nuxt.options.css prepend |

  1. Scan — статический обход scanDirs, сбор @finzor-ui/*.
  2. Style closure — топо-порядок по styles.manifest.json.
  3. Доставка: см. таблицу выше.
  4. optimizeDeps.include — bare @finzor-ui/<pkg>.

Options

ssr

Default false. Включите для plain Vite SSR: virtual CSS inject в app entry.

Nuxt module: ssr: true, cssInject: false.

cssInject

Default = ssr. Virtual CSS module для plain Vite SSR. Nuxt: false.

packages

Корни для validate / analyzeCss.

  • 'auto' (default) — пакеты из графа импортов.
  • ['menu', '@finzor-ui-pro/table'] — явный список.

scanDirs

  • default: ['src']
  • Nuxt: app/, pages/, components/, layouts/, plugins/, src/

theme / colorScheme

Build-time bootstrap на <html>.

colorMode (только Nuxt module)

Opt-in sync с @nuxtjs/color-mode. Default: false.

includePackageJsonDeps

Union @finzor-ui/* из app package.json (plain Vite, default true). Nuxt: false.

Пакеты без module entry (main / module / exports["."]) — например @finzor-ui/ai-context, @finzor-ui/cli — в optimizeDeps.include не попадают.

validate / debug / analyzeCss

Build-time checks, логи closure, отчёт размера CSS.


Quick recipes

SPA + theme (без SSR)

plugins: [
  vue(),
  finzorUi({
    theme: 'corporate',
    colorScheme: 'light'
  })
]

Nuxt 4

export default defineNuxtConfig({
  modules: ['@finzor-ui/vite-plugin/nuxt'],
  finzorUi: {
    theme: 'corporate',
    colorScheme: 'dark'
  }
})

Module: scan → closure → prepend nuxt.options.css; vite.ssr.noExternal для @finzor-ui/*.


Escape hatch (без плагина)

| Subpath | Назначение | | ------- | ---------- | | ./style.css | Thin CSS пакета (не полный UX composite) | | ./style-all.css | Topo-concat closure | | ./styles.manifest.json | Граф CSS-deps | | ./ssr | Явный SSR entry (обычно не нужен в app-коде) |


Migration 0.4 → dual-entry (0.5+)

  1. Обновите все @finzor-ui/* и @finzor-ui/vite-plugin одной волной.
  2. В app-коде — @finzor-ui/<pkg>, не /ssr.
  3. SSR JS: exports["."].nodedist/ssr.js (контракт пакета).
  4. Nuxt: module + без ручных css: ['@finzor-ui/...'].

См. также