Skip to main content

Electron

Electron is a library/framework for building cross-platform desktop apps with JavaScript, HTML, and CSS.

Electron

Here are some example applications built using Electron:

  • Discord
  • Asana
  • Figma
  • Notion
  • Microsoft Teams
  • Slack
  • WhatsApp
  • Signal

...and the list goes on.


Sapling offers integrations with Electron apps through its SDK. You can use any of the options below to integrate with Electron.

Basic Debugging

If Sapling does not work as expected, you can start Chrome Devtools by following the instructions here. In essence, if your BrowserWindow object is called mainWindow, call mainWindow.webContents.openDevTools(). The starter code should have a line that you can simply uncomment. From there you'll be able to see error messages in the Console tab.

If you see that the page refused to load the Sapling SDK script because of a Content Security Policy (CSP) issue and are unable to debug, contact us. Similarly let us know if you have any issues importing the Sapling module.