masamune
3.6.2, released 9 days ago by mathru.net
A Flutter framework that uses code generation to scaffold apps with built‑in state, routing, forms and theming.
What it does
Masamune generates boilerplate for routing, state management, database adapters, theming and forms via build_runner. It provides a CLI to create projects and watch code changes, reducing manual coding effort.
AI-written summary of version 3.6.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need rapid app scaffolding with consistent architecture
- You want type‑safe generated code for routing, state and forms
- You prefer a CLI‑driven workflow with automatic rebuilds
Skip it when
- You require fine‑grained custom logic that the generated code may restrict
- You want a lightweight solution without many dependencies
Strengths
- Very fast initial implementation
- Reduces boilerplate through code generation
- Consistent, type‑safe architecture across the app
- Integrated support for routing, storage, auth and theming
Weaknesses
- Heavy reliance on build_runner and many packages
- Steep learning curve for the framework and CLI
- Less flexibility for custom implementations
Setup
- Kind
- Flutter widgets
- Effort
- High
- Code generation
- Yes (build_runner)
- Direct dependencies
- 18
Install katana_cli globally, add masamune plus json_annotation, freezed_annotation, build_runner, masamune_builder, json_serializable, freezed; run katana create and katana code watch
// Create a new Masamune project
katana create com.example.myapp
// Then run code generation watcher
katana code watchAlternatives
Packages that do the same job and could replace masamune.
- freezed_annotation
Provides similar code‑generation for immutable models without the full framework
78Compare - hooks
Offers lightweight state‑management without the heavy scaffolding
86Compare - built_value
Alternative code‑gen approach for immutable value types
88Compare
Works with
Packages commonly used together with masamune: ones it builds on, ones built on it, and its own family.