freezed: a Flutter developer's guide
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
freezed is an open-source developer tooling library for Flutter mobile app development, with 2,184★ on GitHub and last updated on 2026-06-28. This guide covers what freezed does, why it matters in 2026, how to add it to your project, when to reach for it, and how it compares to the alternatives — plus a quick FAQ.
What is freezed?
Code generation for immutable classes that has a simple syntax/API without compromising on the features. It focuses on improving your Flutter developer workflow and codebase. The project lives at rrousselGit/freezed and is maintained by rrousselGit.
Why freezed is worth knowing in 2026
freezed carries 2,184 GitHub stars, 303 forks, 116 open issues. It has been around since 2020, and is actively maintained (updated within the last month). For a Library/Tooling option, that combination of adoption and upkeep usually means a healthy community, production usage, and plenty of examples to learn from — the things that make a dependency safe to build on.
Installing freezed
Add the package to your pubspec.yaml:
dependencies:
freezed: ^latest
Then fetch it and import it in your Dart code:
flutter pub get
import 'package:freezed/freezed.dart';
Check the package’s example/ directory and its pub.dev page for the exact API — freezed is versioned there with full docs so you always integrate against the current release.
When should you use freezed?
Reach for freezed when:
- you want to automate or streamline part of your build
- you need better debugging, codegen, or DX
- you’re standardising tooling across a team
It’s especially relevant if your project touches code-generator, dart, flutter, hacktoberfest, union-types.
freezed vs. the alternatives
If you’re weighing options in the Library/Tooling space, these are the other projects developers most often compare freezed against:
- FlClash: a Flutter developer’s guide
- ente: a Flutter developer’s guide
- NativeScript: a Flutter developer’s guide
- antlr4: a Flutter developer’s guide
There’s no single winner — the right pick depends on your app’s size, your team’s familiarity, and your performance budget. Browse the full Library/Tooling collection to compare them side by side.
Frequently asked questions
Is freezed free to use?
Yes. freezed is open source and free to use in your Flutter projects. You can view the source, report issues, and contribute on GitHub.
Does freezed work on both iOS and Android?
freezed is built for Flutter, so it targets iOS and Android from a single codebase, and typically web and desktop too depending on the project’s platform support.
How popular is freezed?
As of 2026, freezed has around 2,184 stars and 303 forks on GitHub, which puts it among the more widely used options in the Library/Tooling space.
What are good alternatives to freezed?
Popular alternatives in the Library/Tooling category include flclash, ente, nativescript. The best choice depends on your app’s size, team, and performance needs.
How do I install freezed?
Add freezed to the dependencies section of your pubspec.yaml and run flutter pub get. Full versions and API docs are on pub.dev.
Resources & links
- GitHub: rrousselGit/freezed
- pub.dev: freezed
- Video tutorials: search YouTube for freezed
Part of FlutterCook — 500 hands-on guides to the best open-source Flutter libraries, UI kits, and apps. Explore the live GitHub trends or browse YouTube guides.