# event-sourcing

An event-sourcing library for NestJS

Canonical page: https://www.reposhelf.co.uk/projects/github/ocoda/event-sourcing.html

- Project ID: ocoda/event-sourcing
- Source: GitHub
- Original project: https://github.com/ocoda/event-sourcing
- Description attribution: project author metadata
- Categories: Other
- Technologies: Node.js
- Licence: MIT
- Repository availability checked: 2026-11-04T14:47:11.138Z
- Demo page loaded: 2026-11-06T00:53:55.749Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> @ocoda/event-sourcing is a library for NestJS with the building blocks for Domain-Driven Design \(DDD\), CQRS and Event Sourcing:

> 4.0 is released: NestJS 12, ES modules only, Node.js 22.12 or later, global positions and readAll\(\), typed buses and awaited publishers. Upgrading from 3.x? Follow the migration guide. 3.x is on the latest-3 tag and receives security and critical fixes until at least 2027-03-31.

- Aggregates and value objects: aggregates change their state through events, and ids keep their class.
- Typed command and query buses: Command and Query give execute\(\) its result type.
- An event store with optimistic concurrency, correlation and causation ids, headers, and a global position per pool that readAll\(\) reads in order, for projections and consumers that resume from a checkpoint.
- Snapshots that a snapshot repository takes at an interval, so long streams load fast.
- Event publishers and subscribers: publishers are awaited, in order per stream, and every delivery failure is reported on an observable.

## Author-documented requirements and audience

> @ocoda/event-sourcing is a library for NestJS with the building blocks for Domain-Driven Design \(DDD\), CQRS and Event Sourcing:





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/ocoda/event-sourcing/blob/master/README.md

Extraction checked: 2026-10-20T15:42:22.863Z

Last recorded source update: 2026-11-03T05:50:26.000Z

Saved release: @ocoda/event-sourcing@4.0.0 — 2026-09-30T15:10:30.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=ocoda%2Fevent-sourcing). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
