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

2,102

1,119 commits

updated Oct 8, 2026

See the code

README

Ktorfit

Maven PRs Welcome License Documentation

Platforms

Introduction

Ktorfit is an HTTP client/Kotlin Symbol Processor for Kotlin Multiplatform ( Android, iOS, Js, Jvm, Linux) using KSP and Ktor clients inspired by Retrofit

Show some ❤️ and star the repo to support the project

GitHub stars GitHub forks Twitter Follow

How to use

Please see the documentation at https://foso.github.io/Ktorfit/

Compatibility

See https://foso.github.io/Ktorfit/#compatibility

Ktorfit Packages

ProjectVersion
Ktorfit Gradle PluginMaven Central
ktorfit-libMaven Central
ktorfit-lib-lightMaven Central
ktorfit-converters-flowMaven Central
ktorfit-converters-callMaven Central
ktorfit-converters-responseMaven Central

You can find all Ktorfit packages on Maven Central.

🔎 Check the latest changes to update your project.

🛠 Follow the setup page for more details

✍️ Feedback

Feel free to send feedback on Twitter or file an issue. Feature requests/Pull Requests are always welcome.

Acknowledgments

Some parts of this project are reusing ideas that are originally coming from Retrofit from Square. Thank you for Retrofit!

Thanks to JetBrains for Ktor and Kotlin!

Credits

Ktorfit is brought to you by these contributors.

📜 License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE.md file for details

android
annotation-processor
http-client
kotlin
kotlin-compiler-plugin
kotlinjs
kotlin-mpp
kotlin-multiplatform
kotlin-multiplatform-mobile
kotlin-native
ksp
ktor

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

2,102

1,119 commits

updated Oct 8, 2026

See the code

README

Ktorfit

Maven PRs Welcome License Documentation

Platforms

Introduction

Ktorfit is an HTTP client/Kotlin Symbol Processor for Kotlin Multiplatform ( Android, iOS, Js, Jvm, Linux) using KSP and Ktor clients inspired by Retrofit

Show some ❤️ and star the repo to support the project

GitHub stars GitHub forks Twitter Follow

How to use

Please see the documentation at https://foso.github.io/Ktorfit/

Compatibility

See https://foso.github.io/Ktorfit/#compatibility

Ktorfit Packages

ProjectVersion
Ktorfit Gradle PluginMaven Central
ktorfit-libMaven Central
ktorfit-lib-lightMaven Central
ktorfit-converters-flowMaven Central
ktorfit-converters-callMaven Central
ktorfit-converters-responseMaven Central

You can find all Ktorfit packages on Maven Central.

🔎 Check the latest changes to update your project.

🛠 Follow the setup page for more details

✍️ Feedback

Feel free to send feedback on Twitter or file an issue. Feature requests/Pull Requests are always welcome.

Acknowledgments

Some parts of this project are reusing ideas that are originally coming from Retrofit from Square. Thank you for Retrofit!

Thanks to JetBrains for Ktor and Kotlin!

Credits

Ktorfit is brought to you by these contributors.

📜 License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE.md file for details

android
annotation-processor
http-client
kotlin
kotlin-compiler-plugin
kotlinjs
kotlin-mpp
kotlin-multiplatform
kotlin-multiplatform-mobile
kotlin-native
ksp
ktor

Significant stargazers

Bartek Pacia

557 followers · starred Jul 2023

Roman Zavarnitsyn

124 followers · starred May 2023

Sebastian Sellmair

303 followers · starred May 2023

James Ward

1,938 followers · starred Jun 2022