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

virtual-ui-cli

v1.0.5

Published

CLI for Virtual UI - Add beautiful components to your React project

Readme

Virtual UI CLI

A powerful CLI to add beautiful and interactive components to your React project, inspired by shadcn.

🚀 Installation

# Install globally
npm install -g virtual-ui-cli

# Or use with npx (recommended)
npx virtual-ui@latest init

📋 Commands

init

Initializes Virtual UI in your project.

npx virtual-ui init

Options:

  • -y, --yes - Skips confirmations and uses default configuration

What it does:

  • ✅ Automatically detects your framework (Next.js, React, etc.)
  • ✅ Sets up Tailwind CSS if needed
  • ✅ Installs required dependencies
  • ✅ Creates configuration file
  • ✅ Sets up import aliases
  • ✅ Creates component directories

add

Adds components to your project.

# Add a specific component
npx virtual-ui add parallax-card

# Add multiple components
npx virtual-ui add parallax-card button-glow

# Interactive mode (choose from list)
npx virtual-ui add

Options:

  • -y, --yes - Skips confirmations
  • -o, --overwrite - Overwrites existing files
  • -c, --cwd <path> - Working directory
  • -p, --path <path> - Custom path for components

What it does:

  • ✅ Installs dependencies automatically
  • ✅ Creates component files
  • ✅ Updates Tailwind configuration if needed
  • ✅ Adds global CSS if needed
  • ✅ Keeps project structure organized

list

Lists all available components.

npx virtual-ui list

🎨 Available Components

ParallaxCard

Interactive card with 3D parallax effects and multiple visual variants.

Dependencies: motion, clsx

Variants:

  • default - Clean and minimal design
  • glass - Frosted glass effect
  • gradient - Gradient background
  • shadow - Pronounced shadows
  • neon - Bright neon borders

Usage example:

import { ParallaxCard } from '@/components/ui/parallax-card';

function MyComponent() {
  return (
    <ParallaxCard
      title="My Card"
      description="An amazing parallax effect card"
      variant="glass"
      parallaxSpeed={15}
      onClick={() => console.log('Clicked!')}
    />
  );
}

⚙️ Configuration

The CLI creates a virtual-ui.json file at your project root:

{
  "style": "default",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "app/globals.css",
    "cssVariables": true,
    "baseColor": "slate"
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui"
  }
}

Configuration Options

| Option | Type | Description | Default | |--------|------|-------------|---------| | style | string | Visual style (default | new-york) | "default" | | rsc | boolean | Use React Server Components | true | | tsx | boolean | Use TypeScript | true | | tailwind.config | string | Tailwind config path | "tailwind.config.js" | | tailwind.css | string | Global CSS path | "app/globals.css" | | tailwind.cssVariables | boolean | Use CSS variables | true | | aliases.components | string | Components alias | "@/components" | | aliases.utils | string | Utils alias | "@/lib/utils" | | aliases.ui | string | UI components alias | "@/components/ui" |

🛠️ Supported Frameworks

  • Next.js (App Router & Pages Router)
  • React (Create React App, Vite)
  • Remix
  • Astro
  • Gatsby

📦 Technologies

  • React - UI Framework
  • TypeScript - Static typing
  • Tailwind CSS - CSS utilities
  • Framer Motion - Smooth animations
  • Clsx - Conditional classes

🎯 Why use Virtual UI?

🚀 Productivity

  • Add components in seconds
  • Zero manual configuration
  • Automatic project detection

🎨 Quality

  • Tested and accessible components
  • Smooth and performant animations
  • Modern and responsive design

🔧 Flexibility

  • Fully customizable
  • TypeScript out-of-the-box
  • Multiple visual variants

📈 Scalability

  • Clear organizational structure
  • Smart import aliases
  • Automatic dependency management

📚 Complete Examples

Next.js Project

# 1. Create a Next.js project
npx create-next-app@latest my-app --typescript --tailwind --eslint

# 2. Navigate to the project
cd my-app

# 3. Initialize Virtual UI
npx virtual-ui init

# 4. Add components
npx virtual-ui add parallax-card

Using components

// app/page.tsx
import { ParallaxCard } from '@/components/ui/parallax-card';

export default function Home() {
  return (
    <main className="container mx-auto py-12">
      <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
        <ParallaxCardimport { ParallaxCard } from '@/components/ui/parallax-card';

export default function Home() {
  return (
    <main className="container mx-auto py-12">
      <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
        <ParallaxCard

          title="Product 1"
          description="Product description with parallax effect"
          image="https://example.com/image1.jpg"
          variant="glass"
          onClick={() => console.log('Product 1 clicked')}
        />
        
        <ParallaxCard
          title="Product 2"
          description="Another amazing product"
          variant="gradient"
          parallaxSpeed={20}
        >
          <div className="flex gap-2 mt-4">
            <button className="px-4 py-2 bg-blue-500 text-white rounded">
              Buy
            </button>
            <button className="px-4 py-2 border border-gray-300 rounded">
              See More
            </button>
          </div>
        </ParallaxCard>
      </div>
    </main>
  );
}

🔄 Migration

From shadcn

If you already use shadcn, you can easily migrate:

# Your shadcn components keep working
# Just add Virtual UI components
npx virtual-ui add parallax-card

From traditional libraries

# Remove old dependencies
npm uninstall old-ui-library

# Initialize Virtual UI
npx virtual-ui init

# Add components as needed
npx virtual-ui add parallax-card

🤝 Contributing

Contributions are welcome! To add new components:

  1. Fork the repository
  2. Create a feature branch
  3. Add the component to the registry
  4. Create tests and documentation
  5. Open a Pull Request

📄 License

MIT © yuribodo

🆘 Support


Made with ❤️ for the React community