Servers moved to Tapir main repo ⚠️

This repository is now archived. Since Tapir 1.9.0, loom-based backends are migrated to the main Tapir repository:

tapir + loom integration.

Requires Java 21.

There are currently two server interpreters available:

Try running SleepDemo with some load: wrk -c 100 http://localhost:8080/hello.

To use, add one of the following dependencies:

"com.softwaremill.sttp.tapir" %% "tapir-netty-server-id" % "0.2.5"
// or
"com.softwaremill.sttp.tapir" %% "tapir-nima-server" % "0.2.5"

Then, use NimaServerInterpreter or the NettyIdServer as other netty server variants. For example:

import sttp.tapir._

object SleepDemo extends App {
  val e = endpoint.get.in("hello").out(stringBody).serverLogicSuccess[Id] { _ =>
    "Hello, world!"

An example can be found in nima/src/test/scala/sttp/tapir/server/nima/SleepDemo.scala, which can be started with nima/Test/run.

To enable debug logs for tests, adjust nima/src/test/resources/logback.xml.