Foso/Ktorfit
HTTP client generator / KSP plugin for Kotlin Multiplatform (Android, iOS, Js, Jvm, Native, WasmJs)) using KSP and Ktor clients inspired by Retrofit https://foso.github.io/Ktorfit observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- 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: 20.0
- age_days: 2569
- days_rel: 87
- days_push: 9
- n_releases_24m: 17
Adoption not part of the score
2081 stars · 79 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Ktorfit is an HTTP client generator for Kotlin Multiplatform that uses KSP (Kotlin Symbol Processing) to create type-safe API clients from annotated interfaces, built on top of Ktor clients. It is inspired by Square's Retrofit and supports Android, iOS, JVM, JS, Native, and WasmJs targets.
Use cases
- generate type-safe HTTP clients from interface definitions in Kotlin
- make REST API calls in a Kotlin Multiplatform app shared between Android and iOS
- replace Retrofit in a Kotlin Multiplatform project
- declarative API request definitions with annotations
- consume JSON APIs from Kotlin Native or JS code
When to choose
- you are building a Kotlin Multiplatform app and want a Retrofit-like declarative HTTP client
- you want compile-time code generation for API clients instead of runtime reflection
- you need one networking layer shared across Android, iOS, JVM, JS, and Native targets
When to avoid
- your project is not on Kotlin or Kotlin Multiplatform
- you prefer writing Ktor client calls manually or need full low-level control over requests
- you need a server-side HTTP framework rather than a client
Facets
library · maturity active
http-client sdk developer-tools web-development mobile-development developer-tools apis cross-platform jvm cross-platform kotlin-multiplatform ksp retrofit-inspired code-generation ktor annotation-processor android ios web-server
2 sources
- readme: https://github.com/Foso/Ktorfit · fetched 2026-08-28 · 750465556bb5
- homepage: https://foso.github.io/Ktorfit · fetched 2026-08-29 · 86e8cfc04c3c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Foso/Ktorfit | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem