fun main() {
embeddedServer(Netty, port = 8000) {
routing {
get ("/") {
call.respondText("Hello, world!")
}.start(wait = true)

Simple and fun

Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!

Latest release: 2.0.0-beta-1

Why Ktor?

Kotlin and Coroutines

Ktor is built from the ground up using Kotlin and Coroutines. You get to use a concise, multiplatform language, as well as the power of asynchronous programming with an intuitive imperative flow.

Lightweight and Flexible

Ktor allows you to use only what you need, and to structure your application the way you need it. In addition you can also extend Ktor with your own plugin very easily.

Built and backed by JetBrains

Brought to you by JetBrains, creators of IntelliJ IDEA, Kotlin, and more. Ktor is not only used by our customers, but also internally at JetBrains. In addition, you have top-notch tooling support!

«I believe the future is bright for Ktor! It is so robust and fast to work with, and it is written in Kotlin! It has a variety of options that make it easy to develop and deploy via Gradle and Maven, which is great.»

Burak Akgün, HTG

«Ktor gave us the speed, convenience, and ease that our Kotlin developers needed on the backend.»

Tobias Marschall, Tapped