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

create-clean-react-vite

v1.0.3

Published

Clean React + Vite starter CLI with Tailwind CSS, TypeScript, ESLint and payload-guard security built-in.

Readme

create-clean-react-vite

npm version npm downloads license MIT License

🚀 Ultra-clean React + Vite starter CLI with Tailwind CSS, TypeScript, ESLint, and built-in payload validation.


🚀 Quick Start

Create a new React + Vite project in seconds:

npx create-clean-react-vite myapp
cd myapp
npm run dev

Package Manager Options

# Default (npm)
npx create-clean-react-vite myapp

# Using pnpm (2-3x faster) ⚡
npx create-clean-react-vite myapp --pnpm

# Using Yarn
npx create-clean-react-vite myapp --yarn

# Using Bun (Fastest) 🚀
npx create-clean-react-vite myapp --bun

| Command | Description | |---------|-------------| | npx create-clean-react-vite myapp | ✅ Creates a new clean React + Vite project | | npx create-clean-react-vite myapp --pnpm | ⚡ 2-3x faster installation | | npx create-clean-react-vite myapp --yarn | 📦 Yarn package manager | | npx create-clean-react-vite myapp --bun | 🚀 Fastest - Bun runtime | | npm install create-clean-react-vite | ❌ Don't install as a dependency |


⚡ Performance Comparison

| Feature | create-clean-react-vite (Your CLI) | create-react-app (Standard) | |---------|-----------------------------------|----------------------------| | Speed | ~21 seconds (Full Setup) 🚀 | ~3-5 minutes (Full Setup) 🐢 | | Boilerplate | Clean! No logos or generic code | Lots of boilerplate (SVG, styled home page) | | Structure | Minimalist (uses src default) | Heavier (multiple CSS/SVG starter files) | | Dependencies | Focused & Essential | Larger default set |


📖 Table of Contents


✨ Features

  • React 18 - Latest version with hooks
  • Vite 5 - Lightning fast HMR and build
  • Tailwind CSS 3 - Utility-first CSS framework
  • TypeScript 5 - Strict mode enabled for type safety
  • ESLint 8 - Code quality and consistency
  • payload-guard-filter - Pre-configured API validation
  • Zero Demo Files - Clean, production-ready structure
  • Minimal Dependencies - Lightweight (~200MB node_modules)
  • Git Initialized - Auto-initializes git repository

📦 What's Included

Your new project will include:

myapp/
├── src/
│   ├── main.tsx             # React entry point
│   ├── App.tsx              # Main App component
│   ├── index.css            # Global styles with Tailwind
│   ├── lib/
│   │   └── payloadGuard.ts  # Pre-configured validation shapes
│   ├── components/          # Your custom components
│   └── types/               # TypeScript type definitions
├── .eslintrc.json           # ESLint configuration
├── .gitignore
├── index.html               # HTML entry point
├── package.json
├── postcss.config.mjs       # PostCSS configuration
├── tailwind.config.ts       # Tailwind configuration
├── tsconfig.json            # TypeScript configuration
└── vite.config.ts           # Vite configuration

📥 Installation

Prerequisites

  • Node.js 18.17 or later
  • npm or yarn package manager

Create New Project

# Using npx (recommended)
npx create-clean-react-vite myapp

# Navigate to project
cd myapp

# Start development server
npm run dev

🔒 Payload Validation

Pre-defined validation shapes in src/lib/payloadGuard.ts:

import { login, register, payload } from "@/lib/payloadGuard";

// Form validation example
function handleSubmit(formData: any) {
  // Validate login payload - only allowed fields returned
  const safe = login(formData);
  
  // Send safe data to API
  return safe;
}

Available Shapes

| Shape | Fields | |-------|--------| | login | password, token, api_key | | register | username, email, password | | payload | data, message, value |


🏗️ Project Structure

src/

Main source directory for your React application.

src/components/

Reusable React components (empty by default).

src/lib/

Utility functions and payload validation guards.

src/types/

TypeScript type definitions and interfaces.


📖 Available Scripts

npm run dev      # Start development server at localhost:5173
npm run build    # Build for production
npm run preview  # Preview production build
npm run lint     # Run ESLint checks

🛠️ Tech Stack

| Package | Version | Description | |---------|---------|-------------| | React | Latest | UI library | | React DOM | Latest | React DOM renderer | | Vite | ^5 | Build tool | | TypeScript | ^5 | Type safety | | Tailwind CSS | ^3 | CSS framework | | ESLint | ^8 | Code linting | | payload-guard-filter | ^1.8.0 | API validation |


🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development

# Clone the repository
git clone https://github.com/sannuk79/create-react-vite-frontend.git

# Navigate to project
cd create-clean-react

# Install dependencies
npm install

# Make your changes and test

📄 License

This project is licensed under the MIT License.


🔗 Links


📞 Support

If you have any questions or need help:

  • Open an issue on GitHub
  • Check existing documentation

Made with ❤️ by sannuk79

If you like this project, please ⭐ star the repository!