Skip to content

typelevel/fs2

Folders and files

NameName
Last commit message
Last commit date
Mar 11, 2025
Oct 21, 2024
Feb 15, 2025
Jun 16, 2020
Feb 11, 2025
Mar 11, 2025
Mar 4, 2025
Jan 23, 2025
Feb 5, 2025
Mar 10, 2025
May 14, 2024
Oct 15, 2024
Feb 12, 2014
Jan 23, 2025
Aug 5, 2021
Jan 30, 2018
Mar 12, 2025
Apr 26, 2018
Jan 23, 2024
Aug 27, 2019
Jan 17, 2020
Jun 15, 2024
Jul 12, 2021
Jul 14, 2022
Mar 11, 2025
Feb 28, 2025
Mar 12, 2025

Repository files navigation

FS2: Functional Streams for Scala

Continuous Integration Discord Maven Central

Overview

FS2 is a library for purely functional, effectful, and polymorphic stream processing library in the Scala programming language. Its design goals are compositionality, expressiveness, resource safety, and speed. The name is a modified acronym for Functional Streams for Scala (FSS, or FS2).

FS2 is available for Scala 2.12, Scala 2.13, Scala 3, and Scala.js and Scala Native. FS2 is built upon two major functional libraries for Scala, Cats, and Cats-Effect. Regardless of those dependencies, FS2 core types (streams and pulls) are polymorphic in the effect type (as long as it is compatible with cats-effect typeclasses), and thus FS2 can be used with other effect libraries, such as Monix.

Getting Started

Quick links:

Documentation and getting help

  • There are Scaladoc API documentations for the library.
  • The official guide is a good starting point for learning more about the library.
  • The documentation page is intended to serve as a list of all references, including conference presentation recordings, academic papers, and blog posts, on the use and implementation of fs2.
  • The FAQ has frequently asked questions. Feel free to open issues or PRs with additions to the FAQ!
  • Also feel free to come discuss and ask/answer questions in the Typelevel Discord channel and/or on StackOverflow using the tag FS2. Discord will generally get you a quicker answer.

Projects using FS2

You can find a list of libraries and integrations with data stores built on top of FS2 here: https://fs2.io/#/ecosystem.

If you have a project you'd like to include in this list, please open a PR or let us know in the Discord channel and we'll add a link to it.

Acknowledgments

YourKit

Special thanks to YourKit for supporting this project's ongoing performance tuning efforts with licenses to their excellent product.

Code of Conduct

See the Code of Conduct.