Module system - isolated event-driven state and logic.
A cell module is an encapsulated unit of functionality containing:
- Type definitions for the
events
anddata
structures that constitute the module. - The logic for booting the module into a runtime environment.
- The location of the compiled code assets ("bundle") of the module.
- The
client
for persisting module instance state down to the underlying cell memory.
A module is itself nothing more than a "type of" ITreeNode
data strcutrue that slots into a wider organizing tree. Modules may be used for managing UI ("user interface") or for purely computation operations.
Setup
yarn add @platform/cell.module