
Simplifies interaction with Cloudflare Workers by leveraging a powerful framework, enabling rapid MVP development, seamless multiplatform support, and streamlined utility functions for scalable applications.
Welcome to the Ktor Cloudflare Worker Library, a Kotlin multiplatform library that simplifies interaction with Cloudflare Workers by building on top of the powerful Ktor framework. Whether you're targeting Android, iOS, web, or desktop, this library provides the helper functions you need to rapidly develop a Minimum Viable Product (MVP).
By using this library, you can leverage the full power of Kotlin Multiplatform to create robust, client-side applications across all major platforms—without sacrificing speed or flexibility.
ktor-cloudflare-worker supports it all, thanks to Kotlin's powerful multiplatform capabilities.Add the following dependency to your build.gradle.kts, could be used in common or any target(Android, iOS, web, and desktop):
implementation("io.keeppro:ktor-cloudflare-worker:1.0.2")Check out the examples directory to see how you can integrate this library into your projects.
coroutineScope.launch(exceptionHandler) {
//request to worker through KCWClient
val kcwClient: KCWClient = KCWClient.create(
KCWConfig(baseUrl = getString(Res.string.base_url))
)
kcwClient.uploadFile(
path = "projects/test123/logo",
contentType = "image/jpeg",
byteArray = Res.readBytes("files/display_pad.jpeg")
)
state.value = UploadState.Success
}
The library provides simple, yet powerful, functions to interact with your Cloudflare Workers seamlessly.
This project is licensed under the MIT License. See the LICENSE file for details.
This library is already powering production applications! Check out KeepPro, a queue management app built using ktor-cloudflare-worker for seamless interactions with Cloudflare Workers across multiple platforms.
If you're using this library in your project, we'd love to hear from you! Feel free to open a PR and add your app to this showcase.
Welcome to the Ktor Cloudflare Worker Library, a Kotlin multiplatform library that simplifies interaction with Cloudflare Workers by building on top of the powerful Ktor framework. Whether you're targeting Android, iOS, web, or desktop, this library provides the helper functions you need to rapidly develop a Minimum Viable Product (MVP).
By using this library, you can leverage the full power of Kotlin Multiplatform to create robust, client-side applications across all major platforms—without sacrificing speed or flexibility.
ktor-cloudflare-worker supports it all, thanks to Kotlin's powerful multiplatform capabilities.Add the following dependency to your build.gradle.kts, could be used in common or any target(Android, iOS, web, and desktop):
implementation("io.keeppro:ktor-cloudflare-worker:1.0.2")Check out the examples directory to see how you can integrate this library into your projects.
coroutineScope.launch(exceptionHandler) {
//request to worker through KCWClient
val kcwClient: KCWClient = KCWClient.create(
KCWConfig(baseUrl = getString(Res.string.base_url))
)
kcwClient.uploadFile(
path = "projects/test123/logo",
contentType = "image/jpeg",
byteArray = Res.readBytes("files/display_pad.jpeg")
)
state.value = UploadState.Success
}
The library provides simple, yet powerful, functions to interact with your Cloudflare Workers seamlessly.
This project is licensed under the MIT License. See the LICENSE file for details.
This library is already powering production applications! Check out KeepPro, a queue management app built using ktor-cloudflare-worker for seamless interactions with Cloudflare Workers across multiple platforms.
If you're using this library in your project, we'd love to hear from you! Feel free to open a PR and add your app to this showcase.