npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@quanticjs/events-redis

v8.2.0

Published

Redis Streams transport for @quanticjs/events-core — RedisStreamPublisher, RedisStreamConsumer

Readme

@quanticjs/events-redis

Redis Streams transport for QuanticJS domain events: RedisStreamPublisher (XADD) and the abstract RedisStreamConsumer (XREADGROUP consumer groups).

⚠️ Reliability notice — The Redis Streams transport provides weaker delivery guarantees than the Kafka transport. Use it for non-critical eventing only unless you enable and tune: minIdleTimeMs/reclaimIntervalMs (orphan reclaim), maxDeliveries (poison-message DLQ), and leave maxStreamLength unset (no trimming). Streams have no replication-acknowledged durability equivalent to Kafka acks=-1.

Minimum supported Redis: 6.2 (XAUTOCLAIM). On older Redis, orphaned-entry reclaim is disabled with an error log and only the startup PEL drain runs.

Usage

QuanticEventsRedisModule.forRoot({
  consumer: {
    minIdleTimeMs: 60_000,     // entries idle longer are reclaimable from dead consumers
    reclaimIntervalMs: 30_000, // XAUTOCLAIM loop period
    maxDeliveries: 5,          // delivery-count cap before dead-lettering
    readBatchSize: 10,
    blockMs: 5_000,
  },
  publisher: {
    // maxStreamLength: 100_000, // OFF by default — see "Stream retention" below
  },
})

Consumer options can also be passed per consumer through the RedisStreamConsumer constructor's second argument (these defaults apply when omitted).

Reliability behavior

  • Orphan reclaim — a periodic XAUTOCLAIM loop claims entries idle ≥ minIdleTimeMs from any consumer in the group (including dead pods) and reprocesses them. Set minIdleTimeMs above your worst-case handler time, otherwise an entry still being processed can be claimed and processed twice (inherent to streams; the inbox primitive dedups command effects if used).
  • Poison messages / DLQ — an entry whose delivery count exceeds maxDeliveries is appended to <streamKey>:dlq (full original fields plus originalId, stream, group, deliveryCount, deadLetteredAt — replayable) and then XACKed. The DLQ write happens before the ack, so a failed DLQ write loses nothing. DLQ streams are never trimmed by this package; monitor and drain them operationally.
  • Startup PEL drain — on boot the consumer drains its entire pending-entries list in batches before live tailing begins.
  • Ordinary failures — a failed entry is left un-acked in the PEL; the reclaim loop retries it after minIdleTimeMs until maxDeliveries routes it to the DLQ.

Stream retention

RedisStreamPublisher performs no trimming by default — streams grow unbounded. Pick one:

  • Set publisher.maxStreamLength consciously, sized to worst-case consumer backlog. Trimming is approximate (MAXLEN ~) and silently drops unconsumed entries once the cap is passed.
  • Leave it unset and run an operational retention job (periodic XTRIM after checking consumer-group lag).