Skip to main content
Klyx provides services to extensions through property delegates. Services fall into two categories: global plugin services and per-plugin runtime services.

Plugin services (global)

Global services are singletons shared across all plugins. Access them with by plugin():
These delegates work from anywhere in your KlyxPlugin implementation, including init blocks.

Runtime services (per-plugin)

Runtime services are scoped to your specific plugin instance. Access them with by runtime():
PluginInfo gives you access to the plugin’s descriptor and file paths:

Accessing services from PluginContext

If you have a PluginContext (e.g., from currentPluginContext()), you can resolve services inline:

Accessing from coroutine context

In a coroutine, access the plugin context through the current coroutine context:
Available functions:

Complete service list

Last modified on July 11, 2026