ION Streamer (v1.3.3) is a Node.js library for producing and consuming Redis streams in a non-blocking manner. It listens to Redis stream entries in a subprocess, enabling async/await-based processing without blocking the main event loop. Released in 2023, it provides a simple API for stream production and consumption with built-in auto-reconnection. The library differentiates itself by leveraging subprocess isolation for stream consumers, preventing backpressure issues, and supports both Node.js and browser environments via the same API.
npm install ion-streamerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a Streamer and Consumer, producing a stream entry, listening for messages, and handling graceful shutdown with Redis connection.
Use inter-process communication (e.g., send messages via IPC) or avoid relying on shared state. Alternatively, use a different consumer approach if state sharing is required.
Run XGROUP CREATE my-stream my-group $ MKSTREAM manually via redis-cli or via the library's Streamer.createGroup() method before starting the consumer.
Replace streamer.send(...) with streamer.produce(...).
Implement a health check and restart the consumer on connection loss, or use a more robust library like 'redis-streams-bus' with built-in reconnection.
Use streamer.createGroup('my-stream', 'my-group') before consumer.start().Use streamer.produce() instead.
Run npm install ion-streamer and ensure the import is correct (e.g., 'ion-streamer' not 'ion-streamer/src').
Start Redis server (e.g., docker run -p 6379:6379 redis) or provide correct REDIS_URL environment variable.