Skip to content

Examples Overview

In this section, we have collected a set of guides for common features that you may want to implement in your Electron application. Each guide contains a practical example in a minimal, self-contained example app. The easiest way to run these examples is by downloading Electron Fiddle.

Once Fiddle is installed, you can press on the "Open in Fiddle" button that you will find below code samples like the following one:

fiddle

If there is still something that you do not know how to do, please take a look at the API as there is a chance it might be documented just there (and also open an issue requesting the guide!).

GuideDescription
Message portsThis guide provides some examples of how you might use MessagePorts in your app to communicate different processes.
Device accessLearn how to access the device hardware (Bluetooth, USB, Serial).
Keyboard shortcutsConfigure local and global keyboard shortcuts for your Electron application.
MultithreadingWith Web Workers, it is possible to run JavaScript in OS-level threads
Offscreen renderingOffscreen rendering lets you obtain the content of a BrowserWindow in a bitmap, so it can be rendered anywhere.
SpellcheckerLearn how to use the built-in spellchecker, set languages, etc.
Web embedsDiscover the different ways to embed third-party web content in your application.

How to...?

You can find the full list of "How to?" in the sidebar. If there is something that you would like to do that is not documented, please join our Discord server and let us know!

Released under the MIT License. (dev)