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/cli

v0.4.0

Published

Finzor UI registry CLI: add recipe (copy-paste дистрибуция каталога recipes).

Readme

@finzor-ui/cli

CLI дистрибуции каталога Finzor UI. Копирует recipes в staging src/finzor-ui/ проекта потребителя.

Staging-структура

src/finzor-ui/           ← единая зона copy-paste (CLI пишет только сюда)
  README.md              ← создаётся при первом add
  recipes/auth/login-email-password/
  • Импорты между артефактами — относительные (alias @ не нужен).
  • toolingDependencies из манифестов (напр. sass-embedded) — с --install ставятся как devDependencies.
  • Подключите @finzor-ui/common/style.css в main.ts.

--dest — родитель staging (по умолчанию <cwd>/src<dest>/finzor-ui/).

Как вызывать CLI

finzor-ui — бинарник пакета @finzor-ui/cli, не системная команда. В PATH он появляется только после установки пакета или через обёртку менеджера пакетов.

| Сценарий | Команда | | -------- | ------- | | Создать проект (папки ещё нет) | pnpm dlx @finzor-ui/cli … | | Recipes в проекте (после add -D) | pnpm finzor-ui … | | Глобально (опционально) | pnpm add -g @finzor-ui/clifinzor-ui … |

Альтернативы pnpm dlx: npx @finzor-ui/cli, yarn dlx @finzor-ui/cli.

Создать приложение

Без установки CLI — через dlx (пакет на npmjs, .npmrc проекта не нужен):

pnpm dlx @finzor-ui/cli
pnpm dlx @finzor-ui/cli create my-app
pnpm dlx @finzor-ui/cli create . --app-name "My Portal"
pnpm dlx @finzor-ui/cli create --dir . --app-name "My Portal" --yes --install
pnpm dlx @finzor-ui/cli create my-app --install
pnpm dlx @finzor-ui/cli create my-app --pro

Папка установки (<dir> или --dir) и название приложения (--app-name) разделены. Для текущей директории укажи . (в интерактивном режиме тоже можно ввести .). Без --app-name имя по умолчанию берётся из имени папки.

При --pro (или ответе «да» в мастере) создаются .npmrc (токен inline, в .gitignore), .npmrc.example, .env и .env.example. Вводите только значение токена (finzor_…), не строку FINZOR_NPM_READ_TOKEN=… из monorepo. После create — обычный pnpm install.

Версии @finzor-ui/* в новом проекте: из registry (latest на момент create, Verdaccio при --pro) с fallback на шаблон. Шаблон CLI синхронизируется с монорепо перед publish (pnpm cli:sync-template-deps).

Recipes в существующем проекте

Установите CLI как devDependency (версия фиксируется в package.json):

# при Finzor UI PRO — .npmrc создаётся через create --pro (токен в .gitignore):
@finzor-ui:registry=https://registry.finzor.dev/
//registry.finzor.dev/:_authToken=finzor_...

pnpm add -D @finzor-ui/cli

Команды из корня проекта:

pnpm finzor-ui
pnpm finzor-ui list
pnpm finzor-ui add recipe auth/login-email-password --install

Разовый запуск без add -D (из корня проекта):

pnpm dlx @finzor-ui/cli add recipe auth/login-email-password --install

Использование

Интерактивно (без аргументов — меню):

pnpm dlx @finzor-ui/cli
# или в проекте с установленным CLI:
pnpm finzor-ui
Создать приложение  →  Vue 3 + TypeScript + Vite
Рецепты             →  каталог / добавить в проект
Справка             →  pnpm dlx @finzor-ui/cli --help

Опции add recipe

| Флаг | Назначение | | ---- | ---------- | | --dest | родитель staging (default: <cwd>/src) | | --install | npm + dev deps из манифестов | | --force | перезапись внутри staging | | --dry-run | без записи |

Монорепо (maintainer)

pnpm cli add recipe auth/login-email-password --dest /tmp/demo/src --dry-run

Публикация (maintainer)

publishConfig.registry → npmjs (public). Релиз — общий pnpm release:publish (см. RELEASES.md).

Перед pack CLI автоматически:

  1. bundle-registry.mjs — recipes в tarball
  2. sync-template-deps.mjs — версии @finzor-ui/* в шаблоне create из workspace

Ручная синхронизация шаблона (нужен read-токен в .env: FINZOR_NPM_READ_TOKEN):

pnpm cli:sync-template-deps
pnpm cli:sync-template-deps:check   # CI: fail если шаблон отстаёт

Sync берёт опубликованные latest из registry (как у потребителя create --pro), не версии workspace.

Перенос в свою структуру

CLI не отслеживает, куда вы перенесли код. Повторный add снова кладёт в finzor-ui/ — смержите вручную.