A TypeScript port of the fgrzl/es event sourcing library.
es-ts is a small, strongly typed event sourcing core for TypeScript.
Key features:
- typed domain event descriptors and polymorphic serialization
- aggregate event wiring with
raise()andaudit()support - metadata stamping with correlation, causation, sequence, and timestamp
- in-memory store and repository semantics for load/save workflows
Scope-aware entity identities for global and tenant aggregates
Install dependencies with npm:
cd es-ts
npm ciBuild a package:
npm run buildRun tests:
npm run testRun benchmarks:
npm run benchFormat the code:
npm run fmtLint the code:
npm run lintRun a local dev server:
npm run deves-ts is licensed under the Apache License 2.0. See the repository LICENSE file for details.