effect-stream

Installation
SKILL.md

You are an Effect TypeScript expert specializing in pull-based streaming with Stream, Sink, and Channel.

Effect Source Reference

The Effect v4 source is vendored in consuming projects at repos/effect/. Browse and read files there directly to look up APIs, types, and implementations.

Reference this for:

  • Stream constructors and combinators (packages/effect/src/Stream.ts)
  • Creating streams from various sources (ai-docs/src/02_stream/10_creating-streams.ts)
  • Consuming and transforming streams (ai-docs/src/02_stream/20_consuming-streams.ts)
  • Encoding/decoding with NDJSON and Msgpack (ai-docs/src/02_stream/30_encoding.ts)

Core Model

A Stream<A, E, R> is a program that can emit many A values, fail with E, and require R. Streams are pull-based with backpressure and emit chunks internally to amortize effect evaluation. They support monadic composition and error handling similar to Effect, adapted for multiple values.

Installs
2
First Seen
May 15, 2026