react-startify
v1.4.1
Published
π A powerful CLI tool to quickly scaffold React projects with Vite, automatic folder structure, CSS framework integration (Tailwind CSS, Bootstrap), and comprehensive optional packages (Axios, React Router, Zustand, TanStack Query, Framer Motion, and mor
Maintainers
Keywords
Readme
React-Startify π
The fastest way to create production-ready React applications
Zero configuration β’ Modern tooling β’ Best practices built-in
Installation β’ Quick Start β’ Examples β’ Documentation
π Why React-Startify?
React-Startify eliminates the complexity of setting up modern React projects. In seconds, you get a production-ready application with industry best practices, optimal folder structure, and powerful tooling pre-configured.
β¨ Key Features
| Feature | Description | | -------------------------- | ----------------------------------------------------------- | | β‘ Blazing Fast | Powered by Vite for instant hot reload and optimized builds | | οΏ½ Zero Config | Works out of the box with sensible defaults | | π Smart Structure | Industry-standard folder organization for scalable projects | | π· TypeScript First | Full TypeScript support with proper configurations | | π¨ CSS Framework Ready | Optional Tailwind CSS or Bootstrap with optimized setup | | π¦ Flexible | Support for npm, yarn, and pnpm | | π Production Ready | Optimized builds and performance best practices |
π Quick Start
Get started in less than 30 seconds:
# Install globally (recommended)
npm install -g react-startify
# Create your first project
react-startify my-awesome-app
# Start developing
cd my-awesome-app
npm run devThat's it! Your React application is ready at http://localhost:5173
π¦ Installation
Global Installation (Recommended)
npm install -g react-startifyUsing npx (No installation required)
npx react-startify my-appUsing yarn
yarn global add react-startify
# or
yarn create react-startify my-appUsing pnpm
pnpm add -g react-startify
# or
pnpm create react-startify my-appπ‘ Usage
π― Interactive Mode (Recommended)
Launch the interactive setup wizard:
react-startifyThe CLI will guide you through:
- π Project name selection
- π€ Language preference (TypeScript/JavaScript)
- π¦ Package manager choice (npm/yarn/pnpm)
- π¨ CSS framework selection (Tailwind CSS/Bootstrap/None)
- π¦ Optional packages selection (Axios, React Icons, React Router, Zustand, TanStack Query, Framer Motion, Styled Components, React Hook Form, Date-fns, UUID)
- βοΈ Additional configurations
β‘ Command Line Mode
For automated workflows and CI/CD:
# TypeScript + npm + Tailwind
react-startify my-app --typescript --npm --tailwind
# TypeScript + npm + Bootstrap + Optional packages
react-startify my-app --typescript --npm --bootstrap --axios --react-icons
# JavaScript + yarn (no CSS framework)
react-startify my-app --javascript --yarn --no-framework
# TypeScript + pnpm + Tailwind + All packages
react-startify my-app --typescript --pnpm --tailwind --all-packagesπ οΈ Command Options
| Option | Alias | Description |
| ---------------- | ----- | ---------------------------- |
| --typescript | -t | Use TypeScript (default) |
| --javascript | -j | Use JavaScript |
| --npm | | Use npm as package manager |
| --yarn | | Use yarn as package manager |
| --pnpm | | Use pnpm as package manager |
| --tailwind | | Include Tailwind CSS setup |
| --bootstrap | | Include Bootstrap setup |
| --no-framework | | Skip CSS framework (default) |
| --axios | | Include Axios HTTP client |
| --react-icons | | Include React Icons library |
| --react-router | | Include React Router for routing |
| --zustand | | Include Zustand state management |
| --tanstack-query | | Include TanStack Query for data fetching |
| --framer-motion | | Include Framer Motion for animations |
| --styled-components | | Include Styled Components |
| --react-hook-form | | Include React Hook Form |
| --date-fns | | Include Date-fns date utilities |
| --uuid | | Include UUID generator |
| --all-packages | | Include all optional packages |
| --help | -h | Show help information |
| --version | -v | Show version number |
π Shorthand Alias
Use the shorter command for convenience:
startify my-app --typescript --tailwindπ Project Structure
React-Startify creates a production-ready project structure following React best practices:
my-app/
βββ π public/ # Static assets
β βββ vite.svg
βββ π src/
β βββ π components/ # Reusable UI components
β βββ π pages/ # Page-level components
β β βββ Welcome.tsx # Beautiful welcome page
β βββ π hooks/ # Custom React hooks
β βββ π store/ # State management
β βββ π utils/ # Utility functions & helpers
β βββ π assets/ # Static assets
β β βββ π images/ # Image files
β β βββ π styles/ # CSS/SCSS files
β βββ App.tsx # Main application component
β βββ main.tsx # Application entry point
β βββ index.css # Base styles with CSS variables
βββ π package.json # Dependencies & scripts
βββ π tsconfig.json # TypeScript configuration
βββ π vite.config.ts # Vite configuration
βββ π tailwind.config.js # Tailwind config (if selected)
βββ π postcss.config.js # PostCSS config (if Tailwind)
βββ π index.html # HTML templateπ― Folder Benefits
- οΏ½ Clean Organization: Well-structured folders for different code types
- π Scalable: Easy to extend as your project grows
- π¨ Separation of Concerns: Clear boundaries between different code types
- π± Mobile-First: Responsive design patterns included
β¨ What You Get
π¨ Beautiful Welcome Page
Say goodbye to the generic Vite template! React-Startify includes a stunning welcome page that:
- π Project Overview: Visual representation of your folder structure
- π Next Steps Guide: Clear instructions to get you started
- π¨ Modern Design: Beautiful UI showcasing your tech stack
- π± Responsive Layout: Looks great on all devices
- π Helpful Links: Quick access to documentation and resources
π¨ CSS Framework Integration
Choose from popular CSS frameworks with zero configuration:
Tailwind CSS
When you choose Tailwind CSS, you get:
- β
Auto-Installation: All required packages installed automatically
tailwindcss- Core Tailwind CSS framework@tailwindcss/vite- Vite integration pluginautoprefixer- CSS vendor prefixing
- βοΈ Pre-configured Setup: Vite integration ready to go
- π¨ Styled Welcome Page: Modern design using Tailwind utilities
- π§ Optimized Config: PurgeCSS and JIT mode enabled
- π Design System: Custom color palette and spacing scale
Bootstrap
When you choose Bootstrap, you get:
- β
Auto-Installation: Bootstrap package installed automatically
bootstrap- Complete Bootstrap framework with CSS and JS
- βοΈ Pre-configured Setup: CSS and JS imports ready to use
- π¨ Styled Welcome Page: Beautiful design using Bootstrap components
- π§ Component Library: Full access to Bootstrap's component system
- π± Responsive Grid: 12-column grid system for layouts
ποΈ Optimized Development Environment
- β‘ Vite 5+: Latest version with optimal performance
- π₯ Hot Module Replacement: Instant updates without losing state
- π Source Maps: Perfect debugging experience
- π¦ Tree Shaking: Optimal bundle sizes
- π― Path Mapping: Clean imports with TypeScript paths
π· TypeScript Excellence
- π Strict Configuration: Catch errors early with strict mode
- π― Modern Target: ES2022 for optimal performance
- π Type Definitions: All necessary @types packages included
- π§ IDE Support: Perfect IntelliSense and error detection
- π·οΈ JSX Support: Full React 18+ TypeScript integration
π¦ Package Manager Flexibility
No matter your preference, we've got you covered:
| Manager | Features | | -------- | -------------------------------------------------- | | npm | Industry standard, reliable, great ecosystem | | yarn | Fast, secure, great for monorepos | | pnpm | Disk efficient, fast, strict dependency management |
π Examples
π Create a Full-Stack Ready App
# TypeScript + Tailwind for modern development
react-startify my-saas-app --typescript --npm --tailwind
cd my-saas-app
npm run devPerfect for: SaaS applications, dashboards, e-commerce sites
π ±οΈ Create a Bootstrap Powered App
# TypeScript + Bootstrap for component-rich applications
react-startify my-enterprise-app --typescript --npm --bootstrap
cd my-enterprise-app
npm run devPerfect for: Enterprise applications, admin panels, data-heavy interfaces
π¦ Create a Feature-Rich App with Optional Packages
# Full-featured app with state management and routing
react-startify my-full-app --typescript --npm --tailwind --react-router --zustand --tanstack-query --framer-motion
cd my-full-app
npm run devPerfect for: Complex SPAs, data-driven apps, modern web applications
Available Optional Packages
| Package | Description | Use Cases | |---------|-------------|-----------| | Axios | Promise-based HTTP client | API calls, data fetching, REST integration | | React Icons | Popular icon libraries as React components | UI icons, Font Awesome, Feather, Material Design | | React Router | Declarative routing for React | Single-page apps, navigation, dynamic routing | | Zustand | Small, fast state management | Global state, stores, state sharing | | TanStack Query | Powerful data synchronization | Server state, caching, background updates | | Framer Motion | Production-ready motion library | Animations, gestures, page transitions | | Styled Components | CSS-in-JS styling library | Component styling, theming, dynamic styles | | React Hook Form | Performant forms with validation | Form handling, validation, user input | | Date-fns | Modern JavaScript date utility | Date manipulation, formatting, calculations | | UUID | RFC-compliant UUID generator | Unique identifiers, keys, database IDs |
β‘ Quick Prototype Setup
# JavaScript for rapid prototyping
react-startify my-prototype --javascript --yarn
cd my-prototype
yarn devPerfect for: MVPs, proof of concepts, quick demos
π¨ Design System Project
# TypeScript + Tailwind for component libraries
react-startify my-design-system --typescript --pnpm --tailwind
cd my-design-system
pnpm devPerfect for: Component libraries, design systems, UI kits
π€ Interactive Setup
# Let the wizard guide you
react-startify
# Follow the prompts:
# β¨ What's your project name?
# π€ TypeScript or JavaScript?
# π¦ Which package manager?
# π¨ Include Tailwind CSS?Perfect for: First-time users, exploring options
π Specialized Project Templates
Modern E-commerce App
# Complete setup for online stores
react-startify my-shop --typescript --npm --tailwind --react-router --zustand --tanstack-query --react-hook-form --uuidIncludes: Routing, global state, data fetching, form handling, unique IDs
Animated Portfolio Site
# Creative portfolio with smooth animations
react-startify my-portfolio --typescript --yarn --tailwind --react-router --framer-motion --styled-components --date-fnsIncludes: Page transitions, custom styling, date utilities
Enterprise Dashboard
# Data-heavy admin interface
react-startify my-dashboard --typescript --pnpm --bootstrap --react-router --zustand --tanstack-query --axios --react-icons --uuidIncludes: Professional UI, state management, API integration, data visualization
All-Inclusive Project
# Everything included for maximum flexibility
react-startify my-mega-app --typescript --npm --tailwind --all-packagesIncludes: All 10 optional packages for comprehensive development
π§ Requirements
| Requirement | Version | Notes | | -------------------- | ------- | ------------------------ | | Node.js | 16.0.0+ | LTS versions recommended | | Package Manager | Any | npm, yarn, or pnpm | | Operating System | Any | Windows, macOS, Linux |
π Comparison
| Feature | React-Startify | Create React App | Vite React Template | | ------------------- | --------------------- | ---------------- | ------------------- | | β‘ Build Tool | Vite 5+ | Webpack | Vite | | π Folder Structure | β Organized | β Basic | β Minimal | | π¨ Welcome Page | β Beautiful | β Generic | β Basic | | π· TypeScript | β Optimized | β οΈ Basic | β οΈ Basic | | π¨ CSS Frameworks | β Tailwind/Bootstrap | β Manual | β Manual | | π¦ Package Managers | β All supported | β οΈ npm/yarn | β οΈ Limited | | π Performance | β Optimized | β Slow | β Fast | | π Documentation | β Comprehensive | β Good | β οΈ Basic |
π οΈ Development Commands
After creating your project, use these commands:
# Start development server
npm run dev # or yarn dev / pnpm dev
# Build for production
npm run build # or yarn build / pnpm build
# Preview production build
npm run preview # or yarn preview / pnpm preview
# Type checking (TypeScript projects)
npm run type-check # or yarn type-check / pnpm type-check
# Lint code
npm run lint # or yarn lint / pnpm lintπ Troubleshooting
Common Issues
Solution: Make sure you've installed the package globally:
npm install -g react-startifyOr use npx directly:
npx react-startify my-appSolution: Use sudo for global installation:
sudo npm install -g react-startifyOr use a Node version manager like nvm.
Solution: Clear your package manager cache:
# npm
npm cache clean --force
# yarn
yarn cache clean
# pnpm
pnpm store pruneSolution: Ensure you've imported the CSS file in your main.tsx:
import "./index.css";Getting Help
- π Check our examples
- π Report bugs
- π¬ Join discussions
- π§ Email: [email protected]
π€ Contributing
We love contributions! Here's how to get started:
π Quick Contribution Guide
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/React-Startify.git - Install dependencies:
npm install - Create a branch:
git checkout -b feature/amazing-feature - Make your changes
- Test your changes:
npm run test - Commit your changes:
git commit -m 'Add amazing feature' - Push to your branch:
git push origin feature/amazing-feature - Open a Pull Request
π― Contribution Areas
- π Bug Fixes: Help us squash bugs
- β¨ New Features: Add cool new functionality
- π Documentation: Improve docs and examples
- π¨ UI/UX: Enhance the welcome page and CLI
- π§ͺ Testing: Add or improve tests
- π Translations: Help us go global
π Development Setup
# Clone the repo
git clone https://github.com/iamstyx/React-Startify.git
cd React-Startify
# Install dependencies
npm install
# Build the project
npm run build
# Test locally
npm link
react-startify test-project
# Run tests
npm testRead our Contributing Guide for detailed information.
π License
MIT Β© Sushant Verma
This project is open source and available under the MIT License.
π Acknowledgments
- β‘ Vite Team - For the amazing build tool
- βοΈ React Team - For the incredible framework
- π¨ Tailwind Team - For the utility-first CSS framework
- π Open Source Community - For inspiration and contributions
π Stats
π Support the Project
If React-Startify has helped you build amazing projects, consider:
- β Star the project on GitHub
- π¦ Share it on Twitter
- π Write a blog post about it
- π Sponsor the project
Made with β€οΈ for the React community
π Homepage β’ π Documentation β’ π Getting Started β’ β FAQ
Happy coding with React-Startify! π
