square/kotlinpoet

A Kotlin API for generating .kt source files.

65
/ 100
Established

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.

4,129 stars. Actively maintained with 15 commits in the last 30 days.

No Package No Dependents
Maintenance 20 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 19 / 25

How are scores calculated?

Stars

4,129

Forks

306

Language

Kotlin

License

Apache-2.0

Last pushed

Mar 19, 2026

Commits (30d)

15

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/square/kotlinpoet"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.