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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rachitbharadwaj/create-next-app

v2.2.0

Published

A CLI tool to create and configure a Next.js project with custom setup.

Downloads

143

Readme

@rachitbharadwaj/create-next-app

A CLI tool to create a fully customized Next.js application quickly and easily. This package sets up a Next.js project preconfigured with Tailwind CSS, Shadcn, TypeScript, and custom folder structures, saving you time and effort.

Opensource Project

Visit the GitHub Repository to access the source code, report issues, or contribute:

If you find this project useful, please ⭐️ star the repository: GitHub stars

Table of Contents


Installation

You don’t need to install this tool globally! Use it directly via npx:

npx @rachitbharadwaj/create-next-app <project-name>

Replace <project-name> with the desired name for your new application. If no name is provided, it defaults to my-next-app.


Usage

After running the command, follow these steps:

  1. Navigate to your new project directory:

    cd <project-name>
  2. Start the development server:

    npm run dev
  3. Open your browser and visit:

    http://localhost:3000

Enjoy your ready-to-go Next.js app! 🚀


Features

  • Next.js Framework: The latest stable version with best practices.
  • TypeScript Support: Preconfigured for type-safe development.
  • Tailwind CSS Integration: Styled out of the box with Tailwind CSS.
  • Shadcn Integration: Preinstalled Shadcn components with Zinc color and CSS variables enabled.
  • Custom Folder Structure: Organized to fit modern development workflows.
  • Removed .git folder: Allows you to initialize your own Git repository.

Customization

Predefined Configurations:

  1. Tailwind CSS:

    • Fully customized tailwind.config.ts for extended screen sizes, colors, and plugins like tailwindcss-animate.
  2. Shadcn Setup:

    • Default styles with Zinc as the base color.
    • CSS variables for theming pre-enabled.
  3. Custom Folder Structure:

    • Adds a (main) folder inside the app directory with:
      • layout.tsx: Default layout for your pages.
      • page.tsx: Starter page with placeholder content.
  4. Global Metadata:

    • Configures Outfit font with preloaded subsets and weights. You can customize your font preferences in the layout.tsx file.
    • Sets up a basic metadata template for SEO.

Project Structure

Your new Next.js application will have the following structure:

<project-name>
├── .next/                  # Next.js build files
├── app/                    # Application folder
│   ├── (main)/             # Main folder for your primary layout and pages
│   │   ├── layout.tsx      # Main layout component
│   │   └── page.tsx        # Default page component
│   ├── globals.css         # Global styles
│   └── layout.tsx          # Root layout with metadata and global font
├── components/             # Shared components
├── constants/              # Application constants
├── containers/             # Page-specific components
├── contexts/               # React contexts
├── lib/                    # Utility functions or libraries
├── node_modules/           # Node dependencies
├── partials/               # Partial UI components
├── public/                 # Public assets
├── types/                  # TypeScript types
├── .eslintrc.json          # ESLint configuration
├── .gitignore              # Files to ignore in Git
├── next-env.d.ts           # Next.js TypeScript configuration
├── next.config.ts          # Next.js configuration file
├── package-lock.json       # Lockfile for dependencies
├── package.json            # Project metadata and scripts
├── postcss.config.mjs      # PostCSS configuration
├── README.md               # Documentation for the project
├── tailwind.config.ts      # Tailwind CSS configuration
└── tsconfig.json           # TypeScript configuration

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b my-feature
  3. Make your changes and commit them:
    git commit -m 'Add my feature'
  4. Push your changes to the branch:
    git push origin my-feature
  5. Open a pull request for review.

We value your contributions! 🛠️


License

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

For any issues or feature requests, please open an issue or contact me at rachit.infornics.com/contact.


Notes

  • If the create-next-app setup fails, ensure you have the latest version of Node.js installed.
  • Run npm install to ensure all dependencies are installed correctly.

Happy coding! 🚀