ustal/stream-hub-plugins

Framework-agnostic feature modules for Stream Hub

Maintainers

Package info

github.com/ustal/stream-hub-plugins

pkg:composer/ustal/stream-hub-plugins

Statistics

Installs: 43

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-04-08 22:16 UTC

This package is auto-updated.

Last update: 2026-04-11 19:47:20 UTC


README

CI

Framework-agnostic feature modules for Stream Hub.

In the v1 direction this repository is no longer a UI plugin pack. It now holds headless modules made of commands, handlers, and small workflow services.

This package targets stream-hub-core ^1.0.

Included Modules

MessageComposer

Current contents:

  • SendMessageCommand
  • SendMessageCommandHandler
  • MessageEventFactory

The handler:

  • builds a StreamEvent for a user message;
  • dispatches low-level AppendStreamEventCommand through ModelCommandBusInterface;
  • does not talk to the backend directly.

The module expects an event identifier generator to be injected by the consuming integration.

StreamLifecycle

Current contents:

  • StartStreamCommand
  • StartStreamCommandHandler
  • JoinStreamCommand
  • JoinStreamCommandHandler
  • LeaveStreamCommand
  • LeaveStreamCommandHandler
  • LifecycleSystemEventFactory

The handler:

  • orchestrates low-level CreateStreamCommand;
  • appends an initial system event through low-level AppendStreamEventCommand;
  • dispatches low-level JoinStreamCommand for join scenarios;
  • appends a system event when a participant leaves;
  • dispatches low-level LeaveStreamCommand to update the participant model;
  • stays storage-agnostic and does not talk to the backend directly.

The module expects a system event identifier generator to be injected by the consuming integration.

Development

Install dependencies:

make install

Run tests:

make test

Run deptrac:

make deptrac