RS (Rahul Structure) is a simple yet powerful Dart-based command-line tool that helps you scaffold a Flutter project architecture instantly. Whether you prefer Clean Architecture, MVVM, or a custom folder structure, rs will set up everything for you in seconds!
- 📁 Instantly generate project structure in Flutter projects
- 🏗 Supports multiple architecture patterns:
- Clean Architecture
- MVVM
- Rahul's Custom Architecture
- 🧠 Beginner-friendly CLI interface
- 🧰 Written in Dart using the
argspackage - ⚡ Super fast and easily extendable
git clone https://github.com/berarahul/rs-cli.git
cd rsdart pub global activate --source path .ℹ️ Make sure
$HOME/.pub-cache/binis in your PATH.
Create a Flutter project first:
flutter create my_app
cd my_app
rsYou'll see a prompt:
Are you creating your project structure?
1. Clean Architecture
2. MVVM Architecture
3. Rahul Architecture
Enter your choice (1/2/3):After you choose, it will auto-generate the structure and print:
✅ Successfully generated Clean Architecture project structure.
✅ Successfully generated Clean Architecture project structure.
You can scaffold the following:
- Organizes code in layers:
data,domain,presentation - Suitable for enterprise-level apps
-
Separates
Model,View,ViewModel -
Great for small to medium apps with UI logic
- Comming soon
- Comming soon
Here’s a generated folder layout for Clean Architecture:
lib/
├── core/
│ └── utils/
├── features/
│ └── auth/
│ ├── data/
│ ├── domain/
│ └── presentation/
├── main.dart
core/: App-wide utilities, constants, error handlingfeatures/: Divides your app by features/modulesdata/: Handles API, local DB, and data sourcesdomain/: Business logic, use cases, entitiespresentation/: UI screens, widgets, controllers
Want to contribute? Follow these steps:
git clone https://github.com/berarahul/rs-cli.git
cd rs
dart run bin/rs.dartOpen an issue or submit a pull request — all contributions are welcome!
This project is licensed under the MIT License.
MIT License Copyright (c) 2025 Rahul Permission is hereby granted, free of charge, to any person obtaining a copy
Made with ❤️ by Rahul Bera
- 📧 Email: rb6764385@gmail.com
- 🧰 GitHub: berarahul
- ☁️ Cloud templates
- 📦 Flutter package integrations
- 🧪 Unit test starter