To interact with the frontend or web view, you must create renderer plugins, which are specifically designed for the renderer proces
Native Desktop Framework
Main Plugins
Main plugins allow you to customize, extend, or enhance the main process of the Native Desktop application. These plugins have full access to the Electron API, enabling you to add new capabilities or modify existing behavior. Each main plugin must follow a specific structure:
When the file follows this structure, Native Desktop will automatically identify and inject the plugin into the main process. There is no limit to the number of plugins you can create.
Main plugins operate on the backend side of the Native Desktop application and run within the main process. They do not have direct access to the web view.
This approach allows developers to extend the core Native Desktop functionality safely and efficiently.
Here is a sample main plugin example. In this example, a new window is created whenever the main window is initialized: