Electron (software framework)


Electron is a free and open-source software framework developed and maintained by OpenJS Foundation. The framework is designed to create desktop applications using web technologies that are rendered using a version of the Chromium browser engine and a back end using the Node.js runtime environment. It also uses various APIs to enable functionality such as native integration with Node.js services and an inter-process communication module.
Electron was originally built for Atom and is the main GUI framework behind several other open-source projects including GitHub Desktop, Light Table, WordPress Desktop, and Eclipse Theia. It is also used in Microsoft's proprietary code editor Visual Studio Code.

Architecture

forms the basis of a managed runtime, allowing application developers to write cross-platform applications in memory-safe JavaScript or TypeScript and target Web browser technologies including HTML, CSS, and SVG for graphics.
Electron-based applications include a "main" process and several "renderer" processes. The main process runs the logic for the application, and can then launch multiple renderer processes by instantiating an instance of the class, which loads a window that appears on the screen to render HTML, CSS, etc.
Both the main and renderer processes can run with Node.js integration if the field in the main process is set to.
Most of Electron's APIs are written in C++ or Objective-C and are exposed directly to the application code through JavaScript bindings.

History

In September 2021, Electron moved to an eight-week release cycle between major versions to match the release cycle of Chromium Extended Stable and to comply with a new requirement from the Microsoft Store that requires browser-based apps to be within two major versions of the latest release of the browser engine.
Electron frequently releases new major versions along every other Chromium release. The latest three stable versions are supported by the Electron team.
ReleaseStatusRelease dateEnd of life dateChromium versionNode.js versionModule versionN-API versionICU version
12 December 201720 December 2018598.257??
1 May 201824 April 2019618.957??
18 September 201829 July 20196610.2643?
20 December 201822 October 20196910.1169362.2
24 April 20194 February 20207312.070463.1
29 July 201918 May 20207612.473464.2
22 October 201925 August 20207812.875464.2
4 February 202016 November 20208012.1376565.1
18 May 20202 March 20218312.1480565.1
25 August 202025 May 20218512.1682565.1
16 November 202030 August 20218712.1885565.1
2 March 202115 November 20218914.1687768.1
25 May 202131 January 20229114.1689768.1
30 August 202129 March 20229214.1789869.1
21 September 202124 May 20229416.598??
15 November 202124 May 20229616.999??
1 February 20222 August 20229816.13101??
29 March 202226 September 202210016.13103??
24 May 202229 November 202210216.14106??
2 August 20227 February 202310416.15???
26 September 20224 April 202310616.16???
30 November 202210 October 202310816.17???
30 November 202215 August 202311018.12???
4 April 202310 October 202311218.14???
30 May 20235 December 202311418.15???
15 August 202320 February 202411618.16???
10 October 202316 April 202411818.17???
5 December 202311 June 202412018.18???
20 February 202420 August 202412220.9???
16 April 202415 October 202412420.11???
11 June 20247 January 202512620.14???
20 August 20244 March 202512820.16???
15 October 202429 April 202513020.18???
14 January 202524 June 202513220.18???
4 March 20252 September 202513422.14???
29 April 202528 October 202513622.14???
24 June 202513 January 2026138.0.7204.25122.21.1???
2 September 202510 March 2026140.0.7339.24922.21.1???
28 October 20255 May 2026142.0.7444.23522.21.1???
5 January 202613 January 2026 144.0.7547.024.11.1???
5 January 2026TBD145.0.7604.024.11.1???

Usage

Desktop applications built with Electron include Atom, balenaEtcher, Discord, Slack, and Visual Studio Code. The Brave browser was based on Electron before it was rewritten to use Chromium directly, while Microsoft Teams used Electron before 2.0.

Reception

The most common criticism of Electron is that it necessitates software bloat when used for simple programs. As a result, Michael Larabel has referred to the framework as "notorious among most Linux desktop users for being resource heavy, not integrating well with most desktops, and generally being despised".
Researchers have shown that Electron's large feature set can be hijacked by bad actors with write access to the source JavaScript files. This requires root access on *nix systems and is not considered to be a vulnerability by the Electron developers. Those who are concerned that Electron is not always based on the newest version of Chromium have recommended progressive web applications as an alternative.