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

hisui-ui

v0.1.2

Published

React component registry. Ark UI + Tailwind v4 で組んだ primitive を shadcn 方式 (copy-paste) で配布する CLI.

Readme

Hisui UI

React component registry。 Ark UI + Tailwind v4 で組んだ 63 個の primitive を shadcn 方式 (copy-paste) で consumer project に配布する。

  • 63 primitive + 5 foundations (Colors / Typography / Spacing / Shadow / Radius)
  • Next.js (App Router) + Vite 両対応 (framework 自動判定)
  • "use client" 自動付与: 必要な primitive にのみ注入済 (server-safe 18 個は plain)
  • 依存も自動 install (pnpm / yarn / npm / bun 自動検出)

Quick start

任意の Next.js または Vite project で:

# 1. 初期化 (hisui.json + tokens + lib/utils + lib/slot)
npx hisui-ui init

# 2. primitive を追加 (registry dep + npm dep 自動解決)
npx hisui-ui add button dialog menu

# 全部入れたい時
npx hisui-ui add --all

Commands

hisui init

  1. package.json から framework (next / vite) を検出
  2. tsconfig.jsonpaths から alias を検出 (default @/*)
  3. hisui.json を生成
  4. src/lib/utils.ts, src/lib/slot.ts を書き出し
  5. token block 255 行を consumer の global css に append (/* hisui-ui:tokens:start */ ... :end */ で囲む、 idempotent)
  6. base deps を install (tailwindcss, @tailwindcss/vite, clsx, tailwind-merge, @fontsource-variable/wix-madefor-text)

hisui add <name...>

  1. registry/<name>.json を fetch
  2. registryDependencies を再帰展開 (重複除去)
  3. 各 file を fetch + import alias を consumer 設定に書き換えて書き出し
  4. 累積した npm deps を 1 回でまとめて install

hisui.json

init で生成される consumer 側 config:

{
  "$schema": "https://raw.githubusercontent.com/ashunar0/hisui/main/registry/schema.json",
  "framework": "next",
  "css": "src/app/globals.css",
  "aliases": {
    "ui": "@/components/ui",
    "lib": "@/lib"
  },
  "paths": {
    "ui": "src/components/ui",
    "lib": "src/lib"
  },
  "packageManager": "pnpm"
}

| key | 用途 | |---|---| | framework | next | vite (auto-detected) | | css | token を append する global css の path | | aliases.ui / aliases.lib | 生成 file 内の import に使う alias | | paths.ui / paths.lib | file 配置先の filesystem path | | packageManager | install 時に使う pm |

手動編集して別 alias / 別 path に変えても OK。

環境変数

  • HISUI_REGISTRY — registry base URL を上書き (default: https://raw.githubusercontent.com/ashunar0/hisui/main)。 ローカル開発時は file:///path/to/hisui で逃せる

Available primitives

全 63 個。 各 primitive の demo / props は dev で pnpm dev/docs で確認できる。

Accordion / Alert / AlertDialog / AspectRatio / Avatar / Badge / Breadcrumb / Button / Card / Carousel / Chart / Checkbox / Clipboard / Collapsible / ColorPicker / Combobox / Command / DatePicker / Dialog / Drawer / Editable / Empty / Field / Fieldset / FileUpload / Heading / HoverCard / IconButton / Input / Kbd / Listbox / Menu / NumberInput / Pagination / PasswordInput / PinInput / Popover / Progress / QrCode / RadioGroup / RatingGroup / ScrollArea / SegmentGroup / Select / Separator / Sidebar / Skeleton / Slider / Spinner / Splitter / Stack / Steps / Switch / Table / Tabs / TagsInput / Textarea / Toast / Toggle / ToggleGroup / Toolbar / Tooltip / TreeView

Repository layout

hisui/
├── bin/hisui.mjs              CLI (Node 標準 API のみ)
├── registry/                  shadcn-compatible manifest (機械生成)
│   ├── index.json             全 primitive 一覧
│   ├── init.json              base files manifest
│   └── <name>.json            各 primitive の manifest
├── scripts/
│   ├── build-registry.mjs     registry JSON 生成
│   └── inject-use-client.mjs  必要 primitive に "use client" 注入
└── src/
    ├── lib/{utils,slot}.ts    base utilities
    ├── index.css              token 全 255 行
    └── components/ui/*.tsx    全 63 primitive (source of truth)

License

MIT