
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-archetype
Advanced tools
React-archetype is a cli tool (or a generator) that will generate apps based on the rendering pattern (CSR,SSR, SSG, ISR etc) of your choice.
React Archetype is a cli tool designed to facilitate the creation of reactive applications. It allows you to generate apps based on different rendering strategies and architectural patterns.
Our aim is to make app generation as easy and compatible as possible. The goal is to provide unopinionated templates with the latest tools and technologies that are available in the market.
NOTE:
Ease of use: All you need to do is run a single command,
npx react-archetypeand answer a few questions.Compatibility: The tool is built in such a way that it can be used in any project.
Flexibility: The generated templates are fairly opinionated but will be made more flexible very soon.
Read this amazing blog by Flavien Bonvin to learn more about the different rendering strategies.
Go to the directory where you want to use this tool.
Open up the terminal and run the command,
npx react-archetype
Provide the input to the prompts and finally, you should have your application ready.
Refer Project Overview section to learn more about the tool and on how/where to use it.
This tool can be used to create a new standalone app/project. It can also be used as a micro app generator in a NX, Turbo or Lerna based monorepo workspaces.
You can rely on some of the custom cli arguments that react-archetype comes with. Simply run the command,
npx react-archetype <cli-argument>
where cli-argument is one of:
| cli argument | description |
|---|---|
| --info or -i | logs necessary information on how to use the tool with different arguments |
| --version or -v | logs the version of react-archetype package installed in the system or the version used to generate app |
| --list or -l | logs the list of existing apps in a monorepo generated using react-archetype |
| --no-install or -ni | generates app without installing the dependencies |
The steps to run the app will be displayed in the terminal.
New Project
Go inside the app directory
cd <appName>
Run the serve command
#using npm
npm run dev
#using yarn
yarn dev
#using pnpm
pnpm dev
Existing Project - Run the serve command
# using npm
npm run dev -w=<app_name>
# using yarn
yarn workspace <app_name> dev
# using pnpm
pnpm --filter <app_name> dev
Refer the package.json file of the generated app to learn more about the other commands.
Here are the templates and few items from the backlog that are in progress and will available in the next release:
For the future releases, React Archetype will come up with "add-ons", more versatility and Flexibility in terms of the technology of choice and more templates for different technologies.
See CONTRIBUTING.md on how to get started.
FAQs
React-archetype is a cli tool (or a generator) that will generate apps based on the rendering pattern (CSR,SSR, SSG, ISR etc) of your choice.
The npm package react-archetype receives a total of 1 weekly downloads. As such, react-archetype popularity was classified as not popular.
We found that react-archetype demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.