Skip to content

The Uni Book

A guided tour of Scala 3 application development with Uni.

This book teaches you to build real applications with Uni on Scala 3, across the JVM, Scala.js, and Scala Native. It is written for developers who already read Scala comfortably and want to understand not only how Uni works but why its pieces are shaped the way they are.

The Book is narrative. It is meant to be read front to back at first, and used as a jumping-off point afterwards. The short-form API documentation under Guide and the module references (e.g. Core, HTTP, Agent) stay where they are, and the Book links into them when you need depth.

How to read it

  • Work from Part I to the end of Part II in order. Everything that follows assumes the mental model built in those two parts.
  • Each part opens with a short intro page; each chapter ends with a "what you have, what comes next" recap. If the recap doesn't feel true yet, re-read the chapter before moving on.
  • Type the examples. Reading them is not the same exercise.

Table of contents

Foreword

Part I — Getting Started

Part II — Building a CLI Application

Part III — Core Concepts

Part IV — Async & Control Flow

Part V — HTTP & RPC

Part VI — Cross-Platform Development

Part VII — Agent Framework

Part VIII — Testing

Appendices

Status

Parts I and II are drafted. Parts III through VIII are stubs with outlines; they will ship in follow-up pull requests. If a link leads to a "Coming soon" page, that is working as intended.

Released under the Apache 2.0 License.