# libktx/ktx

Kotlin extensions for the libGDX game framework

Repository: https://github.com/libktx/ktx
Canonical: https://ross.abutalabs.com/products/libktx-ktx
Homepage: https://libktx.github.io/
Language: Kotlin
License: CC0-1.0
License Family: permissive
Topics: kotlin, libgdx, scene2d, kotlin-utilities, coroutines, libgdx-api, kotlin-library, kotlin-extensions, kotlin-coroutines, kotlin-dsl, box2d, libktx, async, ktx, graphics, game-development, game-engine, hacktoberfest, gamedev, android
Last push: 2025-06-28T20:52:55+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 29, release rhythm 8, longevity 100
- inputs: {"age_days": 3715, "days_push": 431, "days_rel": 576, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1462, forks 75 (observed 2026-08-28T04:04:47.582046+00:00)

## What it is
KTX is a collection of modular Kotlin extensions for the libGDX game framework, leveraging Kotlin features like coroutines, type-safe builders, and operator overloads to improve libGDX's ergonomics. It ships as many small modules covering GUI, physics, assets, ECS, math, logging, and more, for desktop, Android, and iOS targets.

## Use cases
- write a libGDX game in Kotlin with idiomatic APIs
- build Scene2D UIs with type-safe Kotlin builders
- load game assets asynchronously with coroutines
- set up Box2D physics with Kotlin DSL
- use Ashley or Artemis ECS with Kotlin utilities
- reduce boilerplate in libGDX logging and collections

## When to choose
- you use libGDX with Kotlin and want less boilerplate
- you want modular opt-in utilities rather than a full framework rewrite
- you need coroutine-based async asset loading on libGDX

## When to avoid
- your project is pure Java on libGDX
- you use a different game engine like Godot or Unity
- you need a complete engine rather than extensions

## Facets
- artifact type: library
- maturity: active
- function: game-engine, concurrency, logging, serialization, internationalization, math, gui
- domain: cross-platform, developer-tools
- platform: jvm, cross-platform
- tags: kotlin, libgdx, kotlin-extensions, coroutines, scene2d, box2d, ecs, type-safe-builders, gamedev, modular, game-development, android, desktop, ios

## Member repositories
- libktx/ktx (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:47.582046+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-30T04:35:17.970800+00:00, confidence not recorded.
  - readme: https://github.com/libktx/ktx (fetched 2026-08-28T04:04:47.582046+00:00, sha 11db70adbcc9)
  - homepage: https://libktx.github.io/ (fetched 2026-08-29T11:43:47.389845+00:00, sha eb54912c53c7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
