How to create an electron application with plugins (or packages) support?


#1

What’s the best way to create an electron application with
plugins (like Atom packages) support and management? Any boilerplate?
Documentation?

Thank you in advance.


#2

The plugin/package system can be very different depends on the App you make. Atom for example it is a text editor, so its plugin system is focus on how to register hot-keys, and how to invoke function for different text editing event.

In my project, we are developing an Unity3D like game editor – fireball. So plugin for it is all about Assets editing and data view. For this purpose, I write a boilerplate which is focus on game editor package system on Electron — https://github.com/fireball-x/editor-framework.

I think a plugin system depends on what your App looks like, and how much things you want people to extends it.


#3

https://github.com/EvolveLabs/electron-updater has some support for plugins. It might be worth a look.