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

@vedantlavale/create-next-shadcn

v1.0.0

Published

The ultimate CLI for creating Next.js applications with Shadcn UI

Readme

create-next-shadcn

TypeScript Bun

The ultimate CLI for creating Next.js applications with Shadcn UI


✨ Overview

create-next-shadcn is an interactive CLI tool that streamlines the process of setting up modern Next.js applications with Shadcn UI. It combines the power of Next.js with the beauty of Shadcn UI components, providing a seamless development experience from project initialization to component installation.

🚀 Features

  • 🎯 Interactive Setup: Guided prompts for all configuration options
  • ⚡ Modern Stack: Next.js 14+ with App Router and Turbopack support
  • 🎨 Shadcn UI Integration: Automatic installation and configuration
  • 🔧 Flexible Configuration: TypeScript, ESLint, Tailwind CSS, and more
  • 📦 Package Manager Support: npm, yarn, and pnpm
  • 🎭 Beautiful Terminal UI: Colorful, boxed output with clear instructions
  • 🛡️ Error Handling: Graceful cancellation and error recovery

📦 Installation

Global Installation (Recommended)

# Using npm
npm install -g create-next-shadcn

# Using yarn
yarn global add create-next-shadcn

# Using pnpm
pnpm add -g create-next-shadcn

# Using bun
bun add -g create-next-shadcn

Local Installation

# Clone the repository
git clone https://github.com/vedantlavale/create-next-shadcn.git
cd create-next-shadcn

# Install dependencies
bun install

# Make executable
chmod +x cli.ts

🛠️ Usage

Basic Usage

# Run globally (after installation)
create-next-shadcn

# Run locally
bun run cli.ts

# Or directly with bun
bun cli.ts

Interactive Setup

The CLI will guide you through a series of questions to configure your project:

  1. Project Name: Enter your desired project name
  2. TypeScript: Choose whether to use TypeScript (recommended)
  3. ESLint: Enable ESLint for code quality
  4. Tailwind CSS: Include Tailwind CSS for styling
  5. Source Directory: Choose between src/ or root directory structure
  6. App Router: Use Next.js 13+ App Router (recommended)
  7. Turbopack: Enable Turbopack for faster builds
  8. Import Alias: Customize the import alias (default: @/*)
  9. Shadcn UI: Install and configure Shadcn UI (requires Tailwind)
  10. Package Manager: Choose package manager for Shadcn installation

Example Output

╭────────────────────────────────────────────────────────────╮
│ What is your project named?                                │
╰────────────────────────────────────────────────────────────╯

my-awesome-app

╭────────────────────────────────────────────────────────────╮
│ Would you like to use TypeScript? (Y/n)                    │
╰────────────────────────────────────────────────────────────╯

Yes

[... more prompts ...]

╭────────────────────────────────────────────────────────────╮
│ SUCCESS Your Next.js app is ready!                        │
│                                                           │
│ ┌───────────────────────────────────────────┐             │
│ │ 🚀 QUICK START                              │             │
│ │    01 cd my-awesome-app                      │             │
│ │    02 npm run dev                           │             │
│ └───────────────────────────────────────────┘             │
│                                                           │
│ [... more sections ...]                                   │
╰────────────────────────────────────────────────────────────╯

⚙️ Configuration Options

| Option | Description | Default | Choices | |--------|-------------|---------|---------| | Project Name | Your application name | - | Any valid name | | TypeScript | Enable TypeScript support | Yes | Yes/No | | ESLint | Enable ESLint linting | Yes | Yes/No | | Tailwind CSS | Include Tailwind CSS | Yes | Yes/No | | Source Directory | Use src/ directory | No | Yes/No | | App Router | Use Next.js App Router | Yes | Yes/No | | Turbopack | Enable Turbopack bundler | Yes | Yes/No | | Import Alias | Custom import alias | @/* | Any alias | | Shadcn UI | Install Shadcn UI | Yes | Yes/No | | Package Manager | Package manager for Shadcn | npm | npm/yarn/pnpm |

📁 Project Structure

After running create-next-shadcn, you'll get a fully configured Next.js project:

my-awesome-app/
├── app/                    # App Router directory (if selected)
│   ├── layout.tsx         # Root layout
│   ├── page.tsx           # Home page
│   └── globals.css        # Global styles
├── components/            # Shadcn UI components (if installed)
│   ├── ui/               # UI component library
│   └── ...
├── lib/                  # Utility functions
│   └── utils.ts          # Utility functions
├── public/               # Static assets
├── package.json          # Dependencies and scripts
├── tailwind.config.js    # Tailwind configuration
├── components.json       # Shadcn UI configuration
└── next.config.js        # Next.js configuration

🎨 Adding Components

Once your project is set up with Shadcn UI, you can easily add components:

# Navigate to your project
cd my-awesome-app

# Add a component
npx shadcn-ui@latest add button

# Add multiple components
npx shadcn-ui@latest add button card input

🔧 Development

Prerequisites

Local Development

# Clone the repository
git clone https://github.com/vedantlavale/create-next-shadcn.git
cd create-next-shadcn

# Install dependencies
bun install

# Run the CLI
bun run cli.ts

# Or for development testing
bun run index.ts

Building

# Build the project
bun run build

# Create executable
bun build cli.ts --outdir ./dist

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/your-username/create-next-shadcn.git
  3. Install dependencies: bun install
  4. Make your changes
  5. Test your changes: bun run cli.ts
  6. Submit a pull request

Issues and Feature Requests

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support


Made with ❤️ by Vedant

⭐ Star us on GitHub • 📖 Read the docs • 🚀 Get started