Electron (software framework)
Electron (formerly known as Atom Shell[4]) is an open-source software framework developed and maintained by GitHub.[5] It allows for the development of desktop GUI applications using web technologies: it combines the Chromium rendering engine and the Node.js runtime.[6] Electron is the main GUI framework behind several notable open-source projects including Atom,[7] GitHub Desktop,[8] Light Table,[9] Visual Studio Code,[10] and WordPress Desktop.[11]
Original author(s) | GitHub |
---|---|
Developer(s) | OpenJS Foundation |
Initial release | 15 July 2013[1] |
Stable release | 9.2.0
/ 7 August 2020[2] |
Preview release | 10.0.0-beta.21
/ 11 August 2020[2] |
Repository | |
Written in | C++, JavaScript, Objective-C++, Python and Objective-C |
Operating system | Linux, macOS and Windows |
Platform | IA-32, x86-64, ARM |
License | MIT License[3] |
Website | www |
Architecture
Electron applications are composed of multiple processes. There is the "browser" process and several "renderer" processes. The browser process runs the application logic, and can then launch multiple renderer processes, rendering the windows that appear on a user's screen rendering HTML and CSS.
Both the browser and renderer processes can run with Node.js integration if enabled.
Most of Electron's APIs are written in C++ or Objective-C and then exposed directly to the application code through JavaScript bindings.[12]
Security
Because Electron applications are web applications running in the Chromium engine, they may be vulnerable to web-related attacks such as cross-site scripting attacks, through the same attack vectors as a browser (e.g. Chromium) or other internal components (Node.js) if using certain versions of Electron.[13] Examples of such vulnerabilities have been fixed in the 1.7.13, 1.8.4, and 2.0.0-beta.5 Electron releases.[14]
Criticism
Electron applications have been criticized for containing very significant overhead due to their Chromium dependency, especially when their performance is compared to that of similar native applications.[15][16]
Versions
Release | Status | Release date | Chromium version | Node.js version | Module version | N-API version | ICU version |
---|---|---|---|---|---|---|---|
v11.0.x | Nightly | TBD | TBD | 12.16 | 82 | 5 | 65.1 |
v10.0.x | Beta | 2020-08-25 | 85 | 12.16 | 82 | 5 | 65.1 |
v9.0.x | Current | 2020-05-18 | 83 | 12.14 | 80 | 5 | 65.1 |
v8.3.x | Active | 2020-02-04 | 80 | 12.3 | 76 | 5 | 65.1 |
v7.3.x | Active | 2019-10-22 | 78 | 12.8 | 75 | 4 | 64.2 |
v6.1.x | End-of-Life | 2019-07-29 | 76 | 12.4 | 73 | 4 | 64.2 |
v5.1.x | End-of-Life | 2019-04-24 | 73 | 12.0 | 70 | 4 | 63.1 |
v4.2.x | End-of-Life | 2018-12-20 | 69 | 10.11 | 69 | 3 | 62.2 |
v3.1.x | End-of-Life | 2018-09-18 | 66 | 10.2 | 64 | 3 | ? |
v2.0.x | End-of-Life | 2018-05-01 | 61 | 8.9 | 57 | ? | ? |
v1.8.x | End-of-Life | 2017-12-12 | 59 | 8.2 | 57 | ? | ? |
Software using Electron
A number of desktop applications are built with Electron including:[17]
- Atom[18]
- Basecamp 3[17]
- Bitwarden
- CrashPlan[19]
- Cryptocat[17] (discontinued)
- Discord
- balenaEtcher[20]
- GitHub Desktop[21]
- Keybase
- GitKraken
- Light Table
- Microsoft Teams[22]
- MongoDB Compass[17]
- Notion[17]
- Quasar Framework
- Shift[17]
- Signal
- Skype[17]
- Slack[23]
- Symphony Chat[24]
- TIDAL[17]
- Twitch[17]
- Visual Studio Code[25][26]
- WebTorrent[17]
- Wire[27]
- Yammer
Offshoot
Electron.NET
On October 27, 2017, the community released a port called Electron.NET for the .NET Core framework. This is an open source project that enables native Electron APIs using the C# programming language. The .NET developer remains in their usual ecosystem, rather than using JavaScript.
See also
- Apache Cordova
- Chromium Embedded Framework (CEF)
- HTML Application
- Qt WebEngine
- XULRunner
References
- "electron/electron". GitHub. Retrieved 8 May 2018.
- "Releases - electron/electron". Retrieved 11 August 2020 – via GitHub.
- "electron/LICENSE at master". GitHub. Retrieved 3 July 2020.
- Sawicki, Kevin (23 April 2015). "Atom Shell is now Electron". Atom. Retrieved 3 July 2020.
- "electron/electron". GitHub. Retrieved 8 May 2018.
- "Electron Internals: Using Node as a Library". electronjs.org. Retrieved 3 July 2020.
- "atom/atom". GitHub. Retrieved 8 May 2018.
- "GitHub Desktop". GitHub. Retrieved 16 June 2019.
- Horner, Gabriel (10 December 2015). "Light Table 0.8.0". lighttable.com. Retrieved 3 July 2020.
- James, Mike (23 November 2015). "Visual Studio Code - Now With Added Extensions". I Programmer. Retrieved 3 July 2020.
- "GitHub Repository". Retrieved 16 June 2019.
- "From native to JavaScript in Electron | Electron Blog". electronjs.org. Retrieved 26 April 2019.
- "Electron nodeIntegration Bypass". 10 May 2018.
- "Webview Vulnerability Fix". 21 March 2018.
- "Electron considered harmful". Drew DeVault's Blog. Retrieved 2 October 2019.
- Beyer, Casper. "Electron is Cancer". Commit Log. Medium. Retrieved 2 October 2019.
- "Apps". Electron. Retrieved 13 June 2020.
- Sawicki, Kevin (23 April 2015). "Atom Shell is now Electron". Electron. Retrieved 15 July 2017.
- "CrashPlan for Small Business version 6.7". Code42 CrashPlan Release Notes. Retrieved 25 April 2018.
- "Etcher on GitHub". Retrieved 7 July 2020.
- Haack, Phil (16 May 2017). "Announcing Git Integration for Atom and GitHub Desktop Beta". The GitHub Blog. Retrieved 15 July 2017.
- "Electron Helper and branding". techcommunity.microsoft.com. 20 May 2017. Retrieved 8 May 2018.
- "Building hybrid applications with Electron". Several People Are Coding. Retrieved 12 August 2017.
- "symphonyoss/SymphonyElectron". GitHub. Retrieved 27 September 2018.
- Bright, Peter (29 April 2015). "Microsoft's new Code editor is built on Google's Chromium". Ars Technica. Retrieved 18 November 2015.
- "Open Source project".
- "wireapp/wire-desktop". GitHub. Retrieved 8 May 2018.