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

@thanhthi2895/react-project-init

v1.4.19

Published

A comprehensive, production-ready CLI tool for creating modern React projects with best practices, beautiful UI, and powerful integrations.

Downloads

36

Readme

🚀 Enhanced React Project Initializer

A comprehensive, production-ready CLI tool for creating modern React projects with best practices, beautiful UI, and powerful integrations.

✨ Features

🎯 Framework Support

  • Next.js: App Router & Pages Router templates with TypeScript
  • Vite: React TypeScript & JavaScript templates with fast HMR

🌐 Internationalization (I18n)

  • Next Intl: Modern i18n library for Next.js applications
  • React I18next: Powerful i18n framework for React/Vite projects
  • Multi-language support: English & Vietnamese out of the box

🛤️ Routing

  • Next.js: Built-in App Router
  • Vite: React Router v6 with modern routing patterns

🎨 UI Libraries & Styling

  • Tailwind CSS: Utility-first CSS framework with modern design
  • Ant Design: Enterprise-grade UI components library
  • Shadcn/UI: Copy-paste component library with Radix UI
  • PostCSS: Emotion & Styled Components for CSS-in-JS

📊 State Management

  • React Query: Server state management and caching
  • SWR: Data fetching with smart caching and revalidation
  • Redux Toolkit: Predictable state container with modern patterns
  • Zustand: Lightweight and flexible state management

🛠️ Development Tools

  • React Compiler: Automatic React performance optimization
  • ESLint + Prettier: Code linting, formatting, and quality enforcement
  • Husky + Lint-staged: Git hooks for automated quality checks
  • TypeScript: Full type safety and modern development experience

📦 Package Manager Support

  • npm: Node Package Manager
  • yarn: Fast, reliable, and secure package manager
  • pnpm: Efficient package manager with shared dependencies

🚀 Quick Start

Interactive Mode (Recommended)

npx @thanhthi2895/react-project-init

🎨 CLI Interface

Beautiful Terminal UI

  • 🎯 Welcome Screen: Branded introduction with ASCII art
  • 🌈 Color Coded: Consistent color scheme throughout
  • Loading Indicators: Spinners for long operations
  • 📦 Boxed Content: Important information highlighted
  • Success Screens: Clear completion feedback

Interactive Prompts

  • 📝 Project Name Validation: Smart name checking and path validation
  • 🔧 Framework Selection: Next.js vs Vite with detailed comparisons
  • 🎨 Template Choice: Visual template descriptions and recommendations
  • 🛤️ Routing Setup: Configure routing for your chosen framework
  • 🌐 I18n Configuration: Setup internationalization with language selection
  • 🧩 UI Library Multi-select: Mix and match UI libraries and styling options
  • 📊 State Management: Choose from multiple state management solutions
  • 🛠️ Development Tools: Select productivity and quality tools
  • 📦 Package Manager: Choose between npm, yarn, or pnpm

📁 Generated Project Structure

Next.js App Router

my-nextjs-app/
├── app/
│   ├── globals.css
│   ├── layout.tsx
│   └── page.tsx
├── components/
│   └── ui/              # Shadcn/UI components
├── lib/
│   └── utils.ts
├── messages/
│   ├── en.json          # I18n messages
│   └── vi.json
├── src/
│   └── i18n/
│       └── request.ts   # I18n configuration
├── public/
├── styles/
├── next.config.ts
├── next-i18next.config.ts
├── tailwind.config.js
├── postcss.config.mjs
└── package.json

Vite React

my-vite-app/
├── src/
│   ├── components/
│   ├── hooks/
│   ├── store/           # State management
│   ├── locales/         # I18n translations
│   │   ├── en/
│   │   │   └── common.json
│   │   └── vi/
│   │       └── common.json
│   ├── styles/
│   ├── App.tsx
│   ├── main.tsx
│   └── i18n.ts          # I18n configuration
├── public/
├── index.html
├── vite.config.ts
└── package.json

🔧 Configuration Options

Framework Templates

| Framework | Template | Description | |-----------|----------|-------------| | Next.js | app-router | Modern App Router with TypeScript (recommended) | | Vite | react-ts | React with TypeScript and Vite (recommended) |

Routing Options

| Framework | Router | Description | |-----------|---------|-------------| | Next.js | Built-in | App Router| | Vite | React Router | React Router v6 with modern patterns |

Internationalization (I18n)

  • next-intl: Modern i18n for Next.js (Server Components compatible)
  • react-i18next: Full-featured i18n framework for React/Vite
  • none: No internationalization

UI Libraries & Styling

  • antd: Complete enterprise UI component library
  • shadcn/ui: Modern copy-paste component library
  • tailwindcss: Utility-first CSS framework (always included)
  • emotion: CSS-in-JS library for styled components
  • styled-components: CSS-in-JS with template literals

State Management

  • react-query: Server state management and caching
  • swr: Data fetching with smart caching and revalidation
  • redux-toolkit: Global state with Redux Toolkit
  • zustand: Minimal and flexible state management
  • none: No state management library

Development Tools

  • react-compiler: Automatic React performance optimization
  • eslint + prettier: Code quality, linting and formatting
  • husky + lint-staged: Git hooks for automated quality checks
  • typescript: Full type safety (always included)

�📄 License

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

🚀 What's New in v1.4.12

✨ New Features

  • 🌐 Internationalization Support: Added Next Intl for Next.js and React I18next for Vite
  • 🛤️ React Router Integration: Full React Router v6 support for Vite projects
  • 📊 SWR Data Fetching: Alternative to React Query for data fetching
  • 🎨 Enhanced PostCSS: Better Emotion and Styled Components integration
  • 🔧 Improved Development Tools: Enhanced ESLint, Prettier, and Husky configurations

🔄 Recent Updates

  • Updated to support Node.js 18+ and npm 8+
  • Improved TypeScript configurations across all templates
  • Enhanced project structure with better organization
  • Optimized build processes and package management
  • Better error handling and user experience

🙏 Acknowledgments

  • Next.js team for the amazing framework and App Router
  • Vite team for the lightning-fast build tool and HMR
  • Ant Design & Shadcn/UI teams for beautiful component libraries
  • React team for the incredible library and React Compiler
  • Tailwind CSS team for the utility-first CSS framework
  • All open source contributors and the React community

🔗 Links