Kotlin/Native + JVM

HTTP serving,
built in Kotlin.

Build HTTP services with a compact Kotlin routing API. Run ktServe on its own or use it with Ktor and Spring Boot WebFlux.

import codes.draeger.ktserve.*

fun main() = serve(port = 8080) {
    get("/health") { text("ok") }
}
GET /health200 OK

What are you building?

Build an HTTP API

Start with a route, return JSON, and run your app on Kotlin/Native or the JVM.

Serve from the terminal

Serve a directory, return JSON from stdin, or run a Kotlin file with the CLI.

Keep your framework

Use ktServe as a Ktor engine or plug it into Spring Boot WebFlux.

A core you can extend.

Add request validation, OpenAPI, CORS, access logs, bearer parsing, or OpenTelemetry through separate modules.

Run on Native or JVM.

See how transports share the same HTTP core and choose a deployment path for your application.