kotlinpoet and DartPoet

These are ecosystem siblings—KotlinPoet is a general-purpose code generation library for Kotlin that DartPoet builds upon as a dependency to generate Dart code from a Kotlin API, similar to how language-specific poet libraries extend a common pattern.

kotlinpoet
65
Established
DartPoet
40
Emerging
Maintenance 20/25
Adoption 10/25
Maturity 16/25
Community 19/25
Maintenance 13/25
Adoption 4/25
Maturity 9/25
Community 14/25
Stars: 4,129
Forks: 306
Downloads:
Commits (30d): 15
Language: Kotlin
License: Apache-2.0
Stars: 8
Forks: 3
Downloads:
Commits (30d): 0
Language: Kotlin
License: AGPL-3.0
No Package No Dependents
No Package No Dependents

About kotlinpoet

square/kotlinpoet

A Kotlin API for generating .kt source files.

Provides a fluent builder API for programmatically constructing Kotlin code with full support for classes, functions, properties, annotations, and type specifications. Uses a compositional object model where code elements are represented as immutable data structures, enabling precise control over formatting, imports, and code generation. Commonly used in annotation processors, code generators, and build-time tools within the JVM ecosystem.

About DartPoet

theEvilReaper/DartPoet

A Kotlin API which allows the generation of code for dart

Provides a fluent builder API for programmatically constructing Dart source files with support for classes, methods, fields, and other core language constructs—inspired by JavaPoet and KotlinPoet's design patterns. Unsupported Dart language features can be injected via the `CodeBlock` class, with generated code targeting Dart 2.12.0+ null-safety semantics. Currently distributed through Maven snapshots while under active development.

Scores updated daily from GitHub, PyPI, and npm data. How scores work