Skip to main content
Version: 2.x

ZIO Ecosystem

ZIO has a rich ecosystem of libraries and tools that enhance its capabilities and provide additional functionality, for web development, data processing, testing, and more.

Find a library by name or by purpose below. Official libraries are maintained by the ZIO team under the ZIO organization, and include the blocks of ZIO Blocks, which zioblocks.com/reference groups by the same categories. Community libraries are maintained by members of the ZIO community, and compatible libraries work with ZIO.

Web & APIs4 libraries · 9 blocks

  • CalibanCommunity

    A purely functional library for creating GraphQL servers and clients in Scala.

  • DatastarOfficial

    Typed Datastar attribute and signal DSL, plus the SSE events that patch a live page

  • EndpointOfficial

    Type-safe HTTP endpoint descriptors with composable codecs and typed auth

  • ZIO gRPCCommunity

    A library for writing purely functional gRPC servers and clients with ZIO.

  • HTMLOfficial

    Type-safe HTML templating with XSS protection

  • HTMXOfficial

    Typed HTMX DSL for compile-time-checked HTMX attributes

  • A type-safe, composable, and feature-rich HTTP library built on top of ZIO.

  • HTTP ModelOfficial

    Pure HTTP data model with URL parsing, headers, cookies, and forms

  • Schema-based typed access to the HTTP model

  • JWTOfficial

    Zero-dependency JWT signing and verification with HMAC, RSA, ECDSA and EdDSA support

  • MediaTypeOfficial

    Type-safe IANA media types with 2,600+ predefined types

  • OpenAPIOfficial

    Type-safe OpenAPI 3.1 specification generation and rendering

  • TapirCommunity

    A library to describe HTTP APIs, expose them as a server, consume them as a client, and document them automatically, with first-class ZIO support.

Data Access11 libraries · 4 blocks

  • Typed, online database schema migrations in three execution models, with no hand-written SQL

  • DecrelCommunity

    A library for declarative programming using relations between data, with automatic batching, parallelization, and caching.

  • ZIO DynamoDBOfficial

    Simple, type-safe, and efficient access to AWS DynamoDB.

  • A type-safe and streaming-friendly ZIO-native Elasticsearch client.

  • ZIO integration with ZIO.attemptBlocking and ZLayer

  • ZIO LMDBCommunity

    An embedded, ACID, key-value database for ZIO, stored in a single file.

  • Mongo4catsCommunity

    A functional and idiomatic interface for MongoDB, with a dedicated ZIO 2 module.

  • ZIO MongoDBCommunity

    A ZIO wrapper around the official MongoDB Java driver, with compile-time codecs and a type-safe query DSL.

  • ProjectionOfficial

    Event-sourced projections with per-entity SQLite storage

  • ZIO QueryOfficial

    A library for writing optimized queries to data sources in a compositional style, with batching, pipelining, and caching.

  • ZIO QuillOfficial

    A quoted domain-specific language for expressing queries in Scala and executing them as SQL or CQL.

  • ZIO RedisOfficial

    A type-safe and performant ZIO-native Redis client.

  • ZIO RocksdbOfficial

    A ZIO-based interface to RocksDB.

  • SQL ModuleOfficial

    Type-safe JDBC wrapper with schema-derived codecs and a CRUD repository

  • TranzactIOCommunity

    A ZIO wrapper for database access libraries, currently Doobie and Anorm.

Streaming & Messaging6 libraries · 1 block

  • ZIO AMQPOfficial

    A ZIO-based wrapper around the RabbitMQ client with a streaming interface to AMQP queues.

  • ZIO KafkaOfficial

    A purely functional, streams-based Kafka client for ZIO.

  • ZIO KinesisCommunity

    A ZIO-based AWS Kinesis client for consuming and producing data.

  • ZIO SparkCommunity

    A functional wrapper around Spark that makes it work with ZIO and improves error management.

  • ZIO SQSOfficial

    A ZIO-powered client for AWS SQS, built on top of ZIO AWS.

  • StreamsOfficial

    Pull-based streaming with typed errors, zero boxing, and synchronous or asynchronous execution

  • tamerCommunity

    A multi-functional Kafka connector for producing data, based on ZIO Kafka.

Schemas & Serialization6 libraries · 9 blocks

  • A ZIO-powered library for reading and writing Parquet files without running a Spark cluster.

  • Avro CodecOfficial

    Apache Avro binary serialization with automatic schema generation

  • ZIO BSONOfficial

    A BSON library with tight ZIO integration and native support for BSON types.

  • BSON CodecOfficial

    MongoDB-compatible BSON serialization with native type support

  • CSV CodecOfficial

    RFC 4180-compliant CSV serialization

  • ZIO JSONOfficial

    A fast and secure JSON library with tight ZIO integration.

  • Compact binary serialization with optimized streaming

  • ZIO ParserOfficial

    A library for constructing parsers and pretty printers from invertible syntax descriptions.

  • ZIO SchemaOfficial

    A library for modeling the schema of data structures as first-class values, enabling serialization, deserialization, and data migration.

  • SchemaOfficial

    Type-safe schemas with automatic codec, optic, and validator derivation

  • A library that integrates compression algorithms and archive formats with ZIO Streams.

  • Thrift CodecOfficial

    Apache Thrift binary serialization with TBinaryProtocol

  • TOON CodecOfficial

    Token-oriented notation 30–60% smaller than JSON, tuned for LLM prompts

  • XML CodecOfficial

    Zero-dependency XML serialization with fluent navigation and patching

  • YAML CodecOfficial

    Human-readable YAML serialization with JSON interop

Observability6 libraries · 2 blocks

  • ZIO LoggingOfficial

    Simple logging for ZIO applications, with correlation, context, and pluggable backends.

  • LogStageCommunity

    A zero-cost structural logging framework for Scala and Scala.js.

  • Integrations between ZIO metrics and monitoring systems such as Prometheus and Datadog.

  • OTLP ExportOfficial

    OTLP exporters bridging telemetry signals to an OpenTelemetry collector

  • A collection of profilers for understanding the runtime behavior of ZIO programs.

  • Purely functional and type-safe clients for OpenTracing, OpenCensus, and OpenTelemetry.

  • TelemetryOfficial

    Zero-dependency OpenTelemetry-aligned tracing, logging, and metrics

  • Logging integration of Tofu, a functional toolkit based on the tagless-final approach, with ZIO 2.

Configuration & CLI3 libraries · 4 blocks

  • ZIO CliOfficial

    A library for rapidly building powerful command-line applications powered by ZIO.

  • ZIO ConfigOfficial

    A ZIO-based library that extends ZIO's Config with support for various sources and automatic derivation.

  • Config HOCONOfficial

    HOCON source adapter for ConfigSource

  • Config JSONOfficial

    JSON source adapter for ConfigSource

  • Config YAMLOfficial

    YAML source adapter for ConfigSource

  • Typed configuration loading, feature flags, and rollout rules

  • ZIO ProcessOfficial

    A library for interacting with external processes and command-line programs, backed by ZIO Streams.

Resource Management6 blocks

  • DeferHandleOfficial

    Handle returned by Scope.defer for cancelling a registered finalizer

  • FinalizationOfficial

    Result of running a scope's finalizers, including any cleanup errors

  • FinalizerOfficial

    Minimal capability interface for registering cleanup actions

  • ResourceOfficial

    Lazy recipes that pair acquisition with finalization, composable with map, flatMap, and zip

  • ScopeOfficial

    Compile-time safe resource boundaries that keep values from escaping their lifetime

  • UnscopedOfficial

    Marker typeclass for plain data that can safely leave a scope

Dependency Injection1 library · 2 blocks

  • ContextOfficial

    Type-indexed heterogeneous collections

  • DistageCommunity

    A compile-time safe, transparent, and debuggable dependency injection framework for pure FP Scala.

  • WireOfficial

    Compile-time safe recipes for constructing a service and its dependencies

Concurrency & Resilience3 libraries · 3 blocks

  • AsyncOfficial

    Zero-allocation asynchronous effect type with direct-style await

  • ZIO CacheOfficial

    A library for optimizing the performance of an application by caching values.

  • MuxOfficial

    Thread-safe multiplexer for HTTP/2, QUIC, and WebSocket-style protocols

  • RezilienceCommunity

    A ZIO-native fault tolerance library with policies for making asynchronous systems more resilient to failures.

  • RingBufferOfficial

    Lock-free bounded ring buffers (SPSC, SPMC, MPSC, MPMC)

  • ShardCommunity

    A library for distributing entities across multiple servers and sending them messages by ID, without knowing their location. It is the successor of Shardcake.

Types & Abstractions7 libraries · 4 blocks

  • ChunkOfficial

    High-performance immutable indexed sequences with zero-boxing builders

  • CombinatorsOfficial

    Compile-time composition and decomposition of tuples, eithers, and unions

  • A library for building programs as descriptions with maximum polymorphism and modularity, and zero abstraction leakage.

  • A library for writing ZIO programs in a direct, imperative style, based on the Monadless paradigm.

  • Legacy interoperability layer for ZIO 2 and Cats Effect 2. No longer maintained; use interop-cats for Cats Effect 3.

  • An interoperability layer that lets ZIO 2 work with Cats Effect 3 and its ecosystem, including fs2, doobie and http4s.

  • A fast, lightweight, portable and efficient alternative to TypeTag from scala-reflect.

  • MaybeOfficial

    Optional values that store a present reference as is, without a wrapper object (Scala 3)

  • NeotypeCommunity

    A friendly newtype library for Scala 3 with compile-time validation and integrations with ZIO JSON, ZIO Quill, ZIO Config, and ZIO Schema.

  • ZIO PreludeOfficial

    A lightweight, distinctly Scala take on functional abstractions, with tight ZIO integration.

  • TypeIdOfficial

    Compile-time type identity with rich metadata

Cloud & Infrastructure6 libraries

  • ZIO AWSOfficial

    A ZIO wrapper for all AWS services, built on the AWS Java SDK v2.

  • ZIO FtpOfficial

    A thin wrapper over (s)FTP clients for ZIO.

  • ZIO K8sCommunity

    An idiomatic ZIO client for the Kubernetes API, with code generation for custom resources and operators.

  • ZIO LambdaOfficial

    A ZIO-based AWS Custom Runtime compatible with GraalVM Native Image.

  • ZIO S3Official

    A thin wrapper over the S3 async client for ZIO.

  • Scala k8sCommunity

    A Kubernetes client, data models, and typesafe manifest generation for Scala, Scala.js, and Scala Native.

Tooling & Testing4 libraries · 3 blocks

  • Generic Scala code generation IR and emitter

  • DocsOfficial

    GitHub Flavored Markdown parsing, rendering, and programmatic construction

  • A plugin for IntelliJ IDEA that brings enhancements when using ZIO in your projects.

  • MUnit ZIOCommunity

    An integration library between MUnit and ZIO.

  • ZIO SBTOfficial

    A collection of sbt plugins that simplify the development of ZIO projects.

  • SmithyOfficial

    Smithy IDL parser and AST library for API modeling

  • An Akka HTTP route test kit for ZIO Test.

Compatible libraries14 libraries

  • RPC in a few lines of Scala code

  • d4s ↗Compatible

    "Dynamo DB Database done Scala way". A library that allows accessing the DynamoDB in a purely functional way

  • doobie ↗Compatible

    Functional JDBC layer for Scala.

  • Production ready event-driven automata for Scala, Scala.js and scala native

  • Elasticsearch Scala Client - Reactive, Non Blocking, Type Safe, HTTP Client

  • fs2 ↗Compatible

    Compositional, streaming I/O library for Scala

  • http4s ↗Compatible

    A minimal, idiomatic Scala interface for HTTP

  • Iron ↗Compatible

    Strong type constraints for Scala 3, with the iron-zio, iron-zio-json, and iron-zio-blocks-schema modules for ZIO

  • ldbc ↗Compatible

    Pure functional JDBC layer for Scala 3 built on Cats Effect, usable with ZIO through the ldbc-zio-interop module

  • Lepus ↗Compatible

    Your principled, purely functional, non-blocking RabbitMQ client for scala, scala js and scala native built on top of fs2

  • A Scala lightweight, type-safe & asynchronous driver for neo4j

  • Simpler DynamoDB access for Scala

  • sttp ↗Compatible

    The Scala HTTP client you always wanted!

  • A Scala toolkit for working with third-party LLMs such as OpenAI and Claude, with a ZIO backend

Full list, with descriptions

Official Libraries​

Official ZIO libraries are hosted in the ZIO organization on GitHub, and are generally maintained by core contributors to ZIO.

Development Status​

Each project in the ZIO organization namespace has a Stage Badge which indicates the current status of that project:

  • Production Ready — The project is stable and already used in production. We can expect reliability for the implemented use cases.
  • Development — The project already has RC or milestone releases, but is still under active development. We should not expect full stability yet.
  • Experimental — The project is not yet released, but an important part of the work is already done.
  • Research — The project is at the design stage, with some sketches of work but nothing usable yet.
  • Concept — The project is just an idea, development hasn't started yet.
  • Deprecated — The project is not maintained anymore, and we don't recommend its usage.

Web & APIs​

Data Access​

  • ZIO DynamoDB · API — Simple, type-safe, and efficient access to AWS DynamoDB.
  • ZIO Query · API — A library for writing optimized queries to data sources in a compositional style, with batching, pipelining, and caching.
  • ZIO Quill — A quoted domain-specific language for expressing queries in Scala and executing them as SQL or CQL.
  • ZIO Redis · API — A type-safe and performant ZIO-native Redis client.
  • ZIO Rocksdb · API — A ZIO-based interface to RocksDB.
  • ZIO Blocks: SQL Module, ZIO Integration, Data Migration, Projection

Streaming & Messaging​

  • ZIO AMQP · API — A ZIO-based wrapper around the RabbitMQ client with a streaming interface to AMQP queues.
  • ZIO Kafka · API — A purely functional, streams-based Kafka client for ZIO.
  • ZIO SQS · API — A ZIO-powered client for AWS SQS, built on top of ZIO AWS.
  • ZIO Blocks: Streams

Schemas & Serialization​

Observability​

  • ZIO Logging · API — Simple logging for ZIO applications, with correlation, context, and pluggable backends.
  • ZIO Metrics Connectors · API — Integrations between ZIO metrics and monitoring systems such as Prometheus and Datadog.
  • ZIO Profiling · API — A collection of profilers for understanding the runtime behavior of ZIO programs.
  • ZIO Telemetry · API — Purely functional and type-safe clients for OpenTracing, OpenCensus, and OpenTelemetry.
  • ZIO Blocks: Telemetry, OTLP Export

Configuration & CLI​

  • ZIO Cli · API — A library for rapidly building powerful command-line applications powered by ZIO.
  • ZIO Config · API — A ZIO-based library that extends ZIO's Config with support for various sources and automatic derivation.
  • ZIO Process · API — A library for interacting with external processes and command-line programs, backed by ZIO Streams.
  • ZIO Blocks: Configuration, Config YAML, Config JSON, Config HOCON

Resource Management​

Dependency Injection​

Concurrency & Resilience​

Types & Abstractions​

  • Izumi Reflect — A fast, lightweight, portable and efficient alternative to TypeTag from scala-reflect.
  • ZIO 2.x Interop Cats 2.x — Legacy interoperability layer for ZIO 2 and Cats Effect 2. No longer maintained; use interop-cats for Cats Effect 3.
  • ZIO 2.x Interop Cats 3.x — An interoperability layer that lets ZIO 2 work with Cats Effect 3 and its ecosystem, including fs2, doobie and http4s.
  • ZIO Constraintless · API — A library for building programs as descriptions with maximum polymorphism and modularity, and zero abstraction leakage.
  • ZIO Direct Style · API — A library for writing ZIO programs in a direct, imperative style, based on the Monadless paradigm.
  • ZIO Prelude · API — A lightweight, distinctly Scala take on functional abstractions, with tight ZIO integration.
  • ZIO Blocks: Chunk, Maybe, Combinators, TypeId

Cloud & Infrastructure​

  • ZIO AWS — A ZIO wrapper for all AWS services, built on the AWS Java SDK v2.
  • ZIO Ftp · API — A thin wrapper over (s)FTP clients for ZIO.
  • ZIO Lambda · API — A ZIO-based AWS Custom Runtime compatible with GraalVM Native Image.
  • ZIO S3 · API — A thin wrapper over the S3 async client for ZIO.

Tooling & Testing​

  • ZIO IntelliJ — A plugin for IntelliJ IDEA that brings enhancements when using ZIO in your projects.
  • ZIO SBT — A collection of sbt plugins that simplify the development of ZIO projects.
  • ZIO Blocks: Code Generation, Docs, Smithy

Community Libraries​

In this section we are going to introduce some of the most important libraries that have first-class ZIO support from the community.

If you know a useful library that has first-class ZIO support, please consider submitting a pull request to add it to this list.

Web & APIs​

  • Caliban — A purely functional library for creating GraphQL servers and clients in Scala.
  • Tapir — A library to describe HTTP APIs, expose them as a server, consume them as a client, and document them automatically, with first-class ZIO support.
  • ZIO gRPC — A library for writing purely functional gRPC servers and clients with ZIO.

Data Access​

  • Decrel — A library for declarative programming using relations between data, with automatic batching, parallelization, and caching.
  • Mongo4cats — A functional and idiomatic interface for MongoDB, with a dedicated ZIO 2 module.
  • TranzactIO — A ZIO wrapper for database access libraries, currently Doobie and Anorm.
  • ZIO Elasticsearch — A type-safe and streaming-friendly ZIO-native Elasticsearch client.
  • ZIO LMDB — An embedded, ACID, key-value database for ZIO, stored in a single file.
  • ZIO MongoDB — A ZIO wrapper around the official MongoDB Java driver, with compile-time codecs and a type-safe query DSL.

Streaming & Messaging​

  • tamer — A multi-functional Kafka connector for producing data, based on ZIO Kafka.
  • ZIO Kinesis — A ZIO-based AWS Kinesis client for consuming and producing data.
  • ZIO Spark — A functional wrapper around Spark that makes it work with ZIO and improves error management.

Schemas & Serialization​

  • ZIO Apache Parquet — A ZIO-powered library for reading and writing Parquet files without running a Spark cluster.

Observability​

  • LogStage — A zero-cost structural logging framework for Scala and Scala.js.
  • Tofu ZIO 2 Logging — Logging integration of Tofu, a functional toolkit based on the tagless-final approach, with ZIO 2.

Dependency Injection​

  • Distage — A compile-time safe, transparent, and debuggable dependency injection framework for pure FP Scala.

Concurrency & Resilience​

  • Rezilience — A ZIO-native fault tolerance library with policies for making asynchronous systems more resilient to failures.
  • Shard — A library for distributing entities across multiple servers and sending them messages by ID, without knowing their location. It is the successor of Shardcake.

Types & Abstractions​

  • Neotype — A friendly newtype library for Scala 3 with compile-time validation and integrations with ZIO JSON, ZIO Quill, ZIO Config, and ZIO Schema.

Cloud & Infrastructure​

  • Scala k8s — A Kubernetes client, data models, and typesafe manifest generation for Scala, Scala.js, and Scala Native.
  • ZIO K8s — An idiomatic ZIO client for the Kubernetes API, with code generation for custom resources and operators.

Tooling & Testing​

  • MUnit ZIO — An integration library between MUnit and ZIO.
  • ZIO Test Akka HTTP — An Akka HTTP route test kit for ZIO Test.

Compatible Libraries​

List of ZIO compatible libraries:

  • d4s — "Dynamo DB Database done Scala way". A library that allows accessing the DynamoDB in a purely functional way
  • Edomata — Production ready event-driven automata for Scala, Scala.js and scala native
  • elastic4s — Elasticsearch Scala Client - Reactive, Non Blocking, Type Safe, HTTP Client
  • Lepus — Your principled, purely functional, non-blocking RabbitMQ client for scala, scala js and scala native built on top of fs2
  • neotypes — A Scala lightweight, type-safe & asynchronous driver for neo4j
  • scanamo — Simpler DynamoDB access for Scala
  • sttp — The Scala HTTP client you always wanted!
  • doobie — Functional JDBC layer for Scala.
  • fs2 — Compositional, streaming I/O library for Scala
  • http4s — A minimal, idiomatic Scala interface for HTTP
  • Automorph — RPC in a few lines of Scala code
  • ldbc — Pure functional JDBC layer for Scala 3 built on Cats Effect, usable with ZIO through the ldbc-zio-interop module
  • Iron — Strong type constraints for Scala 3, with the iron-zio, iron-zio-json, and iron-zio-blocks-schema modules for ZIO
  • sttp-ai — A Scala toolkit for working with third-party LLMs such as OpenAI and Claude, with a ZIO backend

ZIO Chat

Hello! 😊 I'm your ZIO Chat Bot, designed to be your go-to resource for all things ZIO! Whether you're new to this powerful functional effect system or a seasoned pro, I'm here to assist you. ZIO empowers you to build concurrent and resilient applications in Scala, offering referential transparency, composable data types, type-safety, and more. So, go ahead and ask me anything about ZIO – I'm here to provide the answers you need! 🤖