
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.
clean-arch-cli
Advanced tools
CLI tool for generating Clean Architecture folder structures for Flutter or Node projects.
A CLI tool to quickly generate Clean Architecture folder structures for Flutter and Node.js projects.
npm install -g cleanarch
npm install cleanarch --save-dev
Create the basic Clean Architecture structure in your current directory:
cleanarch
Generate a complete feature with all layers:
cleanarch --feature auth
This creates:
lib/
├── features/
│ └── auth/
│ ├── data/
│ │ ├── datasources/
│ │ │ ├── local/
│ │ │ └── remote/
│ │ ├── models/
│ │ └── repositories_impl/
│ ├── domain/
│ │ ├── entities/
│ │ ├── repositories/
│ │ ├── usecases/
│ │ └── value_objects/
│ └── presentation/
│ ├── pages/
│ │ ├── screens/
│ │ └── components/
│ ├── widgets/
│ ├── providers/
│ ├── controllers/
│ └── states/
Generate the structure in a specific directory:
cleanarch --path ./my-project
Generate structure without the core folder:
cleanarch --no-core
| Option | Alias | Description | Default |
|---|---|---|---|
--feature <name> | -f | Name of the feature to create | - |
--path <directory> | -p | Base directory for generation | Current directory |
--no-core | - | Skip creating core folder | false |
--version | -V | Output version number | - |
--help | -h | Display help information | - |
cleanarch --feature auth
cleanarch --feature products
cleanarch --feature cart
cleanarch --feature users --path ./backend/src
cleanarch --feature dashboard --no-core
lib/
├── core/
│ ├── errors/
│ ├── usecases/
│ ├── utils/
│ └── constants/
└── features/
lib/
└── features/
The generated structure follows Clean Architecture principles with three main layers:
Contributions are welcome! Please feel free to submit a Pull Request.
MIT
Nyasha A Hove
[https://github.com/asheckn/cleanarch]
For issues and feature requests, please visit the issues page.
Made with ❤️ for Clean Architecture enthusiasts
FAQs
CLI tool for generating Clean Architecture folder structures for Flutter or Node projects.
We found that clean-arch-cli demonstrated a healthy version release cadence and project activity because the last version was released less than 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.