cleany
2.0.9, released 3 days ago by an unverified publisher
Interactive Flutter architecture CLI for features and clean architecture code generation.
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
cleanyAlternatives
Packages that do the same job and could replace cleany.
- freezed
Code generation for immutable classes, tagged unions, and cloning without boilerplate.
96Compare - source_gen
Source code generation builders and utilities for the Dart build system.
84Compare - embed
Generates Dart code that embeds arbitrary file contents as literals.
75Compare - auto_mappr
Code generation package for mapping between different objects with ease.
79Compare
Works with
Packages commonly used together with cleany: ones it builds on, ones built on it, and its own family.
- analyzercleany depends on itPerforms static analysis of Dart code for tool integration and embedding.
- yamlcleany depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptocleany depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semvercleany depends on itVersions and version constraints implementing pub's versioning policy.
- xmlcleany depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- dart_stylecleany depends on itProvides an API and CLI to format Dart source code automatically.
- yaml_editcleany depends on itYAML manipulation library preserving comments and whitespace