What problem does it solve?
Effect Stream helps you build pull-based streaming pipelines that emit values over time while handling errors and resources correctly, without loading everything into memory or losing control of backpressure.
Core Features & Use Cases
- Create streams from multiple sources: values, iterables, effects (with schedules), pagination, async iterables, DOM/Node events, callback-based queues, and readable streams.
- Transform and control flow: map/filter/flatMap, scan/group/batch, rate control (debounce/throttle/timeout), indexing/zipping, and error recovery.
- Consume and encode data: collect/drain/fold/run for each element, and encode/decode NDJSON or Msgpack via channels with schema validation.
- Manage concurrency and sharing: merge/interleave/broadcast/share with scoped safety and deterministic or arrival-order behavior.
Quick Start
Use the effect-stream skill to take an NDJSON stream, decode it with a schema, filter error entries, and re-encode it back to NDJSON for collection.