https://github.com/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
https://github.com/Foso/Ktorfit
android annotation-processor http-client kotlin kotlin-compiler-plugin kotlin-mpp kotlin-multiplatform kotlin-multiplatform-mobile kotlin-native kotlinjs ksp ktor
Last synced: 14 days ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/Foso/Ktorfit
- Owner: Foso
- License: apache-2.0
- Created: 2019-08-21T19:58:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-26T19:17:07.000Z (20 days ago)
- Last Synced: 2025-03-27T14:02:40.104Z (20 days ago)
- Topics: android, annotation-processor, http-client, kotlin, kotlin-compiler-plugin, kotlin-mpp, kotlin-multiplatform, kotlin-multiplatform-mobile, kotlin-native, kotlinjs, ksp, ktor
- Language: Kotlin
- Homepage: https://foso.github.io/Ktorfit
- Size: 5.8 MB
- Stars: 1,717
- Watchers: 12
- Forks: 51
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-kotlin-multiplatform - Ktorfit - HTTP client / Kotlin Symbol Processor for Kotlin Multiplatform (Js, Jvm, Android, Native, iOS) using KSP and Ktor clients inspired by Retrofit (Libraries / Network)
- awesome-list - 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 (Kotlin)
- kmp-awesome - Ktorfit - Retrofit for Kotlin Multiplatform on KTS (Libraries / 🌎 Network)
- awesome-kotlin - ktorfit - A type-safe HTTP client for Kotlin Multiplatform. (Kotlin Multiplatform)
- awesome-kotlin - ktorfit - A type-safe HTTP client for Kotlin Multiplatform. (Kotlin Multiplatform)
README
Ktorfit
[](https://central.sonatype.com/search?q=g:de.jensklingenberg.ktorfit) [](https://github.com/Foso/Ktorfit)
[](https://github.com/Foso/Ktorfit/blob/master/LICENSE)
[Documentation](http://foso.github.io/Ktorfit)[](https://raw.githubusercontent.com/Foso/Ktorfit/master/docs/assets/badges/platforms.svg)
![]()
## Introduction
Ktorfit is an HTTP client/Kotlin Symbol Processor for Kotlin Multiplatform ( Android, iOS, Js, Jvm, Linux)
using [KSP](https://github.com/google/ksp) and [Ktor clients](https://ktor.io/docs/getting-started-ktor-client.html)
inspired by [Retrofit](https://square.github.io/retrofit/)## Show some :heart: and star the repo to support the project
[](https://github.com/Foso/Ktorfit) [](https://github.com/Foso/Ktorfit/fork) [](https://twitter.com/jklingenberg_)
## How to use
Please see the documentation at [https://foso.github.io/Ktorfit/](https://foso.github.io/Ktorfit/)
## Compatibility
See https://foso.github.io/Ktorfit/#compatibility## Ktorfit Packages
| Project | Version |
|-----------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| Ktorfit Gradle Plugin | [](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/de.jensklingenberg.ktorfit.gradle.plugin) |
| ktorfit-lib | [](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-lib) |
| ktorfit-lib-light | [](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-lib-light) |
| ktorfit-ksp | [](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-ksp) |
| ktorfit-converters-flow | [](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-flow) |
| ktorfit-converters-call | [](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-call) |
| ktorfit-converters-response | [](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-response) |You can find all Ktorfit packages on [Maven Central](https://search.maven.org/search?q=de.jensklingenberg.ktorfit).
🔎 Check the [latest changes](https://github.com/Foso/Ktorfit/blob/master/docs/CHANGELOG.md) to update your project.
🛠 Follow the [setup page](https://foso.github.io/Ktorfit/installation/) for more details
## ✍️ Feedback
Feel free to send feedback on [Twitter](https://twitter.com/jklingenberg_)
or [file an issue](https://github.com/foso/Ktorfit/issues/new). Feature requests/Pull Requests are always welcome.## Acknowledgments
Some parts of this project are reusing ideas that are originally coming
from [Retrofit](https://square.github.io/retrofit/) from [Square](https://github.com/square). Thank you for Retrofit!Thanks to JetBrains for Ktor and Kotlin!
## Credits
Ktorfit is brought to you by these [contributors](https://github.com/Foso/Ktorfit/graphs/contributors).
## 📜 License
This project is licensed under the Apache License, Version 2.0 - see
the [LICENSE.md](https://github.com/Foso/Ktorfit/blob/master/LICENSE) file for details