Socket
Book a DemoInstallSign in
Socket

@eventicle/eventicle-extension-lib

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eventicle/eventicle-extension-lib

= Eventicle JS

latest
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

= Eventicle JS

Full documentation can be found in the Book Of Eventicle // TODO, link == Quickstart

Install

npm install @eventicle/eventiclejs

Configure

index.ts

import {setEventSourceName,
  eventClientOnDatastore,
  InMemoryDatastore,
  setDataStore,
  setEventClient} from '@eventicle/eventiclejs';

// the "source" of the events created by this application
setEventSourceName('my-cool-service');

// in service data storage abstraction. Used by the internals of eventicle, can also be used in app code
setDataStore(new InMemoryDatastore());

// The connection to the event transport, this is in memory and stores events and state in the current datastore
setEventClient(eventClientOnDatastore());

Now that you have the basic Eventicle infrastructure running, you can start to emit and observe events using the event client.




  • emit an event

  • observe an event

  • Manage state with an event sourced Aggregate Root

  • Use a command to change state and emit events

  • Use a View to create optimised representations of your data

  • Make event driven workflows using a saga

Full documentation can be found in the Book Of Eventicle // TODO, link

FAQs

Package last updated on 21 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts