jec-engine

0.1.2 • Public • Published

Jec-Engine

The core engine that handles creating, compiling, and (later) querying Jec actions.

ToDo

  • change insertState/removeState functions to return an action
  • replace insertState/removeState with insertAction
  • add middleware/listeners/callbacks field to store, that stores actions to be performed when a path is modified (e.g: if due is set and recur exists, create new action to replicate the obj)

API

Provides the following functions:

  • setPersistHandlers: Jec Engine needs the following functions to hook into the outside:
    • listActions: output: a list of IDs uniqly idenifying every action
    • readAction: input: an action UUID, output: that action
    • writeAction: input: an action, sideEffect: save that action somehow Each of these functions should return a promise.
  • initalise: call once at program startup
  • getState: get the full engine state
  • insertState: input: an obj ID, and some state to add to it
  • removeState: input: and obj ID, and some state to remove from it.

Readme

Keywords

none

Package Sidebar

Install

npm i jec-engine

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

23.3 kB

Total Files

9

Last publish

Collaborators

  • freddieridell