• Stars
    star
    2,341
  • Rank 19,458 (Top 0.4 %)
  • Language
    Scala
  • License
    Other
  • Created over 11 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Compositional, streaming I/O library for Scala

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 core library][core-api], which defines and implements the core types for streams and pulls, as well as the type aliases for pipes and sinks. The io library provides FS2 bindings for NIO-based file I/O and TCP/UDP networking.
  • 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.

More Repositories

1

cats

Lightweight, modular, and extensible library for functional programming.
Scala
5,182
star
2

scalacheck

Property-based testing for Scala
Scala
1,908
star
3

cats-effect

The pure asynchronous runtime for Scala
Scala
1,817
star
4

spire

Powerful new number types and numeric abstractions for Scala.
Scala
1,761
star
5

skunk

A data access library for Scala + Postgres.
Scala
1,559
star
6

simulacrum

First class syntax support for type classes in Scala
Scala
935
star
7

squants

The Scala API for Quantities, Units of Measure and Dimensional Analysis
Scala
919
star
8

kind-projector

Compiler plugin for making type lambdas (type projections) easier to write
Scala
915
star
9

frameless

Expressive types for Spark.
Scala
871
star
10

cats-collections

Data structures for pure functional programming in Scala
Scala
556
star
11

kittens

Automatic type class derivation for Cats
Scala
531
star
12

jawn

Jawn is for parsing jay-sawn (JSON)
Scala
431
star
13

log4cats

Logging Tools For Interaction with cats-effect
Scala
400
star
14

Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
Scala
387
star
15

algebra

Experimental project to lay out basic algebra type classes
Scala
378
star
16

mouse

A small companion to cats
Scala
365
star
17

sbt-tpolecat

scalac options for the enlightened
Scala
328
star
18

discipline

Flexible law checking for Scala
Scala
327
star
19

natchez

functional tracing for cats
Scala
322
star
20

cats-tagless

Library of utilities for tagless final encoded algebras
Scala
314
star
21

cats-mtl

cats transformer type classes.
Scala
306
star
22

CT_from_Programmers.scala

Scala sample code for Bartosz Milewski's CT for Programmers
Scala
279
star
23

fs2-grpc

gRPC implementation for FS2/cats-effect
Scala
268
star
24

cats-parse

A parsing library for the cats ecosystem
Scala
227
star
25

machinist

Spire's macros for zero-cost operator enrichment
Scala
191
star
26

shapeless-3

Generic programming for Scala
Scala
185
star
27

cats-effect-testing

Integration between cats-effect and test frameworks
Scala
185
star
28

paiges

an implementation of Wadler's a prettier printer
Scala
183
star
29

grackle

Grackle: Functional GraphQL for the Typelevel stack
Scala
171
star
30

sbt-typelevel

Let sbt work for you.
Scala
163
star
31

munit-cats-effect

Integration library for MUnit & cats-effect
Scala
149
star
32

feral

Feral cats are homeless, feral functions are serverless
Scala
144
star
33

catbird

Birds and cats together
Scala
139
star
34

otel4s

An OpenTelemetry library for Scala based on Cats-Effect
Scala
138
star
35

fs2-chat

Sample project demonstrating use of fs2-io to build a chat client and server
Scala
123
star
36

spotted-leopards

Proof of concept for a cats-like library built using Dotty features
Scala
112
star
37

fabric

Object-Notation Abstraction for JSON, binary, HOCON, etc.
Scala
110
star
38

literally

Compile time validation of literal values built from strings
Scala
102
star
39

toolkit

Quickstart your next app with the Typelevel Toolkit!
Scala
94
star
40

cats-time

Cats Instances for Java Time
Scala
91
star
41

typelevel-nix

Development tools for Typelevel projects
Nix
87
star
42

cats-effect-cps

An incubator project for async/await syntax support for Cats Effect
Scala
81
star
43

vault

Type-safe, persistent storage for values of arbitrary types
Scala
81
star
44

shapeless-contrib

Interoperability libraries for Shapeless
Scala
79
star
45

scalacheck-effect

Effectful property testing built on ScalaCheck
Scala
76
star
46

coop

Cooperative multithreading as a pure monad transformer
Scala
68
star
47

claimant

Library to support automatic labeling of ScalaCheck properties.
Scala
68
star
48

typeclassic

Everything you need to make type classes first class.
Scala
61
star
49

scalaz-contrib

Interoperability libraries & additional data structures and instances for Scalaz
Scala
55
star
50

twiddles

Micro-library for building effectful protocols
Scala
55
star
51

monoids

Generic Monoids for Scala
Scala
51
star
52

fs2-netty

What it says on the tin!
Scala
47
star
53

sbt-catalysts

sbt utilities for open source projects
Scala
45
star
54

natchez-http4s

Glorious integration layer for Natchez and Http4s.
Scala
44
star
55

typelevel.github.com

Web site of typelevel.scala
HTML
40
star
56

jawn-fs2

Integration between jawn and fs2
Scala
38
star
57

keypool

A Keyed Pool Implementation for Scala
Scala
34
star
58

scalaz-specs2

Specs2 bindings for Scalaz
Scala
34
star
59

catalysts

Scala
34
star
60

simulacrum-scalafix

Simulacrum as Scalafix rules
Scala
34
star
61

case-insensitive

A case-insensitive string for Scala
Scala
34
star
62

scalaz-outlaws

outcasts no longer allowed in the ivory tower
Scala
28
star
63

bobcats

Typelevel's very own CryptoKitties!
Scala
28
star
64

scalac-options

A library for configuring scalac options
Scala
27
star
65

weaver-test

A test framework that runs everything in parallel.
Scala
27
star
66

ce3.g8

Scala
24
star
67

scalaz-scalatest

Scalatest bindings for scalaz.
Scala
23
star
68

general

Repository for general Typelevel information, activity and issues
19
star
69

discipline-munit

MUnit binding for Typelevel Discipline
Scala
18
star
70

cats-testkit-scalatest

Cats Testkit for Scalatest
Scala
18
star
71

unique

Unique Functional Values for Scala
Scala
17
star
72

discipline-scalatest

ScalaTest binding for Discipline
Scala
17
star
73

typelevel-scalafix

Scalafix rules for Typelevel projects
Scala
17
star
74

semigroups

Scala
16
star
75

cats-effect-shell

Command line debugging console for Cats Effect
Scala
15
star
76

jdk-index

A Jabba compatible index of JDK versions
Scala
14
star
77

cats-uri

URI implementation based on cats-parse with cats instances
Scala
14
star
78

typelevel.g8

A typelevel.g8 based on sbt-typelevel
Scala
14
star
79

catapult

Scala
13
star
80

discipline-specs2

Specs2 Integration for Discipline
Scala
9
star
81

governance

Typelevel governance
Scala
7
star
82

idna4s

Cross-platform Scala implementation of Internationalized Domain Names in Applications
Scala
7
star
83

catz-cradle

Testbed for scala libraries and tools, based on examples from cats docs
Scala
7
star
84

spire-contrib

Interoperability libraries for spire
Shell
7
star
85

scalac-compat

Lightweight tools for tackling Scalac version incompatibilities
Scala
6
star
86

steward

Runs Scala Steward for Typelevel projects
5
star
87

cats-effect-main

3
star
88

sacagawea

Common infrastructure for tracing functional effects
Scala
3
star
89

scalacheck-xml

Scalacheck instances for scala-xml
Scala
3
star
90

sorcery

WIP
2
star
91

scalacheck-web

ScalaCheck Web Site
Nix
2
star
92

sbt-catalysts.g8

Scala
2
star
93

feral.g8

Giter8 template for feral serverless
Scala
2
star
94

download-java

2
star
95

toolkit.g8

A Giter8 template for Typelevel Toolkit!
Scala
2
star
96

sbt-tls-crossproject

sbt-crossproject plugin for Typelevel Scala
Scala
1
star
97

await-cirrus

Depend on Cirrus CI from a GitHub Actions workflow
JavaScript
1
star
98

catalysts-docker

Shell
1
star
99

.github

a ✨special ✨ repository for project defaults and organization readme
1
star