Skip to content
pubscout

cleany

2.0.9, released 3 days ago by an unverified publisher

Interactive Flutter architecture CLI for features and clean architecture code generation.

$ flutter pub add cleany
Source repository

What it does

Cleany is an interactive CLI tool that scaffolds feature-based and clean architecture Flutter projects. It generates features, components, use cases, and routing using Cubit or Bloc, along with environment configuration and encrypted local storage.

AI-written summary of version 2.0.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to bootstrap a new Flutter project using a strict Clean Architecture pattern.
  • You want a CLI to interactively generate features, components, and use cases.
  • You want automated wiring of dependencies and routing for new features.

Skip it when

  • You prefer writing your own folder structures and boilerplate manually.
  • Your project does not follow Clean Architecture or use Cubit/Bloc.

Strengths

  • Standardizes project structure and feature organization across a team.
  • Interactive terminal menu with recovery and self-healing doctor capabilities.
  • Automates boilerplate generation for data, domain, and presentation layers.

Weaknesses

  • Enforces a specific architectural pattern that may not fit all applications.
  • Customizing generated templates beyond the CLI's options can be restrictive.

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
8

Run dart pub global activate cleany, then run cleany inside a Flutter project directory.

flutter create playground
cd playground
cleany

Alternatives

Packages that do the same job and could replace cleany.

  • freezed

    Code generation for immutable classes, tagged unions, and cloning without boilerplate.

  • source_gen

    Source code generation builders and utilities for the Dart build system.

  • embed

    Generates Dart code that embeds arbitrary file contents as literals.

  • auto_mappr

    Code generation package for mapping between different objects with ease.

Works with

Packages commonly used together with cleany: ones it builds on, ones built on it, and its own family.