Ross ROSS = Recommend OSS · open-source software intelligence for agents

square/kotlinpoet

A Kotlin API for generating .kt source files. observed · 2026-08-28

github.com/square/kotlinpoet · homepage · Kotlin · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

83/100

  • Activity 99
  • Release rhythm 53
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 125
  • age_days: 3472
  • days_rel: 159
  • days_push: 7
  • n_releases_24m: 4

Full methodology

Adoption not part of the score

4157 stars · 316 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

KotlinPoet is a Kotlin and Java API for generating .kt source files, inspired by JavaPoet. It is commonly used for annotation processing and generating code from metadata such as database schemas or protocol formats.

Use cases

  • generate kotlin source files programmatically
  • write an annotation processor that emits kotlin code
  • generate boilerplate from database schemas
  • generate kotlin classes from protocol or metadata files
  • avoid hand-writing repetitive kotlin code

When to choose

  • you need to emit valid Kotlin source code from JVM code
  • you are building a Kotlin compiler plugin or annotation processor
  • you want a fluent, type-safe API instead of string-templated code generation

When to avoid

  • you need to generate Java source code (use JavaPoet instead)
  • you need to parse or analyze existing Kotlin code rather than generate it
  • your target language is not Kotlin

Facets

library · maturity stable

developer-tools developer-tools programming-languages jvm kotlin code-generation javapoet-inspired annotation-processing source-generation

2 sources

Member repositories

RepositoryRoleHealth v2
square/kotlinpoetmain83

For agents

markdown · JSON · MCP: product_card(name="square/kotlinpoet")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem