NickTsitlakidis/event-nest
A collection of NestJs libraries to help you build applications based on event sourcing.
A collection of NestJS libraries for building event-sourced applications.
Read the Event Nest documentation or start with Build Your First Aggregate.
Event Nest is a focused set of libraries, not a complete application framework, ORM, or distributed event bus.
Install core and one persistence adapter:
pnpm add @event-nest/core @event-nest/postgresql pg
Replace @event-nest/postgresql pg with @event-nest/mongodb mongodb or @event-nest/mssql tedious for another adapter. See the installation guide for module configuration.
| Package | Purpose |
|---|---|
@event-nest/core | Aggregate, event, repository, snapshot, and subscription primitives |
@event-nest/mongodb |
No download data available
No tracked packages depend on this.
| MongoDB event and snapshot storage |
@event-nest/postgresql | PostgreSQL event and snapshot storage |
@event-nest/mssql | Microsoft SQL Server event and snapshot storage |
Event Nest requires Node.js 22 or later and supports NestJS 10 and 11. See the compatibility reference for exact driver peer ranges and migration notes.
The project has automated unit and integration coverage but has not yet been widely tested in production. Evaluate its persistence, failure-recovery, and operational behavior against your application's requirements.
See CONTRIBUTING.md for local setup and contribution guidance.
Event Nest is MIT licensed.