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

nextjs-shadcn-cli

v1.0.3

Published

CLI tool to quickly scaffold Next.js projects with TypeScript, Tailwind CSS, shadcn/ui, and optional packages pre-configured

Readme

nextjs-shadcn-cli

Quickstart CLI for creating Next.js projects with Tailwind CSS, shadcn/ui, and lucide-react pre-configured.

A streamlined CLI tool that scaffolds a production-ready Next.js application with a beautiful UI component library and essential developer tools.

⚠️ Note: This is a CLI tool. Don't install it globally or in your project. Use npx to run it directly (see Quick Start below).

Features

  • ⚡️ Next.js 15 - Latest App Router with Server Components
  • 🎨 shadcn/ui - Beautiful, accessible components built with Radix UI
  • 🎯 TypeScript - Full type safety out of the box
  • 💅 Tailwind CSS - Utility-first CSS framework
  • 🎭 lucide-react - Beautiful icon library
  • 📦 Optional packages - axios, zod, react-hook-form, and more
  • 🚀 Auto-detection - Automatically detects your package manager (npm, yarn, pnpm, bun)

Quick Start

Just run this command - no installation needed:

npx create-nextjs-shadcn my-app
cd my-app
npm run dev

That's it! The CLI will guide you through the setup.

Usage

The recommended way to use this tool is with npx - it runs the latest version without installing anything:

npx create-nextjs-shadcn my-project

You can also use it without specifying a project name, and the CLI will prompt you:

npx create-nextjs-shadcn

What's Included

Base Stack

  • Next.js 15 with App Router
  • TypeScript for type safety
  • Tailwind CSS for styling
  • ESLint for code quality
  • shadcn/ui with Button and Card components pre-installed
  • lucide-react for icons
  • clsx for conditional class names

Optional Packages

During setup, you can select additional packages:

  • axios - Promise-based HTTP client
  • zod - TypeScript-first schema validation
  • react-hook-form - Performant form validation

Project Structure

my-app/
├── src/
│   ├── app/
│   │   ├── layout.tsx    # Root layout (hydration-optimized)
│   │   ├── page.tsx      # Home page with example components
│   │   └── globals.css   # Global styles
│   └── components/
│       └── ui/           # shadcn/ui components
├── public/               # Static assets
└── package.json

What Gets Generated

The CLI creates a fully-configured Next.js project with:

  1. Professional Landing Page - A modern, responsive home page showcasing:

    • Gradient hero section
    • Feature cards with icons
    • Example buttons and UI components
    • Responsive grid layout
  2. Fixed Hydration Issues - Pre-configured to avoid common Next.js hydration warnings

  3. Developer-Friendly Setup - All configurations done for you:

    • TypeScript paths configured (@/*)
    • Tailwind CSS configured with shadcn/ui
    • ESLint ready to use
    • Components ready to import

Requirements

  • Node.js 18.17 or later
  • npm, yarn, pnpm, or bun

Examples

Create a project with a specific name:

npx create-next-shadcn awesome-project

Development

To work on this CLI tool:

git clone https://github.com/your-username/create-next-shadcn-cli.git
cd create-next-shadcn-cli
npm install
npm link

Now you can run create-next-shadcn locally.

How It Works

  1. Detects your package manager automatically
  2. Prompts for project name and optional packages
  3. Creates Next.js app with TypeScript and Tailwind
  4. Installs dependencies
  5. Adds shadcn/ui and configures components
  6. Generates a professional starter page
  7. Fixes common issues (hydration warnings)

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.


Built with ❤️ for the Next.js community