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

nexus-ui-cli

v0.0.3

Published

CLI for installing Nexus UI components via the shadcn registry

Downloads

31

Readme

Nexus UI CLI

A command-line interface for installing Nexus UI components — a component library built on top of shadcn/ui for building AI-powered chat interfaces.

Overview

Nexus UI provides composable, copy-paste React components designed for AI applications: prompt inputs, model selectors, suggestion chips, and more. The CLI makes it easy to add these components to your Next.js project.

Installation

You can use the Nexus UI CLI directly with npx, or install components via the shadcn CLI:

# Use directly (recommended)
npx nexus-ui-cli@latest

# Or using shadcn CLI
npx shadcn@latest add https://nexus-ui.dev/api/registry/prompt-input.json

Prerequisites

Before using Nexus UI, ensure your project meets these requirements:

  • Node.js 18 or later
  • Next.js project
  • shadcn/ui initialized in your project (npx shadcn@latest init)
  • Tailwind CSS configured (Nexus UI supports CSS Variables mode)

Usage

Install All Components

Install all available Nexus UI components at once:

npx nexus-ui-cli@latest

This command will:

  • Fetch the component registry from nexus-ui.dev
  • Install all Nexus UI components to your configured components directory
  • Add necessary dependencies (e.g. textarea, scroll-area) via shadcn

Install Specific Components

Install individual components using the add command:

npx nexus-ui-cli@latest add <component-name>

Examples:

# Install the prompt input component
npx nexus-ui-cli@latest add prompt-input

# Install the model selector component
npx nexus-ui-cli@latest add model-selector

# Install multiple components
npx nexus-ui-cli@latest add prompt-input suggestions model-selector

Alternative: Use with shadcn CLI

You can also install components using the standard shadcn/ui CLI:

# Install a specific component
npx shadcn@latest add https://nexus-ui.dev/api/registry/prompt-input.json
npx shadcn@latest add https://nexus-ui.dev/api/registry/suggestions.json
npx shadcn@latest add https://nexus-ui.dev/api/registry/model-selector.json

Or add the registry to your components.json and use the namespace:

npx shadcn@latest add @nexus-ui/prompt-input

Available Components

| Component | Description | | --------------- | ----------------------------------------------------------------- | | prompt-input | Composable chat input with auto-resizing textarea and action slots | | model-selector| Dropdown for selecting AI models with radio groups and sub-menus | | suggestions | Prompt suggestion chips for guiding user input |

Quick Start Example

After installing components, you can use them in your React application:

"use client";

import { Button } from "@/components/ui/button";
import PromptInput, {
  PromptInputTextarea,
  PromptInputActions,
  PromptInputActionGroup,
  PromptInputAction,
} from "@/components/nexus-ui/prompt-input";
import { ArrowUp, Paperclip } from "lucide-react";

export default function ChatInput() {
  return (
    <PromptInput>
      <PromptInputTextarea />
      <PromptInputActions>
        <PromptInputActionGroup>
          <PromptInputAction asChild>
            <Button variant="ghost" size="icon">
              <Paperclip />
            </Button>
          </PromptInputAction>
        </PromptInputActionGroup>
        <PromptInputActionGroup>
          <PromptInputAction asChild>
            <Button size="sm">
              <ArrowUp />
            </Button>
          </PromptInputAction>
        </PromptInputActionGroup>
      </PromptInputActions>
    </PromptInput>
  );
}

How It Works

The Nexus UI CLI:

  1. Detects your package manager (npm, pnpm, yarn, or bun) automatically
  2. Fetches component registry from https://nexus-ui.dev/api/registry/registry.json
  3. Installs components using the shadcn/ui CLI under the hood
  4. Adds dependencies and integrates with your existing shadcn/ui setup

Components are installed to your configured shadcn/ui components directory (typically @/components/nexus-ui/) and become part of your codebase, allowing for full customization.

Configuration

Nexus UI uses your existing shadcn/ui configuration. Components will be installed to the directory specified in your components.json file.

Links