dashbitco/flow has 1,623 GitHub stars and 89 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 03:24 UTC. Last push 2026-09-25.
Computational parallel flows on top of GenStage
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalFlow 
Flow allows developers to express computations on collections, similar to the Enum and Stream modules, although computations will be executed in parallel using multiple GenStages.
Here is a quick example on how to count words in a document in parallel with Flow:
File.stream!("path/to/some/file")
|> Flow.from_enumerable()
|> Flow.flat_map(&String.split(&1, " "))
|> Flow.partition()
|> Flow.reduce(fn -> %{} end, fn word, acc ->
Map.update(acc, word, 1, & &1 + 1)
end)
|> Enum.to_list()
See documentation for Flow or José Valim's keynote at ElixirConf 2016 introducing the main concepts behind GenStage and Flow.
Installation
Add :flow to your list of dependencies in mix.exs:
def deps do
[{:flow, "~> 1.0"}]
end
Usage in Livebook
Flow pipelines starts several processes linked to the current process. This means that, if there is an error in your Flow, it will shut down the Livebook runtime. You can avoid this in your notebooks in two different ways:
Use
Flow.stream(flow, link: false)to explicitly convert a Flow to a non-linked stream. You can them invokeEnumandStreamfunctions regularly:Flow.from_enumerable([1, 2, 3]) |> Flow.map(& &1 * 2) |> Flow.stream(link: false) |> Enum.to_list()By trapping exits once before the Flow computation starts:
Process.flag(:trap_exit, true)
License
Copyright 2017 Plataformatec
Copyright 2020 Dashbit
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,875 starspublic-apis/public-apis
A collective list of free APIs
497,120 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,926 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,168 stars