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) 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 — Scala.js in the JavaScript Ecosystem

Part VIII — Scala Native and the C/Rust World

Part IX — Capstone

Appendices

Status

All parts are drafted, Foreword through the appendices. The book is best read front to back the first time; afterwards, use it as a jumping-off point into the reference docs.

Released under the Apache 2.0 License.