Skip to content
cd ../projects
[PROJECT/09]

effect-cqrs

ACTIVEv0.1.0

TypeScript library for CQRS and event sourcing on Effect v4, an experimental port of moleculer-cqrs. Commands decide on events, events are the only source of truth and view models are projections you can throw away and rebuild. In-memory, SQLite or PostgreSQL event store, with a bank demo that runs in the browser: slow commands down, pause the bus and travel back in time one event at a time.

[SCREENSHOTS]

effect-cqrs bank demo: Alice, Bob and Carol's accounts on the left, the CQRS devtools on the right with a transfer running in the aggregate
The demo's event store: the account streams and the append-only log with every event, from first to last
The accounts, bank-totals and activity-feed view models, each with its own checkpoint and a button to rebuild it
Time travel to event #4: the accounts rebuilt from the first four events in the log, with Alice's state event by event
effect-cqrs documentation homepage, with an account's state derived from its events
Open SourceEffectEvent SourcingTypeScript