Monix

Asynchronous Programming for Scala and Scala.js.

Overview #

Monix is a high-performance Scala / Scala.js library for composing asynchronous, event-based programs.

A Typelevel project, Monix proudly exemplifies pure, typeful, functional programming in Scala, while making no compromise on performance.

Highlights:

  • exposes the kick-ass Observable, Iterant, Task and Coeval data types, along with all the support they need
  • modular, only use what you need
  • designed for true asynchronicity, running on both the JVM and Scala.js
  • excellent test coverage, code quality and API documentation as a primary project policy

The project started as a proper implementation of ReactiveX, with stronger functional programming influences and designed from the ground up for back-pressure and made to cleanly interact with Scala’s standard library, compatible out-of-the-box with the Reactive Streams protocol. It then expanded to include abstractions for suspending side effects and for resource handling, being one of the parents and implementors of Cats Effect.

Presentations #

Featured presentation:

See all presentations!

Download and Usage #

The packages are published on Maven Central.

In SBT for the latest 3.x release that integrates with Typelevel Cats out of the box (use the %%% for Scala.js):

libraryDependencies += "io.monix" %% "monix" % "3.4.0"

Monix is modular by design, so you can have an à la carte experience, the project being divided in multiple sub-projects.

See Usage in SBT, along with the sub-modules graph, and don’t miss the versioning scheme for binary-backwards compatibility guarantees.

Documentation #

Documentation and tutorials:

API ScalaDoc:

Relevant links to dependencies:

Latest News #

  1. Monix 3.4.0
  2. Monix 3.3.0
  3. Monix 3.2.2
  4. Monix 3.2.1
  5. Monix 3.2.0

Adopters #

Here’s a (non-exhaustive) list of companies that use Monix in production. Don’t see yours? You can add it in a PR!

License #

Copyright (c) 2014-2022 by The Monix Project Developers. Some rights reserved.

See LICENSE