Recent from talks
Nothing was collected or created yet.
Electron (software framework)
View on Wikipedia
| Electron | |
|---|---|
| Original author | GitHub |
| Developer | OpenJS Foundation |
| Initial release | 15 July 2013[1] |
| Stable release | 36.2.0[2]
/ May 7, 2025 |
| Preview release | 37.0.0-alpha.3[3]
/ May 5, 2025 |
| Repository | |
| Written in | C++, JavaScript, Objective-C++ and Objective-C |
| Operating system | Linux, macOS, and Windows |
| Platform | IA-32, x86-64, ARM |
| License | MIT License[4] |
| Website | www |
Electron (formerly known as Atom Shell[5]) is a free and open-source software framework developed and maintained by OpenJS Foundation.[6] The framework is designed to create desktop applications using web technologies (mainly HTML, CSS and JavaScript, although other technologies such as front-end frameworks and WebAssembly are possible) that are rendered using a version of the Chromium browser engine and a back end using the Node.js runtime environment.[7] 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[5] and is the main GUI framework behind several other open-source projects including GitHub Desktop, Light Table,[8] Visual Studio Code, WordPress Desktop,[9] and Eclipse Theia.[10]
Architecture
[edit]Electron applications include a "main" process and several "renderer" processes. The main process runs the logic for the application (e.g., menus, shell commands, lifecycle events), and can then launch multiple renderer processes by instantiating an instance of the BrowserWindow class, which loads a window that appears on the screen by rendering HTML and CSS.[citation needed]
Both the main and renderer processes can run with Node.js integration if the nodeIntegration field in the main process is set to true.[citation needed]
Most of Electron's APIs are written in C++ or Objective-C and are exposed directly to the application code through JavaScript bindings.[11]
History
[edit]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.[12]
Electron frequently releases new major versions along every other Chromium release. The latest three stable versions are supported by the Electron team.[13]
| Release | Status | Release date | End of life date | Chromium version | Node.js version | Module version | N-API version | ICU version |
|---|---|---|---|---|---|---|---|---|
| v1.8.x | End-of-Life | 12 December 2017 | 20 December 2018 | 59 | 8.2 | 57 | ? | ? |
| v2.0.x | End-of-Life | 1 May 2018 | 24 April 2019 | 61 | 8.9 | 57 | ? | ? |
| v3.1.x | End-of-Life | 18 September 2018 | 29 July 2019 | 66 | 10.2 | 64 | 3 | ? |
| v4.2.x | End-of-Life | 20 December 2018 | 22 October 2019 | 69 | 10.11 | 69 | 3 | 62.2 |
| v5.1.x | End-of-Life | 24 April 2019 | 4 February 2020 | 73 | 12.0 | 70 | 4 | 63.1 |
| v6.1.x | End-of-Life | 29 July 2019 | 18 May 2020 | 76 | 12.4 | 73 | 4 | 64.2 |
| v7.3.x | End-of-Life | 22 October 2019 | 25 August 2020 | 78 | 12.8 | 75 | 4 | 64.2 |
| v8.3.x | End-of-Life | 4 February 2020 | 16 November 2020 | 80 | 12.13 | 76 | 5 | 65.1 |
| v9.4.x | End-of-Life | 18 May 2020 | 2 March 2021 | 83 | 12.14 | 80 | 5 | 65.1 |
| v10.4.x | End-of-Life | 25 August 2020 | 25 May 2021 | 85 | 12.16 | 82 | 5 | 65.1 |
| v11.4.x | End-of-Life | 16 November 2020 | 30 August 2021 | 87 | 12.18 | 85 | 5 | 65.1 |
| v12.0.x | End-of-Life | 2 March 2021 | 15 November 2021[14] | 89 | 14.16 | 87 | 7 | 68.1 |
| v13.x.y | End-of-Life | 25 May 2021 | 31 January 2022[15] | 91 | 14.16 | 89 | 7 | 68.1 |
| v14.x.y | End-of-Life | 30 August 2021 | 29 March 2022[16] | 92 | 14.17 | 89 | 8 | 69.1 |
| v15.x.y | End-of-Life | 21 September 2021 | 24 May 2022[17] | 94 | 16.5 | 98 | ? | ? |
| v16.x.y | End-of-Life | 15 November 2021[14] | 24 May 2022[17] | 96 | 16.9 | 99 | ? | ? |
| v17.x.y | End-of-Life | 1 February 2022[15] | 2 August 2022 | 98 | 16.13 | 101 | ? | ? |
| v18.x.y | End-of-Life | 29 March 2022[16] | 26 September 2022[18] | 100 | 16.13 | 103 | ? | ? |
| v19.x.y | End-of-Life | 24 May 2022[17] | 29 November 2022[19] | 102 | 16.14 | 106 | ? | ? |
| v20.x.y | End-of-Life | 2 August 2022[20] | 7 February 2023 | 104 | 16.15 | ? | ? | ? |
| v21.x.y | End-of-Life | 26 September 2022[18] | 4 April 2023 | 106 | 16.16 | ? | ? | ? |
| v22.x.y | End-of-Life | 30 November 2022[19] | 10 October 2023 | 108 | 16.17 | ? | ? | ? |
| v23.x.y | End-of-Life | 30 November 2022[21] | 15 August 2023 | 110 | 18.12 | ? | ? | ? |
| v24.x.y | End-of-Life | 4 April 2023[22] | 10 October 2023 | 112 | 18.14 | ? | ? | ? |
| v25.x.y | End-of-Life | 30 May 2023[23] | 5 December 2023 | 114 | 18.15 | ? | ? | ? |
| v26.x.y | End-of-Life | 15 August 2023[24] | 20 February 2024 | 116 | 18.16 | ? | ? | ? |
| v27.x.y | End-of-Life | 10 October 2023[25] | 16 April 2024 | 118 | 18.17 | ? | ? | ? |
| v28.x.y | End-of-Life | 5 December 2023[26] | 11 June 2024 | 120 | 18.18 | ? | ? | ? |
| v29.x.y | End-of-Life | 20 February 2024 | 20 August 2024 | 122 | 20.9 | ? | ? | ? |
| v30.x.y | End-of-Life | 16 April 2024 | 15 October 2024 | 124 | 20.11 | ? | ? | ? |
| v31.x.y | End-of-Life | 11 June 2024 | 7 January 2025 | 126 | 20.14 | ? | ? | ? |
| v32.x.y | End-of-Life | 20 August 2024 | 4 March 2025 | 128 | 20.16 | ? | ? | ? |
| v33.x.y | End-of-Life | 15 October 2024[27] | 29 April 2025 | 130 | 20.18 | ? | ? | ? |
| v34.x.y | End-of-Life | 14 January 2025[28] | 24 June 2025 | 132 | 20.18 | ? | ? | ? |
| v35.x.y | End-of-Life | 4 March 2025[29] | 2 September 2025 | 134 | 22.14 | ? | ? | ? |
| v36.x.y | Active | 29 April 2025[30] | 28 October 2025 | 136 | 22.14 | ? | ? | ? |
| v37.x.y | Active | 24 June 2025[31] | 13 January 2026 | 138 | 22.16 | ? | ? | ? |
| v38.x.y | Current | 2 September 2025[32] | 10 March 2026 | 140 | 22.18 | ? | ? | ? |
| v39.x.y | Prerelease | 28 October 2025[33] | 5 May 2026 | 142 | TBD | ? | ? | ? |
| v40x.y | Nightly | TBD[34] | TBD | TBD | TBD | ? | ? | ? |
Usage
[edit]Desktop applications built with Electron include Atom,[35] balenaEtcher,[36] Discord, Slack,[37] and Visual Studio Code.[38][39] The Brave browser was based on Electron before it was rewritten to use Chromium directly[40], while Microsoft Teams used Electron before 2.0.[41][42]
Reception
[edit]The most common criticism of Electron is that it necessitates software bloat when used for simple programs.[43] 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."[44] 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.[45] Those who are concerned that Electron is not always based on the newest version of Chromium have recommended progressive web applications as an alternative.[46]
See also
[edit]References
[edit]- ^ "electron/electron". GitHub. Archived from the original on 2 August 2016. Retrieved 8 May 2018.
- ^ "Release electron v36.2.0 · electron/electron". GitHub. 7 May 2025. Retrieved 7 May 2025.
- ^ "Release electron v37.0.0-alpha.3 · electron/electron". GitHub. 5 May 2025. Retrieved 7 May 2025.
- ^ "electron/LICENSE at master". GitHub. Archived from the original on 12 May 2017. Retrieved 3 July 2020.
- ^ a b Sawicki, Kevin (23 April 2015). "Atom Shell is now Electron". Electron. Archived from the original on 9 November 2017. Retrieved 6 January 2022.
- ^ "Build cross-platform desktop apps with JavaScript, HTML, and CSS | Electron". Archived from the original on 9 May 2022. Retrieved 1 February 2023.
- ^ "Electron Internals: Using Node as a Library". electronjs.org. 8 August 2016. Archived from the original on 9 November 2017. Retrieved 3 July 2020.
- ^ Horner, Gabriel (10 December 2015). "Light Table 0.8.0". lighttable.com. Archived from the original on 13 December 2015. Retrieved 3 July 2020.
- ^ "GitHub Repository". GitHub. Archived from the original on 19 February 2016. Retrieved 16 June 2019.
- ^ "Theia - Cloud and Desktop IDE Platform". theia-ide.org. Archived from the original on 20 April 2018. Retrieved 31 December 2021.
- ^ "From native to JavaScript in Electron | Electron Blog". electronjs.org. 19 March 2019. Archived from the original on 26 April 2019. Retrieved 26 April 2019.
- ^ "New Electron Release Cadence | Electron". electronjs.org. 14 July 2021. Archived from the original on 14 July 2021. Retrieved 9 February 2022.
- ^ "Electron Releases | Electron". electronjs.org. Archived from the original on 16 December 2022. Retrieved 16 December 2022.
- ^ a b "Release electron v16.0.0 · electron/electron". GitHub. Archived from the original on 6 December 2021. Retrieved 3 December 2021.
- ^ a b "Release electron v17.0.0 · electron/electron". GitHub. Archived from the original on 12 February 2022. Retrieved 28 February 2022.
- ^ a b "Release electron v18.0.0 · electron/electron". GitHub. Archived from the original on 4 May 2022. Retrieved 4 May 2022.
- ^ a b c "Release electron v19.0.0 · electron/electron". GitHub. Archived from the original on 31 May 2022. Retrieved 31 May 2022.
- ^ a b "Release electron v21.0.0 · electron/electron". GitHub. Archived from the original on 16 December 2022. Retrieved 16 December 2022.
- ^ a b "Release electron v22.0.0 · electron/electron". GitHub. Archived from the original on 15 December 2022. Retrieved 16 December 2022.
- ^ "Release electron v20.0.0 · electron/electron". GitHub. Archived from the original on 16 December 2022. Retrieved 16 December 2022.
- ^ "Release electron v23.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
- ^ "Release electron v24.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
- ^ "Release electron v25.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
- ^ "Release electron v26.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
- ^ "Release electron v27.0.0 · electron/electron". GitHub. 10 October 2023. Archived from the original on 11 October 2023. Retrieved 11 October 2023.
- ^ "Release electron v28.0.0 · electron/electron". GitHub. 4 December 2023. Archived from the original on 14 December 2023. Retrieved 14 December 2023.
- ^ "Release electron v33.0.0 · electron/electron". GitHub. 14 October 2024. Retrieved 16 October 2024.
- ^ "Release electron v34.0.0 · electron/electron". GitHub. 14 January 2025. Retrieved 7 May 2025.
- ^ "Release electron v35.0.0 · electron/electron". GitHub. 3 March 2025. Retrieved 7 May 2025.
- ^ "Release electron v36.0.0 · electron/electron". GitHub. 28 April 2025. Retrieved 16 October 2025.
- ^ "Release electron v37.0.0 · electron/electron". Electron. 21 April 2025. Retrieved 16 October 2025.
- ^ "Release electron v38.0.0 · electron/electron". GitHub. 28 April 2025. Retrieved 16 October 2025.
- ^ "Releases". Electron. 16 October 2025. Retrieved 16 October 2025.
- ^ "Nightly · Electron Releases". Electron. 16 October 2025. Retrieved 16 October 2025.
- ^ Sawicki, Kevin (23 April 2015). "Atom Shell is now Electron". Electron. Archived from the original on 16 October 2019. Retrieved 15 July 2017.
- ^ "Etcher on GitHub". GitHub. Archived from the original on 16 November 2018. Retrieved 7 July 2020.
- ^ "Building hybrid applications with Electron". Several People Are Coding. 25 October 2016. Archived from the original on 16 October 2019. Retrieved 12 August 2017.
- ^ Bright, Peter (29 April 2015). "Microsoft's new Code editor is built on Google's Chromium". Ars Technica. Archived from the original on 7 May 2015. Retrieved 18 November 2015.
- ^ "Open Source project". GitHub. 29 March 2022. Archived from the original on 23 November 2015. Retrieved 20 May 2018.
- ^ Singh, Jagmeet (3 January 2017). "People are now even doing machine learning in JavaScript". Open Source For U. Archived from the original on 7 January 2017. Retrieved 26 August 2022.
- ^ msdmaguire. "How Microsoft Teams uses memory - Microsoft Teams". docs.microsoft.com. Archived from the original on 8 December 2020. Retrieved 12 November 2021.
- ^ Redmond, Tony (25 June 2021). "Teams 2.0 Moves Away from Electron to Embrace Edge WebView2". Office 365 for IT Pros. Retrieved 2 August 2024.
- ^ Proven, Liam (19 November 2021). "Some FOSS gems: Franz, RamBox, Pidgin and more". The Register. Archived from the original on 19 November 2021. Retrieved 26 August 2022.
- ^ Larabel, Michael (9 February 2019). "Electron Apps Are Bad, So Now You Can Create Desktop Apps With HTML5 + Golang". Phoronix. Archived from the original on 26 August 2022. Retrieved 26 August 2022.
- ^ Gallagher, Sean (7 August 2019). "Skype, Slack, other Electron based apps can be easily backdoored". Ars Technica. Archived from the original on 7 August 2019. Retrieved 26 August 2022.
- ^ Hoffman, Chris (15 August 2019). "That native app is probably just an old web browser". How To Geek. Archived from the original on 15 August 2019. Retrieved 26 August 2022.
External links
[edit]Electron (software framework)
View on GrokipediaOverview
Purpose and Capabilities
Electron is a free and open-source software framework designed for building desktop applications that mimic native software experiences using web technologies, primarily HTML, CSS, and JavaScript.[1] This approach allows developers to leverage familiar web development tools and libraries to create robust applications without deep expertise in platform-specific programming languages.[1] The core purpose of Electron is to facilitate cross-platform development, enabling the creation of applications that operate seamlessly on Windows, macOS, and Linux from a unified codebase, which significantly reduces the need for separate native implementations per operating system.[1] By embedding Chromium for rendering and Node.js for backend capabilities, Electron bridges web content with desktop environments in a single binary distribution.[1] Electron's key capabilities include rendering native-like user interfaces through Chromium's web engine, while providing access to operating system-level APIs via Node.js for tasks such as file handling, notifications, and menu systems.[1] These features enable developers to integrate web-based frontends with essential desktop functionalities, supporting everything from simple utilities to complex tools like code editors and communication platforms.[7] Among its high-level benefits, Electron accelerates development cycles for web developers entering the desktop space by capitalizing on the ubiquity of JavaScript and the npm ecosystem, allowing rapid prototyping and deployment with a focus on stability and security.[7] Maintained as an Impact Project under the OpenJS Foundation since its graduation in June 2020, Electron benefits from sustained community governance and regular updates aligned with Chromium's stable releases.[8]Underlying Technologies
Electron leverages a combination of established web and runtime technologies to enable the development of desktop applications using web standards. At its core, the framework embeds the Chromium rendering engine, which is responsible for handling user interface rendering, ensuring compliance with modern web standards such as HTML5, CSS3, and JavaScript APIs, and providing a browser-like environment within desktop applications.[9] This integration allows developers to create rich, interactive interfaces that behave consistently across different operating systems without needing platform-specific UI toolkits. Complementing Chromium is the Node.js runtime, which extends JavaScript's capabilities beyond the browser to include server-side functionalities. Node.js enables access to low-level operating system APIs, such as file system operations, networking, and process management, all executed within the same JavaScript environment as the frontend code.[9] This runtime integration facilitates backend logic for applications, including native module loading for performance-critical tasks, without requiring separate languages or compilation steps. Both Chromium and Node.js rely on the V8 JavaScript engine developed by Google, which serves as the common execution environment for JavaScript code across the rendering and backend components. V8 compiles JavaScript to native machine code for high performance, ensuring consistent behavior and optimization whether code runs in the renderer process for UI updates or in the main process for application logic.[10] This shared engine minimizes discrepancies in JavaScript execution, allowing developers to use a unified codebase for both client-side and server-side features. The integration model of Electron bundles the Chromium rendering engine for frontend operations and the Node.js runtime for backend tasks into a single, self-contained executable binary. This packaging process embeds all necessary components, including the V8 engine, directly into the application, enabling web technologies to interact seamlessly with operating system APIs while maintaining isolation between processes for security and stability.[9] As a result, applications can be distributed as standalone files that run natively on macOS, Windows, and Linux, without requiring users to install additional browsers or runtimes.Architecture
Core Components
Electron's core components consist of several key modules that form the foundation of application development, primarily operating within the main process or renderer processes. Theapp module serves as the central controller for the application's lifecycle, handling initialization, startup, and termination events. It emits critical events such as ready, which signals when Electron has finished initializing and is prepared to create browser windows, and quit, which occurs during application shutdown. Developers use methods like app.quit() to programmatically exit the app and app.whenReady() to ensure readiness before proceeding with window creation.[11]
Complementing the app module, the BrowserWindow module enables the creation and management of application windows, providing fine-grained control over their appearance, behavior, and content loading. It allows instantiation of windows with customizable options, including dimensions, title bars, and fullscreen modes, via constructors like new BrowserWindow(options). Key methods include loadURL() for fetching remote content and loadFile() for local HTML files, alongside controls for resizing, focusing, and closing windows. The Menu module, meanwhile, facilitates the construction of native operating system menus, such as application menus and context menus, supporting accelerators and roles for platform-specific behaviors like keyboard shortcuts. It integrates with windows through Menu.setApplicationMenu() to set the top-level menu bar.[12][13]
For communication between processes, Electron provides the ipcMain and ipcRenderer modules, which enable asynchronous and synchronous messaging across the main and renderer threads. The ipcMain module, used in the main process, listens for messages from renderers via event emitters and methods like ipcMain.on(channel, listener), allowing replies through event.reply(). Conversely, the ipcRenderer module operates in renderer processes to send messages to the main process using ipcRenderer.send(channel, ...args) or invoke handlers with promises via ipcRenderer.invoke(). These modules ensure secure, channel-based inter-process communication without direct exposure of sensitive APIs.[14][15]
Additional essential components include the session module, which manages browser sessions encompassing cookies, cache, and web requests; it provides access to session objects for clearing storage data or setting proxies, ensuring isolated or persistent data handling per partition. The webContents module interacts directly with web page content within a BrowserWindow, offering methods to execute JavaScript, inject CSS, and monitor navigation events like did-finish-load. The protocol module supports the registration of custom URL schemes, such as app://, allowing interception and handling of requests to serve custom content or bypass standard protocols, which must be configured after the app ready event.[16][17][18]
These components interact cohesively to bridge web technologies with native desktop features: the main process, initialized via the app module, spawns renderer processes through BrowserWindow instances for rendering user interfaces, while ipcMain and ipcRenderer facilitate data exchange between them. Modules like session, webContents, and protocol extend renderer capabilities by managing network interactions and content manipulation, and Menu integrates OS-native elements, all leveraging Electron's embedded Chromium and Node.js runtimes for consistent cross-platform behavior.[19]
Process Model
Electron employs a multi-process architecture inspired by Chromium's design, which separates the application's core logic from its user interface rendering to enhance security, stability, and performance.[20] This model divides the runtime into distinct processes that operate independently, preventing issues in one from propagating to others, much like how modern web browsers handle tabs and the browser UI.[20] The main process serves as the single entry point for an Electron application, executing in a Node.js environment and typically starting from a file such asmain.js.[20] It is responsible for managing the application's lifecycle, handling native graphical user interface elements like menus and dialogs, and overseeing the creation and control of renderer processes.[20] For instance, modules from Electron's core components, such as BrowserWindow, are used in the main process to spawn and configure these renderer instances.[20]
Renderer processes, in contrast, are Chromium-based instances that run in sandboxed environments, with one typically dedicated to each application window or web view.[20] These processes execute the frontend code using HTML, CSS, and JavaScript, rendering the user interface while remaining isolated from the main process and direct access to Node.js APIs.[20] By design, renderers focus solely on web content presentation, leveraging Chromium's rendering engine to ensure consistent cross-platform behavior.[20]
Electron also supports utility processes, which are additional child processes spawned from the main process using the UtilityProcess API. These run in a Node.js environment, allowing access to Node.js modules and APIs, and are intended for handling CPU-intensive tasks, untrusted services, or components prone to crashes. Utility processes can communicate with renderer processes via MessagePort and provide an alternative to Node.js's child_process.fork() when inter-process communication with renderers is needed.[21][20]
Communication between the main and renderer processes occurs through inter-process communication (IPC), an asynchronous messaging system that uses predefined channels to exchange data without granting direct access between processes.[22] This mechanism allows the main process to respond to events from renderers, such as user interactions, while maintaining strict separation to uphold security boundaries.[22]
From a security perspective, Electron's process model incorporates site isolation and sandboxing to confine potential vulnerabilities within individual renderer processes, ensuring that a crash or exploit in one does not compromise the entire application or the main process.[20] Preload scripts further bolster this by enabling controlled exposure of Node.js functionalities to renderer contexts before the web content loads, using techniques like context isolation to prevent unauthorized access to privileged APIs.[20]
In terms of performance, the multi-process approach mirrors Chromium's strategy to mitigate single points of failure, allowing the application to remain responsive even if a renderer encounters issues like resource-intensive rendering or errors in web code.[20] This isolation promotes overall stability by distributing workload across processes, reducing the risk of total app failure and enabling efficient resource management in desktop environments.[20]
History
Development Origins
Electron was initially developed in 2013 by engineers at GitHub, including Cheng Zhao (also known as zcbenz), as a framework named Atom Shell to power the company's Atom text editor.[23] The project stemmed from the need to create a lightweight, hackable text editor using web technologies like HTML, CSS, and JavaScript, while enabling access to native desktop APIs without requiring developers to write platform-specific code in languages such as C++ or Objective-C.[23] This approach addressed limitations in existing tools like node-webkit (now NW.js) and the Chromium Embedded Framework (CEF), by combining Node.js for backend capabilities with Chromium's rendering engine to form a unified runtime for cross-platform desktop applications.[23] The first commit for Atom Shell occurred on March 13, 2013, marking the inception of its core architecture.[23] An initial version, 0.1.0, was released internally in July 2013 to support early Atom development.[24] Atom Shell was integrated directly into the Atom editor, which entered public beta in April 2014, demonstrating its viability for building performant, web-based desktop tools.[23] This integration quickly sparked broader interest, as developers recognized its potential for creating hybrid web-to-desktop applications beyond text editing, leading to early experiments by the community.[23] Due to the framework's growing popularity independent of Atom, it was rebranded as Electron on April 23, 2015, to reflect its standalone utility and attract wider adoption. Initially maintained under GitHub's stewardship, Electron transitioned to open-source governance under the OpenJS Foundation in December 2019, ensuring neutral, community-driven development and long-term sustainability.[25]Release Timeline
Electron's release timeline follows a structured versioning scheme aligned with Chromium's development cycle, ensuring timely access to security updates and new web technologies. Since version 2.0, Electron adheres to Semantic Versioning (SemVer), where major releases introduce breaking changes, minor releases add non-breaking features, and patch releases address bug fixes.[26] Major versions are released every 8 weeks, matching Chromium's cadence since Electron 16, to incorporate the latest browser engine advancements.[27] Long-term support (LTS) versions receive active maintenance for 12 months, followed by 2 years of security updates only, with the project supporting the three most recent stable major versions at any time.[27] The framework's first stable release, Electron 1.0, arrived on May 11, 2016, marking a milestone in API stability and providing a mature foundation for cross-platform desktop applications with improved documentation and tooling.[28] This version embedded Chromium 49 and Node.js 7.4, enabling developers to build native-feeling apps without frequent breaking changes.[28] Electron 5.0, released on April 23, 2019, introduced asynchronous API improvements, including promisification of key modules like the SpellCheck API, alongside major upgrades to Chromium 73, V8 7.3, and Node.js 12.0.[29] These changes enhanced performance and developer ergonomics by reducing callback-heavy patterns, though they required app compatibility adjustments.[29] In August 2020, Electron 10.0 launched with support for macOS Big Sur, incorporating Chromium 85, V8 8.5, and Node.js 12.16 to align with Apple's upcoming OS redesign and improved security features. This release emphasized performance optimizations and better integration with modern macOS APIs ahead of Big Sur's November rollout. Electron 20.0, released on August 2, 2022, provided native support for Apple Silicon (ARM64) architectures, building on earlier previews to deliver efficient binaries for M-series chips without Rosetta emulation, paired with Chromium 104, V8 10.4, and Node.js 16.15.[30] This update solidified cross-platform efficiency, particularly for macOS users transitioning to ARM hardware.[31] As of November 2025, recent releases continue the rapid cadence with a focus on security and compatibility. Electron 37.0.0, dated June 24, 2025, upgraded to Chromium 138, V8 13.8, and Node.js 22.16.0, introducing performance optimizations and deprecating support for older Node versions below 20.x.[32] Electron 38.0.0 followed on September 9, 2025, with Chromium 140, V8 14.0, and the same Node.js version, enhancing Wayland protocol support for Linux and shifting documentation to TypeScript for better type safety.[33] Electron 39.0.0, released on October 28, 2025, upgraded to Chromium 142.0.7444.52, V8 14.2, and Node.js 22.20.0, stabilizing ASAR integrity validation, adding APIs for hardware acceleration detection and granular accessibility management, and ending support for version 36.x.[34] These updates, while delivering new web features like improved JavaScript execution, necessitate regular compatibility testing due to Chromium's frequent changes.[27]| Version | Release Date | Key Chromium/Node.js Versions | Notable Advancements |
|---|---|---|---|
| 1.0.0 | May 11, 2016 | Chromium 49 / Node.js 7.4 | Stable API foundation |
| 5.0.0 | Apr 23, 2019 | Chromium 73 / Node.js 12.0 | Async API promisification |
| 10.0.0 | Aug 25, 2020 | Chromium 85 / Node.js 12.16 | macOS Big Sur support |
| 20.0.0 | Aug 2, 2022 | Chromium 104 / Node.js 16.15 | Native Apple Silicon |
| 37.0.0 | Jun 24, 2025 | Chromium 138 / Node.js 22.16 | Performance optimizations, Node deprecations |
| 38.0.0 | Sep 9, 2025 | Chromium 140 / Node.js 22.16 | Enhanced Wayland, TypeScript docs |
| 39.0.0 | Oct 28, 2025 | Chromium 142 / Node.js 22.20 | Stable ASAR integrity, hardware acceleration APIs |
Usage and Development
Creating Applications
To develop an Electron application, developers must first ensure they have the necessary prerequisites installed. This includes the latest Long Term Support (LTS) version of Node.js, which comes bundled with npm (Node Package Manager), as Electron relies on Node.js for its runtime environment.[10] Basic knowledge of web development technologies such as JavaScript, HTML, and CSS is also essential, along with familiarity with Node.js concepts like modules and asynchronous programming.[10] A code editor like Visual Studio Code and a command-line interface are recommended for efficient development.[10] The setup process begins by creating a new project directory and initializing it as an npm package. Developers can runmkdir my-electron-app && cd my-electron-app to create and enter the directory, followed by npm init to generate a package.json file, specifying main.js as the entry point.[35] Next, install Electron as a development dependency using npm install electron --save-dev, which adds it to the devDependencies section of package.json.[35] Essential files include main.js for the application's main process and index.html for the user interface rendered in the browser window.[35]
In basic implementation, the main process in main.js imports modules with const { app, BrowserWindow } = require('electron/main'); to manage the application lifecycle and create and control windows. The app.whenReady() method ensures the application is fully initialized before creating a new BrowserWindow instance, typically with dimensions like 800x600 pixels, and loading content via win.loadFile('index.html') or win.loadURL('[https](/page/HTTPS)://example.com'). Since Electron 28, APIs are modularized; main process code uses require('electron/main'), while renderer and preload scripts use require('electron') or require('electron/renderer') as appropriate.[35] Event handlers are crucial for cross-platform behavior; for instance, app.on('window-all-closed', () => { if ([process](/page/Process).platform !== 'darwin') app.quit(); }) quits the app when all windows are closed on Windows and Linux but not on macOS, while app.on('activate', () => { if (BrowserWindow.getAllWindows().length === 0) createWindow(); }) recreates a window if the dock icon is clicked on macOS with no open windows.[35] The index.html file serves as the renderer process entry, containing standard HTML structure with a simple title and body content.[35]
For the development workflow, add a start script to package.json such as "start": "electron ." and run it with npm start to launch the app in development mode, allowing real-time code changes and hot reloading.[35] Tools like Electron Forge simplify scaffolding by providing templates for modern build systems; installation involves npx create-electron-app@latest my-app --template=[webpack](/page/Webpack), followed by cd my-app and npm start to run the app.[36] Debugging is facilitated by Chrome DevTools, accessible via menu options in the running app or integrated with editors like VS Code using launch configurations that attach to the main process on port 9222 and the renderer process.[37]
Best practices emphasize separating the main process, which handles native OS interactions and app lifecycle in a Node.js context, from the renderer process, which executes web content in an isolated Chromium environment, as per Electron's multi-process model.[20] For secure inter-process communication (IPC) in production, use the contextBridge API in a preload script to expose limited, sanitized APIs from the main process to the renderer, preventing direct access to powerful Electron modules that could pose security risks.[22] An example preload script might look like this:
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
setTitle: (title) => ipcRenderer.send('set-title', title)
});
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
setTitle: (title) => ipcRenderer.send('set-title', title)
});
'self', ensures robust isolation.[22]
Implementing Windows Visual Effects
Electron provides native support for Windows-specific visual effects such as Acrylic and Mica backgrounds starting from version 25.0.0.[38] These effects can be applied using thebackgroundMaterial option in the BrowserWindow constructor, which is available on Windows 10 build 17763 and later for Acrylic, and Windows 11 for Mica.[39] The Mica effect is suitable for long-lived windows, while Acrylic is for transient windows. An example implementation is as follows:
const { BrowserWindow } = require('electron');
const win = new BrowserWindow({
width: 800,
height: 600,
backgroundMaterial: 'mica' // or 'acrylic'
});
const { BrowserWindow } = require('electron');
const win = new BrowserWindow({
width: 800,
height: 600,
backgroundMaterial: 'mica' // or 'acrylic'
});
