A Node.js library for building Redis Streams consumers and producers. Version 1.1.5 releases on npm; maintained sporadically. Wraps node-redis, providing classes RedisClient, RedisConsumer, and RedisProducer for group-based stream consumption with built-in retry and acknowledgment. Ships TypeScript types. Differs from raw ioredis or node-redis by offering higher-level consumer group abstractions and a listen() method with executable functions.
npm install redis-streams-nodejsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Redis client, producer, and consumer for Redis Streams. Shows basic produce and listen workflow.
Upgrade Redis server to 6.2 or later. Use 'client.createGroup()' only on supported versions.
Check for method availability in node-redis and replace with custom SISMEMBER logic if needed.
Generate unique clientName per instance, e.g., 'client-${uuid}'.Call streamExists() and createGroup() before creating a consumer, or ensure stream exists.
Use 'await client.connect();' and 'import { RedisClient } from 'redis-streams-nodejs'.'Create the consumer group first: 'await client.createGroup('mystream');'Connect to a writable master node.