Skip to content

UniEssential Scala Utilities

Refined for Scala 3 with minimal dependencies

Uni

Getting Started

scala
// Core utilities (Design, logging, JSON, MessagePack, Rx, HTTP client, etc.)
libraryDependencies += "org.wvlet.uni" %% "uni" % "2026.1.22"

// Netty-based HTTP server (JVM only)
libraryDependencies += "org.wvlet.uni" %% "uni-netty" % "2026.1.22"

// Testing framework
libraryDependencies += "org.wvlet.uni" %% "uni-test" % "2026.1.22" % Test
testFrameworks += new TestFramework("wvlet.uni.test.Framework")
scala
//> using dep org.wvlet.uni::uni:2026.1.22
//> using dep org.wvlet.uni::uni-netty:2026.1.22

Quick Example

scala
import wvlet.uni.log.LogSupport

class MyService extends LogSupport:
  def greet(name: String): String =
    info(s"Greeting ${name}")
    s"Hello, ${name}!"

@main def hello =
  val service = MyService()
  println(service.greet("World"))

Modules

ModuleDescription
uniCore utilities: Design, logging, JSON, MessagePack, Rx, HTTP client
uni-nettyNetty-based HTTP server (JVM only)
uni-testLightweight testing framework with cross-platform support

Cross-Platform Support

uni is designed for cross-platform Scala development:

  • JVM - Full feature support
  • Scala.js - Browser and Node.js environments
  • Scala Native - Native binary compilation

Released under the Apache 2.0 License.