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

ui-thing

v0.4.1

Published

CLI used to add Nuxt components to a project

Readme

UI Thing CLI

Cover Image

A CLI for adding UI Thing components to your Nuxt project. Pick only the components you need — no bloat, no lock-in.

Credits

Thanks to the maintainers of all third-party libraries used in this project.

💸 Support

If you find this useful 😊


Getting Started

1. Create a Nuxt project

npx nuxi@latest init my-app
cd my-app

2. Run the init command

npx ui-thing@latest init

This sets up TailwindCSS, installs core dependencies, writes the theme CSS, and saves a ui-thing.config.ts to your project.

3. Start adding components

npx ui-thing@latest add button card dialog   # by name
npx ui-thing@latest add                      # or pick from a list

Scripts, CI and AI agents

Every step can run without prompts:

npx nuxi@latest init my-app --template minimal --packageManager bun --no-install
cd my-app && bun install
npx ui-thing@latest init --yes
npx ui-thing@latest add button card vee-input --yes
npx ui-thing@latest theme rose --yes
npx ui-thing@latest block BlockHero1 --yes
npx ui-thing@latest prettier --yes
npx ui-thing@latest shortcuts
npx ui-thing@latest mcp init --client claude --yes

Read-only commands never prompt and have --json output for scripts and agents: info, list, view, diff, block --list, registry list/search, add --dry-run and update --dry-run. JSON goes to stdout and nothing else does, so you can pipe it straight into a parser. AI agents can use the UI Thing agent skill (npx skills add https://github.com/BayBreezy/ui-thing --skill uithing) and the MCP server.


Package Manager Support

The CLI works with all major package managers. init asks which one you use, or detects it from your lockfile when you pass --yes.

| Manager | Supported | | ------- | --------- | | npm | ✅ | | yarn | ✅ | | pnpm | ✅ | | bun | ✅ | | deno | ✅ |


Commands

init

npx ui-thing@latest init

Bootstraps your Nuxt project for UI Thing. This command:

  • Installs all core dependencies (reka-ui, tailwind-variants, @nuxt/fonts, @vueuse/nuxt, etc.)
  • Writes the Tailwind CSS theme file
  • Registers required Nuxt modules
  • Creates ui-thing.config.ts with your chosen paths and package manager

Options

| Flag | Description | | ---------------------------- | ------------------------------------------------------------------------------------------------------------------ | | -y, --yes | Skip all prompts and use defaults. Detects your package manager from your lockfile and skips the Prettier question | | -f, --force | Overwrite ui-thing.config.ts if it already exists | | -n, --nuxtVersion <number> | Set the Nuxt version instead of detecting it from package.json |

init also installs TypeScript 6 (typescript@^6). TypeScript 7 has no compiler API, so Vue cannot compile components with it yet.


info

npx ui-thing@latest info          # human readable
npx ui-thing@latest info --json   # machine readable

Shows the project's setup without changing anything: ui-thing and Nuxt versions, whether UI Thing is initialized, the configured and detected package manager, TypeScript and Tailwind versions, the config paths, installed components and registry items, the Nuxt modules in nuxt.config, the available registries, and warnings for known problems (for example TypeScript 7, a missing Tailwind CSS file or a missing color-mode module).


add

npx ui-thing@latest add [componentNames...]

Adds one or more components to your project. If no names are passed, an interactive search lets you pick from the full library.

# interactive selection
npx ui-thing@latest add

# add specific components
npx ui-thing@latest add button input popover

# add every component at once
npx ui-thing@latest add --all

After a component is added, the CLI prints a link to its documentation page.

Options

| Flag | Description | | ------------------------ | ------------------------------------------------------------------------------------------------------------ | | -a, --all | Add every available component in one shot | | --skip-config | Add components without a ui-thing.config.ts file. Auto-detects the Nuxt version and uses its default paths | | --package-manager <pm> | Set the package manager when using --skip-config (skips the PM prompt) | | -y, --yes | Skip confirmation prompts (uses yup for vee-validate components) | | --validator <name> | Schema library to install for vee-validate components: yup, zod, joi or valibot | | --dry-run | Show the files, packages and Nuxt modules that would be added, without writing anything | | --json | With --dry-run: print the plan as JSON |

npx ui-thing@latest add button dialog vee-input --dry-run          # what would happen
npx ui-thing@latest add button dialog vee-input --dry-run --json   # the same, as JSON

add resolves the whole dependency tree (components used by components used by components), installs packages before registering Nuxt modules, and also installs any package a component imports that its metadata forgot to list.

--skip-config example

Useful when you just want the files without committing to the full config workflow:

# prompts for package manager, uses Nuxt 4 defaults
npx ui-thing@latest add popover --skip-config

# fully non-interactive
npx ui-thing@latest add popover --skip-config --package-manager bun

Note: Shared utility files installed by one component are also used by others. Removing them manually may break components that depend on them.


Installing from registries

add also installs components from any shadcn-style registry (the registry-item.json format used by shadcn-ui and shadcn-vue). Files are placed using your ui-thing.config.ts paths, npm dependencies are installed, and css/cssVars/envVars are merged into your project.

# a registry item URL
ui-thing add https://nxui.geoql.in/r/fluid-glass.json

# a namespaced item (@vue-bits and @nxui are built in)
ui-thing add @vue-bits/HoloMosaic

# skip the confirmation prompts
ui-thing add @nxui/fluid-glass --yes

Registry code is remote code, so add lists every file and package before writing anything. Paths that escape the project (.., absolute paths) are refused. If an item imports cn from ~/lib/utils and your project has none, a standard cn (clsx + tailwind-merge) is created at <srcDir>/lib/utils.ts.

Installed registry items are recorded in ui-thing.lock.json, which list --installed, update and remove use.

Browse and configure registries:

ui-thing registry list                 # configured registries
ui-thing registry list @nxui           # every item in a registry
ui-thing registry search glass         # search all configured registries
ui-thing registry search holo @vue-bits
ui-thing registry search glass --json  # JSON with install refs, for scripts and agents
ui-thing registry add-namespace @acme https://acme.dev/r/{name}.json

Namespaces live under registries in ui-thing.config.ts. A value is a URL template containing {name}, or an object with url, headers and params; ${ENV_VAR} references are expanded:

registries: {
  "@acme": { url: "https://acme.dev/r/{name}.json", headers: { Authorization: "Bearer ${ACME_TOKEN}" } },
}

list

npx ui-thing@latest list

Lists all components available in the UI Thing library. With --installed, it also lists items you added from registries.

# show all available components
npx ui-thing@latest list

# show only components already installed in your project
npx ui-thing@latest list --installed

Options

| Flag | Description | | ----------------- | --------------------------------------------------------------------- | | -i, --installed | Filter to components whose files are already present in your project | | --json | Print value, name, source and docs for each component as JSON |


view

npx ui-thing@latest view button                  # a component
npx ui-thing@latest view BlockHero1              # a block
npx ui-thing@latest view @vue-bits/HoloMosaic    # a registry item
npx ui-thing@latest view button dialog --json

Prints the source of every file, where add would put it, and the packages, Nuxt modules and components it needs, without installing anything.


diff

npx ui-thing@latest diff            # everything installed
npx ui-thing@latest diff button     # one component
npx ui-thing@latest diff --json     # status and patch per file

Compares your installed components and registry items with the latest upstream version and prints a unified diff of every file that differs (- is your copy, + is upstream). Use it before update, which overwrites without merging.


update

npx ui-thing@latest update [componentNames...]

Re-fetches component files from the API and overwrites them with the latest version, without asking. Commit your local edits first, or check what would change with --dry-run (add --json for machine output) or ui-thing diff. Items installed from a registry are re-fetched from the source recorded in ui-thing.lock.json.

# update specific components
npx ui-thing@latest update button input

# pick from installed components interactively
npx ui-thing@latest update

remove

npx ui-thing@latest remove [componentNames...]

Deletes installed component files from your project (component files, utils, and composables). Prompts for confirmation before deleting anything. For registry items, only the files recorded in ui-thing.lock.json are deleted.

# remove specific components
npx ui-thing@latest remove button

# pick from installed components interactively
npx ui-thing@latest remove

Note: Shared utility files used by multiple components will be deleted. Any other components that depend on them may stop working and will need to be re-added.


block

npx ui-thing@latest block [blockNames...]

Adds pre-built UI blocks (page sections such as hero, pricing, dashboards, auth and settings). Run it with no names to pick from a list, or pass names to add them directly. The CLI also adds the UI Thing components the blocks use and installs the npm packages they import, then prints the tag to use (for example <BlocksHeroBlockHero1 />).

# browse
npx ui-thing@latest block --list                      # categories and counts
npx ui-thing@latest block --list --category pricing   # blocks in one category
npx ui-thing@latest block --json --category hero      # JSON for scripts and AI agents

# add by name (BlockHero1, "Hero 1" and hero-1 all work)
npx ui-thing@latest block BlockHero1 BlockPricing2
npx ui-thing@latest block BlockHero1 --dir app/components/Marketing --yes

Options

| Flag | Description | | --------------------------- | -------------------------------------------------------------------------------- | | -l, --list | List categories, or the blocks in --category, and exit | | --json | Print the block catalog (or one --category) as JSON and exit | | -c, --category <category> | Filter blocks by category | | -d, --dir <path> | Folder to write the blocks to (default app/components/Blocks) | | -y, --yes | No prompts: default folder, skip existing files, install components and packages |


theme

npx ui-thing@latest theme

Swaps your project's color theme. Overwrites the Tailwind CSS theme file with the chosen theme.

npx ui-thing@latest theme rose          # pass the name to skip the picker
npx ui-thing@latest theme rose --yes    # also skip the overwrite confirmation

prettier

npx ui-thing@latest prettier

Adds a Prettier configuration pre-configured for Tailwind CSS class sorting and installs prettier, prettier-plugin-tailwindcss and @ianvs/prettier-plugin-sort-imports. Safe to run on an existing project — it will offer to merge with your current .prettierrc if one exists. It does not reformat your files; run npx prettier --write . when you want to. It never asks for a package manager (it uses your config or lockfile, or --package-manager). With --yes it merges into an existing .prettierrc without asking.


shortcuts

npx ui-thing@latest shortcuts

Adds a shortcuts.ts file to your composables folder with defineShortcuts (register keyboard shortcuts) and useKbd. It installs @vueuse/nuxt only if it is missing and registers the module. It never prompts.


mcp init

npx ui-thing@latest mcp init                              # pick your editor
npx ui-thing@latest mcp init --client claude --yes        # writes .mcp.json
npx ui-thing@latest mcp init --client cursor --yes        # writes .cursor/mcp.json
npx ui-thing@latest mcp init --client vscode --yes        # writes .vscode/mcp.json
npx ui-thing@latest mcp init --client codex               # prints the command to run
npx ui-thing@latest mcp init --client claude --url http://localhost:3000/mcp

Connects your AI editor to the UI Thing MCP server. Project-level configs are merged, so other servers are kept. Codex, Windsurf and Claude Desktop keep MCP servers in a global file, so the CLI prints the exact command or snippet instead of editing files in your home folder.


Configuration

Running init creates a ui-thing.config.ts file at the root of your project:

export default {
  theme: "zinc",
  tailwindCSSLocation: "app/assets/css/tailwind.css",
  componentsLocation: "app/components/Ui",
  composablesLocation: "app/composables",
  pluginsLocation: "app/plugins",
  utilsLocation: "app/utils",
  force: true,
  useDefaultFilename: true,
  packageManager: "bun",
  // optional: third-party registries for `ui-thing add @namespace/item`
  registries: {
    "@acme": "https://acme.dev/r/{name}.json",
  },
};

| Key | Description | | --------------------- | ---------------------------------------------------------------------------------------------- | | theme | Color theme (zinc, slate, rose, blue, etc.) | | tailwindCSSLocation | Path to your Tailwind CSS file | | componentsLocation | Where component .vue files are written | | composablesLocation | Where composable files are written | | pluginsLocation | Where plugin files are written | | utilsLocation | Where utility files are written | | force | Overwrite existing files without prompting | | useDefaultFilename | Skip per-file path prompts when adding components | | packageManager | Package manager used for installing dependencies | | registries | Optional. Extra shadcn-style registries by @namespace (@vue-bits and @nxui are built in) |


Prose components

The prose command was removed in v0.4.0. Prose components for Nuxt Content docs (callouts, steps, tabs and more) ship with the docd Nuxt layer: npx create-docd my-docs.