I am building an ElectronJS desktop app that will look similar to the image below with a sidebar of tools to click on and a right panel to load them into.
I want each tool to be a plugin so I can easily create/add/remove tools from the app
When clicking a tool in the sidebar it will load the plugins settings and files and run functions to build the content on the right.
Ass some plugins will be large apps I do not want to load them all and bogg down memory.
Is there a way to load each plugin tool in the right panel as its own process and then terminate the process and release memory used by that plugin once a new plugin tool is clicked on and loaded into the content panel