The backend registry allows you to execute operations during app startup, register custom tray menu triggers, and retrieve utility instances of major application managers.
App lifecycle event registry
The lynxApi parameter exposes methods to register callback hooks executing at various stages of the application lifecycle:
System tray integration
You can insert custom menu options directly into the LynxHub system tray context menu.
Example: Tray item clicks
Error tracking telemetry
To track uncaught exceptions in the backend process, initialize a Sentry telemetry scope:
Main process utilities (utils)
The utils parameter contains references to core modules, terminal tools, and window managers:
Native pseudo-terminals (nodePty)
Exposes the node-pty module directly. You can use it to spawn shell terminals or Python executables:
Window manager (getAppManager())
Resolves to the MainWindowManager class singleton. Use this to control the main window or send IPC messages directly to the frontend.
Modules controller (getModuleManager())
Resolves to the ModuleManager class singleton. Use this to monitor or modify installed card modules.
Last modified on June 21, 2026