# google/ksp

Kotlin Symbol Processing API

Repository: https://github.com/google/ksp
Canonical: https://ross.abutalabs.com/products/ksp
Homepage: https://github.com/google/ksp
Language: Kotlin
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T15:39:59+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 2171, "days_push": 7, "days_rel": 30, "gap_med": 14.5, "n_releases_24m": 35}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3475, forks 415 (observed 2026-08-28T04:08:06.113225+00:00)

## What it is
Kotlin Symbol Processing (KSP) is an API from Google for developing lightweight Kotlin compiler plugins, primarily used for annotation processing and code generation. It offers a simplified alternative to KAPT with up to 2x faster processing and integrates via Gradle.

## Use cases
- generate boilerplate code from annotations in Kotlin
- replace KAPT with faster annotation processing
- write lightweight Kotlin compiler plugins
- process Kotlin symbols at build time
- speed up Room or Moshi code generation in Android builds
- run annotation processors on Kotlin multiplatform projects

## When to choose
- you maintain a Kotlin annotation processor and want better build performance than KAPT
- you need to analyze or generate Kotlin source code during compilation
- you build Android or JVM libraries that rely on code generation

## When to avoid
- you need full compiler plugin capabilities like changing compiler behavior or IR transformations
- your project is not Kotlin/JVM-based
- you only need simple build-time scripting without code analysis

## Facets
- artifact type: library
- maturity: active
- function: compiler, parser, build-tool
- domain: programming-languages, developer-tools, compilers
- platform: jvm
- tags: kotlin, annotation-processing, compiler-plugin, kapt-alternative, symbol-processing, gradle-plugin, code-generation, gradle, android

## Member repositories
- google/ksp (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:06.113225+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:36:32.438548+00:00, confidence not recorded.
  - readme: https://github.com/google/ksp (fetched 2026-08-28T04:08:06.113225+00:00, sha 0916aa8e1b6d)
  - homepage: https://github.com/google/ksp (fetched 2026-08-29T09:30:29.321102+00:00, sha ee85d116d14a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
