# set-react-app

> Set React App is a lightweight, opinionated setup for building modern React applications.

Latest version **2.0.0** (published 2026-11-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install set-react-app
pnpm add set-react-app
yarn add set-react-app
bun add set-react-app
```

Provides the command `set-react-app`.

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-11-19 |
| First published | 2024-12-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^22.22.2 \|\| ^24.15.0 \|\| >=26.0.0 |
| Dependencies | 1 |
| Unpacked size | 38.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shubham Sarda |
| Maintainers | shubham72 |
| Keywords | react, vite, create-react-app, set-react-app |

## Links

- npm: https://www.npmjs.com/package/set-react-app
- Repository: https://github.com/ShubhamSarda/set-react-app
- Homepage: https://github.com/ShubhamSarda/set-react-app#readme
- Issues: https://github.com/ShubhamSarda/set-react-app/issues
- npm.io page: https://npm.io/package/set-react-app

## Dependencies (1)

- [fs-extra](https://npm.io/package/fs-extra.md) ^11.4.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2026-11-19
- 1.0.12 — 2024-12-28
- 1.0.11 — 2024-12-28
- 1.0.10 — 2024-12-28
- 1.0.9 — 2024-12-28
- 1.0.8 — 2024-12-28
- 1.0.7 — 2024-12-28
- 1.0.6 — 2024-12-28
- 1.0.5 — 2024-12-28
- 1.0.4 — 2024-12-28
- 1.0.3 — 2024-12-28
- 1.0.2 — 2024-12-28
- 1.0.1 — 2024-12-28
- 1.0.0 — 2024-12-28

## README

# Set React App

**Author:** [Shubham Sarda](https://www.linkedin.com/in/shubhamsarda/) / [@shubham_ul](https://x.com/shubham_ul)  

---

## Overview

Set React App is a lightweight, opinionated setup for building modern React applications. Inspired by Create React App, it leverages [Vite](https://vitejs.dev/) for blazing-fast bundling, hot module replacement, and a streamlined developer experience. This template provides common tooling and sensible defaults to get you up and running quickly.

---

## Features

- **Vite-Powered**: Enjoy fast bundling, instant dev server start, and on-demand file serving.  
- **Latest React & React DOM**: Includes React and React DOM 19.x for modern React development.
- **Testing**: Pre-configured with [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) and [Jest DOM](https://github.com/testing-library/jest-dom) with [Vitest](https://vitest.dev/) for unit and integration tests.
- **Simple Scripts**: A minimal set of npm scripts for development, production builds, previews, and tests.
- **Web Vitals**: Measures performance for React apps, integrated out of the box.  

---

## Requirements

Use Node.js 22.22.2 or later in the 22.x line, 24.15.0 or later in the 24.x line, or Node.js 26 or newer.

## Steps to Use (Similar to Create React App)

1. **Install Globally (Optional)**  
   ```bash
   npm install -g set-react-app
   ```
   This allows using the `set-react-app` command system-wide.

2. **Create a New Project**  
   ```bash
   npx set-react-app project-name
   # or if you installed globally:
   set-react-app project-name
   ```

3. **Move into the Newly Created Directory**  
   ```bash
   cd project-name
   ```

4. **Start the Development Server**  
   ```bash
   npm start
   ```
   This will start the Vite dev server on **[http://localhost:3000](http://localhost:3000)** by default.

---

## Available Scripts

Once inside your project directory, you can run:

- **`npm run start`** or **`npm run dev`**  
  Runs the app in development mode using Vite on port **3000**.  

- **`npm run build`**  
  Builds the app for production to the `dist` folder. It bundles React in production mode, optimizes builds for the best performance, and is ready for deployment.  

- **`npm run preview`**  
  Serves the production build from the `dist` folder locally. Helpful for verifying your production build before deploying.

- **`npm test`**
  Runs the test suite once with Vitest.

---

## Project Structure

```bash
.
├── public          # Public assets that are directly served
├── src             # Main source code for the application
│   ├── App.jsx     # Root App component
│   ├── index.jsx    # Entry point for React application
│   └── ...         # Other components and files
├── tests           # Test files (if separated from src)
├── package.json
├── vite.config.js  # Vite configuration
└── ...
```

Feel free to modify this structure based on your project’s needs.

---

## Dependencies

```jsonc
"dependencies": {
  "react": "^19.3.1",
  "react-dom": "^19.3.1",
  "web-vitals": "^6.2.3"
},
"devDependencies": {
  "@testing-library/dom": "^10.4.2",
  "@testing-library/jest-dom": "^8.0.0",
  "@testing-library/react": "^16.3.3",
  "@testing-library/user-event": "^14.6.13",
  "@vitejs/plugin-react": "^6.3.0",
  "jsdom": "^31.0.1",
  "vite": "^8.3.8",
  "vitest": "^5.1.1"
}
```

---

## Contributing

Contributions, suggestions, and feedback are welcome!  
1. Fork the repository  
2. Create a new branch (`git checkout -b feature/some-new-feature`)  
3. Commit changes (`git commit -m 'Add some feature'`)  
4. Push to the branch (`git push origin feature/some-new-feature`)  
5. Open a Pull Request  

---

## License

This project is **free to use** and distributed under the MIT License. See the [LICENSE](LICENSE) file for more details.

---

## Connect with Me

**Author:** [Shubham Sarda](https://www.linkedin.com/in/shubhamsarda/) / [@shubham_ul](https://x.com/shubham_ul)  

If you find this project helpful or have any questions, feel free to reach out on LinkedIn/Twitter!

**Happy Coding!**

---
_Source: https://npm.io/package/set-react-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
