Skip to main content

Core

Core is the fundemental framework upon which all modules are built. Core ultimately has 2 purposes:

  1. Message Relaying: Core recieves messages from modules which it then sends to the Layer API. Core is often responsible for embellishing these messages with additional data. When Core recieves a response from the API, it may broadcast this message to a set of listening modules.

  2. Executing Actions: When Core recieves a response from the Layer API, it may be asked to execute an action, or a sequence of actions (a workflow).

The gif below demonstrates a standard workflow where a module "sends" a message to Core and the API responds.

core purpose gif