create-quick-react
v1.0.12
Published
A fast CLI to scaffold React apps with prebuilt features 🚀
Maintainers
Readme
Create Quick React
create-quick-react scaffolds a Vite React app with a faster setup flow for modern frontend projects.
It can generate JavaScript or TypeScript apps with optional routing, state management, API clients, testing, linting, env files, Tailwind, and shadcn/ui.
Features
- Vite React starter in JavaScript or TypeScript
- Tailwind CSS setup
- Optional
shadcn/uisetup with starter components - Optional React Router starter using modern data-router patterns
- State management choices:
None,Redux,Context API, orBoth - Auth starter choices:
None,Demo Protected Route, orJWT Starter - API client choices:
None,Fetch Client, orAxios Client - Testing choices:
None,Vitest,Vitest + React Testing Library, orPlaywright - Linting choices:
None,Prettier, orESLint + Prettier - Environment file starter
- Project structure presets
- Starter page presets
- Grouped optional package selection
- Quick mode with CLI flags and
--yes
Usage
Run it with npx:
npx create-quick-reactOr install it globally:
npm install -g create-quick-react
create-quick-reactYou can also pass the project name directly:
create-quick-react my-appQuick Mode
Use --yes to scaffold with defaults:
create-quick-react my-app --yesExample with flags:
create-quick-react my-app --lang ts --state both --ui shadcn --router react --auth jwt --api axios --yesSupported flags:
--yes,-y--lang js|ts--state none|redux|context|both--ui tailwind|shadcn--router none|react--auth none|demo|jwt--api none|fetch|axios
Interactive Flow
The CLI can ask for:
- Project name
- JavaScript or TypeScript
- State management choice
- Tailwind or Tailwind +
shadcn/ui - Routing choice
- Auth starter
- API client starter
- Testing setup
- Linting setup
- Env file starter
- Project structure preset
- Starter page preset
- Optional package groups
shadcn/uistarter components
Generated Project
Depending on your choices, the generated app can include:
src/App.jsxorsrc/App.tsxsrc/main.jsxorsrc/main.tsxsrc/hooks/for routing and auth helperssrc/contextApi/for theme contextsrc/redux/for Redux Toolkit starter filessrc/lib/for API client utilitiessrc/config/for env helperssrc/index.csswith Tailwind enabled- optional
shadcn/uicomponents - generated README content inside the new app
Notes
- Context API is intended for lightweight UI-wide concerns like theme.
- Redux Toolkit is intended for structured shared app state using slices and selectors.
- React Router setup uses route objects,
createBrowserRouter,RouterProvider, and protected route helpers when auth is enabled. - The generated starter app includes a GitHub link back to this project:
https://github.com/umar792/create-quick-react
Local Development
npm install
npm run build
npm linkThen test locally with:
create-quick-reactLicense
MIT
