API reference

Operator index

Find the complete public API by intent. Every page covers signatures, accepted values and defaults, execution, pressure, memory, context, errors, cancellation, runtimes, forms, and edge cases that change real behavior.

Create

  • exstream() — adapt iterables, promises, platform streams, generators, or a writable source
  • defer() — create or acquire a source only when its graph is activated
  • fromEvent() — adapt hot EventTarget and EventEmitter sources
  • pipeline() — define a reusable typed operator chain
  • destination() — define a reusable terminal consumer with setup and cleanup
  • data() and nil — distinguish data from error and end control records

Context

  • withContext() and extendContext() — attach synchronous or asynchronous record metadata
  • Stream state — inspect lifecycle, buffering, drops, pressure, and cancellation
  • Events — observe errors, aborts, completion, fatal failures, and drain

Transform

Select

Aggregate and order

Async work

  • mapAsync() — transform with concurrency, ordering, retry, local recovery, timeout, and cancellation controls
  • makeAsync() — yield long synchronous pipelines to the event loop

Flow control

  • throttle() — drop values inside a time window
  • rateLimit() — delay values to enforce a local burst rate

Branch and combine

  • fork() — create a reliable branch participating in backpressure
  • observe() — create a non-blocking, explicitly buffered observer
  • merge() — consume a stream of streams with bounded concurrency
  • through() — attach a pipeline, function, or Node transform
  • sortedJoin() — merge-join exactly two pre-sorted streams

Errors

Formats

Consume

Interop

Low-level API