Client

Rate limiting is built in: configure token buckets, sliding windows, or adaptive limits that respond to backpressure.

The core querykit object is a lightweight wrapper that manages the lifecycle of your event stream.

const stream = new RelayKit( apiKey: process.env.API_KEY, region: 'us-east-1' );

The core querykit object is a lightweight wrapper that manages the lifecycle of your event stream.

Client

Batching is automatic—control it via `batch(100)` or `batch({ size: 50, timeoutMs: 1000 })` to trade latency for throughput.

const batch = stream.pipe(filter((e) => e.type === 'payment'), batch(100), debounce(5000));

Each event flows through a series of transformation stages, with built-in support for filtering, mapping, and conditional routing.

See also