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

react-quickstart-cli-2

v1.0.3

Published

A CLI tool for creating React templates

Downloads

27

Readme

React Quickstart CLI

A powerful command-line interface tool designed to accelerate React development workflows by automating component creation and project structure setup.

🚀 Features

  • Component Generation

    • Create functional components with TypeScript/JavaScript support
    • Styling options: SCSS, CSS, or no styling
    • Optional test file generation
    • Component name validation with PascalCase enforcement
  • Custom Hooks

    • Generate hooks with proper naming convention (useHookName)
    • TypeScript/JavaScript support
    • Optional features:
      • Test file generation
      • Built-in React hooks integration (useState, useEffect, useCallback, useMemo)
  • Context Management

    • Create Context providers with TypeScript/JavaScript support
    • Optional Redux-style reducer setup
    • Customizable context path structure
  • API Integration

    • Generate API service templates
    • Choose between Axios or Fetch
    • Configurable base URL
    • TypeScript/JavaScript support
  • Form Generation

    • Choose between React Hook Form or Formik
    • Optional Yup validation
    • Multiple field type support:
      • Text Input
      • Email
      • Password
      • Number
      • Select
      • Checkbox
      • Radio
      • Textarea
  • Testing Utilities

    • Generate test files for existing components
    • Support for:
      • Unit Tests
      • Integration Tests
      • Snapshot Tests
    • Optional test mocks
  • Project Utilities

    • Safe file/component removal with confirmation
    • Supports both root and src directory paths

📦 Installation

npm install -g react-quickstart-cli-2

🛠️ Usage

Quick Start

# Start the CLI
react-quickstart-cli

# Or use the shorthand
rqc

Component Generation

? Component name: MyComponent
? Component path (relative to src): components
? File type: tsx (tsx, jsx, ts, js)
? Styling solution: SCSS (css, scss, none)
? Additional features: 🧪 Test File

Hook Generation

? Hook name: useMyHook
? Hook path (relative to src): hooks
? File type: ts (ts, js)
? Additional features: 🧪 Test File, 📦 useState, 🔄 useEffect

Context Generation

? Context name: MyContext
? Context path (relative to src): contexts
? File type: tsx (tsx, jsx, ts, js)
? Include reducer: Yes (yes, no)

Form Generation

? Form name: MyForm
? Form path (relative to src): components
? File type: tsx (tsx, jsx, ts, js)
? Choose form library: React Hook Form (react-hook-form, formik)
? Include Yup validation: Yes (yes, no)
? Select field types: Text Input, Email, Password

API Service Generation

? Service name: UserService
? Service path (relative to src): services
? File type: ts (ts, js)
? Choose HTTP client: Axios (axios, fetch)
? Base URL: process.env.REACT_APP_API_URL

Test Generation

? Path to component: components/Button/Button.tsx
? Select test types: Unit Tests, Integration Tests
? Include test mocks: Yes (yes, no)

File Removal

? Enter the path to remove: components/OldComponent
? Are you sure you want to permanently delete "components/OldComponent"? Yes (yes, no)

📝 Notes

  • All component and context names must start with an uppercase letter and contain only letters and numbers
  • Hook names must follow the format useHookName
  • File paths are relative to the src directory by default
  • Test file generation is available for most generators
  • File removal includes safety confirmations to prevent accidental deletions