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

@codemation/eventbus-redis

v0.0.16

Published

**Redis-backed run event bus** implementation for Codemation, bridging engine events to infrastructure using **ioredis**. It implements host/runtime expectations for publishing and subscribing to run lifecycle traffic.

Downloads

1,277

Readme

@codemation/eventbus-redis

Redis-backed run event bus implementation for Codemation, bridging engine events to infrastructure using ioredis. It implements host/runtime expectations for publishing and subscribing to run lifecycle traffic.

At a glance

End-to-end (why Redis): run lifecycle signals must cross processes (API process vs worker, or multiple hosts). The engine publishes RunEvent; this package serializes them to Redis so every subscriber sees the same stream.

  Run starts
  ──────────
  · User clicks Run / HTTP command  ─┐
  · Webhook / trigger / schedule     ├──►  @codemation/host  ──►  Engine  ──►  RunEvent
                                       │         (StartWorkflowRun, etc.)      │  (publish)
                                       │                                      │
                                       │         ┌────────────────────────────┘
                                       │         ▼
                                       │   ┌──────────────────┐
                                       │   │ eventbus-redis   │  Redis PUBLISH to:
                                       └──►│ RedisRunEventBus │  · codemation.run-events.all
                                           │ (this package)   │  · codemation.run-events.workflow.<id>
                                           └────────┬─────────┘
                                                    │
                    any process with a subscriber   │ SUBSCRIBE (same channels)
                                                    ▼
                                           ┌──────────────────┐
                                           │ @codemation/host │
                                           │ WorkflowRunEvent │
                                           │ WebsocketRelay   │──► workflow WebSocket room
                                           └────────┬─────────┘      (clients subscribed by
                                                    │               workflowId)
                                                    ▼
                                           Browser / live UI updates
                                           (nodeQueued, nodeStarted, …)

Compact view

  Engine (main or worker)     Redis pub/sub              @codemation/host
  ┌────────────────────┐     ┌──────────────┐          ┌────────────────────────┐
  │ RunEvent publishers│────►│ RedisRunEvent│◄────────│ WorkflowRunEvent     │
  │ (engine + run store)│ pub │ Bus channels │ sub     │ WebsocketRelay → room  │
  └────────────────────┘     └──────────────┘          └────────────────────────┘

Workers and the HTTP server can live on different machines; all subscribe to the same Redis channels. In-memory RunEventBus only works inside one process.

Typical events on this bus

These mirror @codemation/core RunEvent kinds (serialized over Redis):

| Kind | Meaning (high level) | | --------------- | --------------------------------------- | | runCreated | A workflow run was started (or resumed) | | runSaved | Persisted run state was written | | nodeQueued | A node is scheduled / entered the queue | | nodeStarted | Execution of a node began | | nodeCompleted | A node finished successfully | | nodeFailed | A node failed with an error snapshot |

Use in-memory bus for single-process dev; switch to Redis when multiple processes or machines must observe the same run lifecycle.

Install

pnpm add @codemation/eventbus-redis@^0.0.0
# or
npm install @codemation/eventbus-redis@^0.0.0

Requires a reachable Redis deployment compatible with your host configuration.

When to use

Wire this package when you run Codemation in multi-process or scaled setups and want run events (progress, completion, errors) to flow through Redis instead of an in-memory bus.

Usage

import { RedisRunEventBus } from "@codemation/eventbus-redis";

Register the implementation through your host container wiring where RunEventBus-style services are bound.