@raws/es-toolkit

Event sourcing toolkit

Usage no npm install needed!

<script type="module">
  import rawsEsToolkit from 'https://cdn.skypack.dev/@raws/es-toolkit';
</script>

README

Raws event sourcing toolkit

WARNING

This library is at very early stage and under heavy development. It does not provide stable API. You shouldn't rely on it yet.

WARNING 2

One day after first version was published I've noticed there are downloads. This toolkit isn't ready yet, for today it's not yet usable and the repository is not yet public, it's published on NPM for testing purposes, please be patient, it will be awesome when it's ready :)

Usage

Here be usage

Interfaces and Base classes

  1. IEvent interface

    Any object implementing this interface will be accepted as a valid event.

  2. Event class

    Base class that can be extended to create a valid event. It handles few things for you (such as handling causation and correlation metadata).

  3. CreationEvent class

    Extend this class to create an event that constructs new Aggregate Root.

  4. AggregateRoot

    Extend this class to create event sourcing enabled aggregate root that registers and replays events.

  5. Coming soon