Skip to content

All Modules ​

Every module page, grouped the same way as the sidebar. Add one dependency, "org.wvlet.uni" %% "uni" (Installation), and all of these are available unless a row says otherwise.

Core ​

PageDescription
DesignObject wiring with lifecycle management
LoggingLogging with source locations through LogSupport
Type IntrospectionCompile-time type information with Surface
ResultA value that may have failed, with a typed error channel
SettingStoreUser settings that survive restarts, as an RxVar
UtilitiesIDs (UUIDv7, ULID, NanoId), encodings, value types, and timing

Data & Serialization ​

PageDescription
WeaverJSON, MessagePack, and Map codecs from one derives Weaver
JSONPure-Scala JSON parser, JSONValue tree, and query DSL
MessagePackCompact binary serialization
YAMLYAML 1.2 parser with Weaver decoding and frontmatter
MarkdownCommonMark + GFM parser and safe HTML renderer
CronCron expressions with next-run times and English descriptions

Files & Memory ​

PageDescription
IOOne entry point for file operations and subprocesses
FileSystemCross-platform file I/O with IOPath
Canvas (Off-Heap Memory)Memory buffers larger than 2 GB, addressed by Long offsets

Reactive Streams (Rx) ​

PageDescription
OverviewWhat Rx and RxVar are and when to use them
Rx BasicsCreating and subscribing to streams
Stream OperatorsTransforming and combining streams
Rx ConcurrencyRxRef, RxDeferred, fibers, and semaphores

Control Flow ​

PageDescription
OverviewHandling failures and managing resources
Retry LogicRetry with backoff strategies
Circuit BreakerStop calling a failing service
Rate LimiterThrottle operation throughput (JVM)
CachingTTL and LRU caches
Resource ManagementAcquire and release resources safely
Background TaskCancellable background work you can poll for progress

HTTP & RPC ​

PageDescription
OverviewThe cross-platform HTTP stack at a glance
HTTP ClientSync and async HTTP clients
REST ServerHTTP server on Netty, Node.js, or Scala Native
RouterType-safe route definitions
RPCScala traits as remote services, with generated clients
OpenAPIOpenAPI 3.0 documents from @Endpoint routes
Server-Sent EventsOne-way server-to-client streaming
WebSocket ClientCross-platform bidirectional WebSocket client
HTTP Retry StrategiesAutomatic retry for transient HTTP failures
MCP Server (stdio)A Scala trait as an MCP server that AI agents call as tools

CLI ​

PageDescription
OverviewBuilding command-line applications
Terminal StylingColored terminal output with Tint
Progress IndicatorsProgress bars and spinners
Line EditingLine editing, history, and completion for REPLs
Command LauncherType-safe command-line argument parsing

Testing & Build ​

PageDescription
UniTestLightweight cross-platform test framework (uni-test)
sbt-uni PluginRPC client generation and other build tasks
sbt-uni-playwright PluginRun Scala.js tests in a real browser
sbt-uni-crossproject PluginCross-build for JVM, Scala.js, and Scala Native
sbt-uni-javadoc PluginKeep published -javadoc.jar files small

Web UI (Scala.js) ​

Browser and desktop UIs have their own section: start at Web UI, which covers uni-dom, the uni-ui components (uni-ui), and Electron desktop apps.

Released under the Apache 2.0 License.