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

@llui/cli

v0.2.0

Published

LLui CLI — add registry components (`llui add button`) to an LLui app, shadcn-style

Readme

@llui/cli

llui add <item> — copy registry components into your LLui app.

This is shadcn/ui's distribution model: components are source you own, not a dependency you import. It fits LLui better than it fits React, because the copied file is compiled by your @llui/vite-plugin — so it gets view lowering, the compile-time lint rules, and the agent metadata ($ms / $ss / __lluiVariants) that a precompiled library cannot give you.

pnpm add -D @llui/cli
pnpm llui init
pnpm llui list
pnpm llui add button card dialog

Then import the tokens in your app CSS — not styles/theme.css:

@import 'tailwindcss';
@import '@llui/components/styles/tokens.css';
@import '@llui/components/styles/tokens-dark.css';

theme.css is the opt-in baseline stylesheet. Its [data-scope][data-part] rules are unlayered, and unlayered CSS beats @layer utilities — importing it alongside registry components makes every one of their classes lose, with nothing to tell you.

Commands

| | | | -------------------- | ----------------------------------------------------------------------------------------- | | llui init | Write components.json. --ui/--lib set target dirs, --alias sets an import prefix. | | llui add <item...> | Copy items and their registryDependencies. --overwrite, --dry-run. | | llui list | Show what the registry offers. |

All commands accept --registry <url|path> and --cwd <dir>.

components.json

{
  "registry": "https://llui.dev/r",
  "paths": { "ui": "src/components/ui", "lib": "src/lib" }
}

Add "aliases": { "ui": "@/components/ui", "lib": "@/lib" } only if your tsconfig declares those paths. Without it the CLI rewrites the registry's @/lib/utils import to a relative specifier computed from where the file landed. That is the default, not a fallback: an alias the project does not declare produces a file that type-checks nowhere, which is a worse outcome than a longer path.

Safety

  • llui add never overwrites. The copied file is your source and is expected to have been edited; a second add reports it as skipped. --overwrite is the opt-in.
  • Registry file targets are validated at load. A registry is remote third-party content, so .. and absolute paths are rejected before anything is written.
  • Unknown registry keys are ignored, so a registry that is ahead of your CLI still installs rather than failing closed.

Using a different registry

The registry format is a subset of shadcn's registry-item.json. Point at any host, a local directory, or a checkout:

llui add button --registry ./registry
llui add button --registry https://example.com/r

A local source may leave file contents on disk (files[].path); a remote one must serve them inlined (files[].content), which scripts/build-registry.mjs produces.