Skip to content

Plugin

Defined in: types.ts:25

Plugin interface for extending the engine.

readonly optional dependencies?: readonly string[]

Defined in: types.ts:31

Names of plugins this plugin depends on.


readonly name: string

Defined in: types.ts:27

Unique plugin name.


readonly version: string

Defined in: types.ts:29

Semantic version string.

optional install(context): void | Promise<void>

Defined in: types.ts:33

Install services into the engine context. Called in topological order.

EngineContext

void | Promise<void>


optional onDestroy(): void

Defined in: types.ts:39

Called when the engine is destroyed.

void


optional onStart(): void | Promise<void>

Defined in: types.ts:37

Called after all plugins are installed and the engine has started.

void | Promise<void>


optional registerSystems(scheduler): void

Defined in: types.ts:35

Register systems with the scheduler. Called after install.

SystemScheduler

void

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.