talira

Compare

build_versionsource_gen
What it isPut your Dart package's version into your source codeA framework for writing Dart code generators
KindOpen sourceOpen source
Trust0.380.50
Stars44492
Last commit2026-11-012026-11-20
LicenceBSD-3-ClauseBSD-3-Clause
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyKevin MooreGoogle
public company (NASDAQ:GOOGL)
Features
  • generates a Dart file holding the package's pubspec version
  • standalone CLI with no dev_dependencies needed
  • --check mode to verify the generated file in CI
  • a build_runner builder with a configurable output path
  • Generator and GeneratorForAnnotation base classes
  • SharedPartBuilder, PartBuilder and LibraryBuilder for where generated code goes
  • combining_builder that merges several generators' output into one .g.dart file
  • configurable header and ignore_for_file lints for generated files
Limitations
  • The standalone CLI needs Dart 3.12 or newer.