Skip to content
PackagesCommunicationDocs 1.3.x

@connectum/events ​

Proto-first publish/subscribe with routes, middleware, retries, dead letters, and pluggable adapters.

Install ​

bash
npm install @connectum/events
bash
pnpm add @connectum/events
bash
bun add @connectum/events

Peer dependencies: @connectum/core, @bufbuild/protobuf ^2.16.0 and @connectrpc/connect ^2.2.0, shared with your application. npm 7+, pnpm and Bun install missing peers automatically; on Yarn, add them yourself — see Peer dependencies on protobuf and Connect.

Start Here ​

typescript
import { createEventBus, MemoryAdapter } from '@connectum/events';

const eventBus = createEventBus({
  adapter: MemoryAdapter(),
  routes: [orderEvents],
  group: 'orders-service',
});

await eventBus.start();

Key Entry Points ​

Entry pointUse it to
createEventBusCreate the lifecycle-managed event bus.
MemoryAdapterRun deterministic in-memory event tests.
createBroadcastSubscribersCreate explicit one-to-many reactor subscribers.
EventAdapterFactoryGive each broadcast reactor its own broker connection; see Adapter instances and factories.

Learn / Configure / API Reference ​

Compare all Connectum packages by capability.