Electron (software framework)

Last updated

Electron
Original author(s) GitHub
Developer(s) OpenJS Foundation
Initial release15 July 2013;11 years ago (2013-07-15) [1]
Stable release
33.0.0 [2]   OOjs UI icon edit-ltr-progressive.svg / 14 October 2024;2 months ago (14 October 2024)
Preview release
34.0.0-alpha.1 [3] / October 15, 2024;2 months ago (2024-10-15)
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.electronjs.org OOjs UI icon edit-ltr-progressive.svg

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.

Contents

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

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

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]

Version history
ReleaseStatusRelease dateEnd of life dateChromium versionNode.js versionModule versionN-API versionICU version
Current stable version:v33.x.yCurrent stable version:Current [14] 15 October 202429 April 202513020.18 ?? ?
Old version, yet still maintained: v32.x.yOld version, yet still maintained: Active20 August 20244 March 202512820.16? ? ?
Old version, yet still maintained: v31.x.yOld version, yet still maintained: Active11 June 20247 January 202512620.14? ? ?
Old version, no longer maintained: v30.x.yOld version, no longer maintained: End-of-life16 April 202415 October 202412420.11? ? ?
Old version, no longer maintained: v29.x.yOld version, no longer maintained: End-of-Life20 February 202420 August 202412220.9? ? ?
Old version, no longer maintained: v28.x.yOld version, no longer maintained: End-of-Life5 December 2023 [15] 11 June 202412018.18? ? ?
Old version, no longer maintained: v27.x.yOld version, no longer maintained: End-of-Life10 October 2023 [16] 16 April 202411818.17 ? ? ?
Old version, no longer maintained: v26.x.yOld version, no longer maintained: End-of-Life15 August 2023 [17] 20 February 202411618.16 ? ? ?
Old version, no longer maintained: v25.x.yOld version, no longer maintained: End-of-Life30 May 2023 [18] 5 December 202311418.15 ? ? ?
Old version, no longer maintained: v24.x.yOld version, no longer maintained: End-of-Life4 April 2023 [19] 10 October 202311218.14 ? ? ?
Old version, no longer maintained: v23.x.yOld version, no longer maintained: End-of-Life30 November 2022 [20] 15 August 202311018.12 ? ? ?
Old version, no longer maintained: v22.x.yOld version, no longer maintained: End-of-Life30 November 2022 [21] 10 October 202310816.17 ? ? ?
Old version, no longer maintained: v21.x.yOld version, no longer maintained: End-of-Life26 September 2022 [22] 4 April 202310616.16 ? ? ?
Old version, no longer maintained: v20.x.yOld version, no longer maintained: End-of-Life2 August 2022 [23] 7 February 202310416.15 ? ? ?
Old version, no longer maintained: v19.x.yOld version, no longer maintained: End-of-Life24 May 2022 [24] 29 November 2022 [21] 10216.14106 ? ?
Old version, no longer maintained: v18.x.yOld version, no longer maintained: End-of-Life29 March 2022 [25] 26 September 2022 [22] 10016.13103 ? ?
Old version, no longer maintained: v17.x.yOld version, no longer maintained: End-of-Life1 February 2022 [26] 2 August 20229816.13101 ? ?
Old version, no longer maintained: v16.x.yOld version, no longer maintained: End-of-Life15 November 2021 [27] 24 May 2022 [24] 9616.999 ? ?
Old version, no longer maintained: v15.x.yOld version, no longer maintained: End-of-Life21 September 202124 May 2022 [24] 9416.598 ? ?
Old version, no longer maintained: v14.x.yOld version, no longer maintained: End-of-Life30 August 202129 March 2022 [25] 9214.1789869.1
Old version, no longer maintained: v13.x.yOld version, no longer maintained: End-of-Life25 May 202131 January 2022 [26] 9114.1689768.1
Old version, no longer maintained: v12.0.xOld version, no longer maintained: End-of-Life2 March 202115 November 2021 [27] 8914.1687768.1
Old version, no longer maintained: v11.4.xOld version, no longer maintained: End-of-Life16 November 202030 August 20218712.1885565.1
Old version, no longer maintained: v10.4.xOld version, no longer maintained: End-of-Life25 August 202025 May 20218512.1682565.1
Old version, no longer maintained: v9.4.xOld version, no longer maintained: End-of-Life18 May 20202 March 20218312.1480565.1
Old version, no longer maintained: v8.3.xOld version, no longer maintained: End-of-Life4 February 202016 November 20208012.1376565.1
Old version, no longer maintained: v7.3.xOld version, no longer maintained: End-of-Life22 October 201925 August 20207812.875464.2
Old version, no longer maintained: v6.1.xOld version, no longer maintained: End-of-Life29 July 201918 May 20207612.473464.2
Old version, no longer maintained: v5.1.xOld version, no longer maintained: End-of-Life24 April 20194 February 20207312.070463.1
Old version, no longer maintained: v4.2.xOld version, no longer maintained: End-of-Life20 December 201822 October 20196910.1169362.2
Old version, no longer maintained: v3.1.xOld version, no longer maintained: End-of-Life18 September 201829 July 20196610.2643 ?
Old version, no longer maintained: v2.0.xOld version, no longer maintained: End-of-Life1 May 201824 April 2019618.957 ? ?
Old version, no longer maintained: v1.8.xOld version, no longer maintained: End-of-Life12 December 201720 December 2018598.257 ? ?

Usage

Desktop applications built with Electron include Atom, [28] balenaEtcher, [29] Eclipse Theia, [10] Microsoft Teams before 2.0, [30] [31] Slack, [32] and Visual Studio Code. [33] [34] The Brave browser was based on Electron before it was rewritten to use Chromium directly. [35]

Reception

The most common criticism of Electron is that it necessitates software bloat when used for simple programs. [36] 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." [37] 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. [38] Those who are concerned that Electron is not always based on the newest version of Chromium have recommended progressive web applications as an alternative. [39]

See also

Related Research Articles

A browser engine is a core software component of every major web browser. The primary job of a browser engine is to transform HTML documents and other resources of a web page into an interactive visual representation on a user's device.

TypeScript is a free and open-source high-level programming language developed by Microsoft that adds static typing with optional type annotations to JavaScript. It is designed for the development of large applications and transpiles to JavaScript.

V8 is a JavaScript and WebAssembly engine developed by Google for its Chrome browser. V8 is free and open-source software that is part of the Chromium project and also used separately in non-browser contexts, notably the Node.js runtime system.

<span class="mw-page-title-main">Chromium (web browser)</span> Open-source web browser project

Chromium is a free and open-source web browser project, primarily developed and maintained by Google. It is a widely-used codebase, providing the vast majority of code for Google Chrome and many other browsers, including Microsoft Edge, Samsung Internet, and Opera. The code is also used by several app frameworks.

<span class="mw-page-title-main">Node.js</span> JavaScript runtime environment

Node.js is a cross-platform, open-source JavaScript runtime environment that can run on Windows, Linux, Unix, macOS, and more. Node.js runs on the V8 JavaScript engine, and executes JavaScript code outside a web browser.

Chakra was a free and open-source JavaScript engine developed by Microsoft for its Microsoft Edge Legacy web browser. It is a fork of the same-named JScript engine used in Internet Explorer. Like the EdgeHTML browser engine, the declared intention was that it would reflect the "Living Web". The core components of Chakra were open-sourced as ChakraCore. In 2021, Microsoft terminated support for the engine, citing its transition to a Chromium based engine for Edge. Support has been transferred to the community, where it remains inactive.

<span class="mw-page-title-main">Opa (programming language)</span>

Opa is a programming language for developing scalable web applications. It is free and open-source software released under a GNU Affero General Public License (AGPLv3), and an MIT License.

Dart is a programming language designed by Lars Bak and Kasper Lund and developed by Google. It can be used to develop web and mobile apps as well as server and desktop applications.

<span class="mw-page-title-main">Chromium Embedded Framework</span> Free and open-source software framework

The Chromium Embedded Framework (CEF) is an open-source software framework for embedding a Chromium web browser within another application. This enables developers to add web browsing functionality to their application, as well as the ability to use HTML, CSS, and JavaScript to create the application's user interface.

<span class="mw-page-title-main">Brackets (text editor)</span> Editor for web development

Brackets is a source code editor with a primary focus on web development. Created by Adobe Inc., it is free and open-source software licensed under the MIT License, and is currently maintained on GitHub by open-source developers. It is written in JavaScript, HTML and CSS. Brackets is cross-platform, available for macOS, Windows, and most Linux distributions. The main purpose of Brackets is its live HTML, CSS and JavaScript editing functionality.

<span class="mw-page-title-main">Ember.js</span> JavaScript framework

Ember.js is an open-source JavaScript web framework that utilizes a component-service pattern. It is designed to allow developers to create scalable single-page web applications by incorporating common idioms, best practices, and patterns from other single-page-app ecosystem patterns into the framework.

<span class="mw-page-title-main">Atom (text editor)</span> Free and open-source text and source code editor

Atom is a free and open-source text and source-code editor for macOS, Linux, and Windows with support for plug-ins written in JavaScript, and embedded Git control. Developed by GitHub, Atom was released on June 25, 2015.

<span class="mw-page-title-main">WinJS</span> Open-source JavaScript library

The Windows Library for JavaScript is an open-source JavaScript library developed by Microsoft. It has been designed with the primary goal of easing development of Windows Store apps for Windows 8 and Windows 10, as well as Windows Phone apps for Windows Phone 8.1, Windows 10 Mobile and Xbox One applications using HTML5 and JavaScript, as an alternative to using WinRT XAML and C#, VB.NET or C++ (CX).

<span class="mw-page-title-main">Beaker (web browser)</span> Web browser software

Beaker is a discontinued free and open-source web browser developed by Blue Link Labs. Beaker Browser peer-to-peer technology allows users to self-publish websites and web apps directly from the browser, without the need to set up and administrate a separate web server or host their content on a third-party server. All files and websites are transferred using Dat, a hypermedia peer-to-peer protocol, which allows files to be shared and hosted by several users. The browser also supports the HTTP protocol to connect to traditional servers.

Eclipse Theia is an Eclipse open source project providing the Theia Platform and the Theia IDE.

Microsoft, a tech company historically known for its opposition to the open source software paradigm, turned to embrace the approach in the 2010s. From the 1970s through 2000s under CEOs Bill Gates and Steve Ballmer, Microsoft viewed the community creation and sharing of communal code, later to be known as free and open source software, as a threat to its business, and both executives spoke negatively against it. In the 2010s, as the industry turned towards cloud, embedded, and mobile computing—technologies powered by open source advances—CEO Satya Nadella led Microsoft towards open source adoption although Microsoft's traditional Windows business continued to grow throughout this period generating revenues of 26.8 billion in the third quarter of 2018, while Microsoft's Azure cloud revenues nearly doubled.

<span class="mw-page-title-main">Deno (software)</span> Secure JavaScript and TypeScript runtime

Deno is a runtime for JavaScript, TypeScript, and WebAssembly that is based on the V8 JavaScript engine and the Rust programming language. Deno was co-created by Ryan Dahl, who also created Node.js.

<span class="mw-page-title-main">Quasar Framework</span> JavaScript framework

The Quasar Framework is an open-source Vue.js based framework for building apps with a single codebase. It can be deployed on the Web as a SPA, PWA, SSR, to a Mobile App, using Cordova for iOS & Android, and to a Desktop App, using Electron for Mac, Windows, and Linux. Quasar was created by Razvan Stoenescu and is maintained by a small team of developers and contributors. Most from the core team currently work at various companies such as Lenovo, IntelliView Technologies Inc. and AG Development Services.

References

  1. "electron/electron". GitHub. Archived from the original on 2 August 2016. Retrieved 8 May 2018.
  2. "Release 33.0.0". 14 October 2024. Retrieved 16 October 2024.
  3. "Release electron v34.0.0-alpha.1 · electron/electron". GitHub. 15 October 2024. Retrieved 16 October 2024.
  4. "electron/LICENSE at master". GitHub. Archived from the original on 12 May 2017. Retrieved 3 July 2020.
  5. 1 2 Sawicki, Kevin (23 April 2015). "Atom Shell is now Electron". Electron. Archived from the original on 9 November 2017. Retrieved 6 January 2022.
  6. "Build cross-platform desktop apps with JavaScript, HTML, and CSS | Electron". Archived from the original on 9 May 2022. Retrieved 1 February 2023.
  7. "Electron Internals: Using Node as a Library". electronjs.org. 8 August 2016. Archived from the original on 9 November 2017. Retrieved 3 July 2020.
  8. Horner, Gabriel (10 December 2015). "Light Table 0.8.0". lighttable.com. Archived from the original on 13 December 2015. Retrieved 3 July 2020.
  9. "GitHub Repository". GitHub . Archived from the original on 19 February 2016. Retrieved 16 June 2019.
  10. 1 2 "Theia - Cloud and Desktop IDE Platform". theia-ide.org. Archived from the original on 20 April 2018. Retrieved 31 December 2021.
  11. "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.
  12. "New Electron Release Cadence | Electron". electronjs.org. 14 July 2021. Archived from the original on 14 July 2021. Retrieved 9 February 2022.
  13. "Electron Releases | Electron". electronjs.org. Archived from the original on 16 December 2022. Retrieved 16 December 2022.
  14. "Release electron v33.0.0 · electron/electron". GitHub. 14 October 2024. Retrieved 16 October 2024.
  15. "Release electron v28.0.0 · electron/electron". GitHub. 4 December 2023. Archived from the original on 14 December 2023. Retrieved 14 December 2023.
  16. "Release electron v27.0.0 · electron/electron". GitHub. 10 October 2023. Archived from the original on 11 October 2023. Retrieved 11 October 2023.
  17. "Release electron v26.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
  18. "Release electron v25.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
  19. "Release electron v24.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
  20. "Release electron v23.0.0 · electron/electron". GitHub. Archived from the original on 23 September 2023. Retrieved 23 September 2023.
  21. 1 2 "Release electron v22.0.0 · electron/electron". GitHub. Archived from the original on 15 December 2022. Retrieved 16 December 2022.
  22. 1 2 "Release electron v21.0.0 · electron/electron". GitHub. Archived from the original on 16 December 2022. Retrieved 16 December 2022.
  23. "Release electron v20.0.0 · electron/electron". GitHub. Archived from the original on 16 December 2022. Retrieved 16 December 2022.
  24. 1 2 3 "Release electron v19.0.0 · electron/electron". GitHub. Archived from the original on 31 May 2022. Retrieved 31 May 2022.
  25. 1 2 "Release electron v18.0.0 · electron/electron". GitHub. Archived from the original on 4 May 2022. Retrieved 4 May 2022.
  26. 1 2 "Release electron v17.0.0 · electron/electron". GitHub. Archived from the original on 12 February 2022. Retrieved 28 February 2022.
  27. 1 2 "Release electron v16.0.0 · electron/electron". GitHub. Archived from the original on 6 December 2021. Retrieved 3 December 2021.
  28. Sawicki, Kevin (23 April 2015). "Atom Shell is now Electron". Electron. Archived from the original on 16 October 2019. Retrieved 15 July 2017.
  29. "Etcher on GitHub". GitHub . Archived from the original on 16 November 2018. Retrieved 7 July 2020.
  30. msdmaguire. "How Microsoft Teams uses memory - Microsoft Teams". docs.microsoft.com. Archived from the original on 8 December 2020. Retrieved 12 November 2021.
  31. 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.
  32. "Building hybrid applications with Electron". Several People Are Coding. 25 October 2016. Archived from the original on 16 October 2019. Retrieved 12 August 2017.
  33. 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.
  34. "Open Source project". GitHub . 29 March 2022. Archived from the original on 23 November 2015. Retrieved 20 May 2018.
  35. 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.
  36. 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.
  37. 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.
  38. 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.
  39. 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.