@authentik8/es-eventstore

Libary for configuring Event Stores associated with event-sourcing

Usage no npm install needed!

<script type="module">
  import authentik8EsEventstore from 'https://cdn.skypack.dev/@authentik8/es-eventstore';
</script>

README

@authentik8/es-eventstore

This package provides my take on an event store, with a number of configured back-ends

Installation

npm install @authentik8/es-eventstore

Usage


import { 
  getEventStore, 
  createInMemoryDriver, 
  createFilesystemDriver 
} from '@authentik8/es-eventstore';

const inMemoryStorage = createInMemoryDriver();
const fileStorage = createFilesystemDriver();

const inMemoryEventStore = getEventStore(inMemoryStorage)
const filesystemEventStore = getEventStore(fileStorage);