Add-on Structure

package.json​

The package.json file is a format for describing Node.js modules. Local Add-ons are built on top of Node.js modules.

You must define a renderer and/or main entry-point.

​Renderer process entry point​

The renderer process is what runs inside the main window. This is where you'll add buttons, forms, and any other user interface elements.

Most Add-ons will exclusively use the renderer process entry point for the sake of simplicity.

​Main process entry point​

By tapping into the main process, you can run processes even when the window is closed but Local is still running.