# LemonAppDev/konsist

Konsist is a powerful static code analyzer tailored for Kotlin, focused on ensuring codebase consistency and adherence to coding conventions.

Repository: https://github.com/LemonAppDev/konsist
Canonical: https://ross.abutalabs.com/products/konsist
Homepage: https://docs.konsist.lemonappdev.com
Language: Kotlin
License: Apache-2.0
License Family: permissive
Last push: 2026-08-17T04:37:54+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 40, longevity 89
- inputs: {"age_days": 1252, "days_push": 16, "days_rel": 633, "gap_med": 5.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1716, forks 39 (observed 2026-08-28T04:05:26.367328+00:00)

## What it is
Konsist is a structural linter and static code analyzer for Kotlin that enforces codebase consistency and architecture rules. Checks are written as unit tests (JUnit/Kotest) that query and assert on Kotlin declarations like classes, interfaces, functions, and properties.

## Use cases
- enforce naming conventions for Kotlin classes
- verify architecture layer boundaries in a Kotlin project
- check that ViewModel classes follow naming rules on Android
- ensure Spring repository interfaces follow conventions
- guard package structure in Kotlin Multiplatform projects
- stop architecture debates in code reviews with automated tests

## When to choose
- you want ArchUnit-style architecture tests for Kotlin
- your team needs automated enforcement of naming and package conventions
- you work on Android, Spring, or Kotlin Multiplatform projects and want structure checks as unit tests

## When to avoid
- you need general-purpose linting of style issues (use ktlint or detekt)
- your project is not written in Kotlin
- you need a baseline file workflow, which Konsist does not yet support

## Facets
- artifact type: library
- maturity: active
- function: linter, testing, static-site-generator
- domain: developer-tools, testing, programming-languages
- platform: jvm, cli
- tags: kotlin, architecture-rules, archunit-alternative, code-consistency, unit-tests, junit, kotest, android, spring, kotlin-multiplatform

## Member repositories
- LemonAppDev/konsist (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.367328+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-30T03:34:14.703126+00:00, confidence not recorded.
  - readme: https://github.com/LemonAppDev/konsist (fetched 2026-08-28T04:05:26.367328+00:00, sha 57fffef8779e)
  - homepage: https://docs.konsist.lemonappdev.com (fetched 2026-08-29T11:10:24.845247+00:00, sha 12b3f3b932ce)
  - site_page: https://docs.konsist.lemonappdev.com/getting-started/getting-started (fetched 2026-08-29T11:10:24.854520+00:00, sha 4ad08c4cc4e2)
  - site_page: https://docs.konsist.lemonappdev.com/getting-started/articles (fetched 2026-08-29T11:10:24.856343+00:00, sha 3663ea72f6ad)
  - site_page: https://docs.konsist.lemonappdev.com/features/add-konsist-existing-project (fetched 2026-08-29T11:10:24.858158+00:00, sha cbc44da5ff30)
  - site_page: https://docs.konsist.lemonappdev.com/features/debug-konsist-test (fetched 2026-08-29T11:10:24.860101+00:00, sha 5c1916f8848d)
  - site_page: https://docs.konsist.lemonappdev.com/features/declaration (fetched 2026-08-29T11:10:24.861933+00:00, sha 19876298c961)
  - site_page: https://docs.konsist.lemonappdev.com/features/declaration-vs-property (fetched 2026-08-29T11:10:24.863515+00:00, sha 158e91549328)
  - site_page: https://docs.konsist.lemonappdev.com/features/compiler-type-inference (fetched 2026-08-29T11:10:24.864976+00:00, sha dc03c95eeeea)
  - site_page: https://docs.konsist.lemonappdev.com/features/packageselector (fetched 2026-08-29T11:10:24.866872+00:00, sha f0fad7ff3f58)
- Data as of 2026-08-30T08:39:29.467469+00:00.
