Copied to clipboard!
v1.2.4 • Production Ready

Architect Your Next Masterpiece

The most powerful CLI tool to scaffold professional Flutter projects. From enterprise Clean Architecture to real-time Chat modules, generate production-ready code in seconds.

GitHub
dart pub global activate flutter_architecture_generator
Clean Arch
BLoC
MVVM

5

Architectures

19

CLI Commands

100

% Type Safe

Enterprise Ready

Quick Start

Setup in 60 Seconds

Streamline your entire development workflow from initialization to final release.

01

Installation

Install the generator globally using the Dart package manager.

dart pub global activate flutter_architecture_generator
02

Initialize Project

Set up the architectural foundation in your existing Flutter project.

flutter_arch_gen init
03

Generate Features

Create a full feature module with Domain, Data, and UI layers instantly.

flutter_arch_gen feature auth
Framework

Mastering Clean Architecture

Designed for scalability, testability, and separation of concerns.

Domain Layer (The Core)

Contains Business Logic, Entities, and Repository Interfaces. This layer is completely independent of any other layer or framework.

  • Entities (Plain Dart Objects)
  • Use Cases (Business Logic)
  • Repository Interfaces

Data Layer

Implements the Domain interfaces and handles data from remote APIs (Dio) or local storage.

  • Models (JSON Serialization)
  • Data Sources (API/DB calls)
  • Repository Implementations

Presentation Layer

Everything related to UI and state management. BLoC, Cubit, or Provider live here.

  • Views/Pages
  • State Management (BLoC/Cubit)
  • Widgets & Themes
Domain
Data
Presentation
Documentation

Command Reference

Every tool you need to build faster, cleaner apps.

Select a command to dive deep into its usage and capabilities.

New in v1.2.4

The Ultimate API Engine

Scaffold entire data layers from a sample JSON or a live endpoint. Our engine intelligently infers types, generates recursive models, and sets up DI & Tests.

Recursive Models Auth Headers Auto Testing Local File Support
terminal
flutter_arch_gen api User -u file:///sample.json -m POST -b '{"name":"test"}' -f auth
{
  "user": {
    "name": "Naimish",
    "address": {
      "city": "Mumbai"
    }
  }
}
➔ Generated UserModel
➔ Generated AddressModel
➔ Generated UserEntity
Customization

Power Configuration

Customize the generator behavior to match your team's coding style via .flutter_arch_gen.json.

architecture

Options: clean, mvvm, mvc, bloc_standard

state_management

Options: bloc, cubit, provider, riverpod

theme_mode

Options: dynamic, static

.flutter_arch_gen.json
{
  "project_name": "my_app",
  "architecture": "clean",
  "state_management": "bloc",
  "state_management_package": "flutter_bloc",
  "router": "go_router",
  "use_freezed": true
}
9:41 AM
Ready to upgrade?
Just ran v1.2.4 update!
The API command is magic. ✨
Type a message...
Enterprise Module

Real-time Chat Engine

Don't waste weeks building chat foundations. Generate a battle-tested Socket.io chat module that scales to millions.

Socket.io v4+ Client
Threaded Conversations
Message Status Tracking
User Presence Logic
Open Source 500+ Devs Growing Fast

Loved by Modern Developers

Help us stay gravity-free. Join our growing community of architects, star the project on GitHub, or connect with the engine core to help us build the future of Flutter development.