
Many products start on the web and then need a desktop app: something that lives in the dock, sends native notifications, works with local files, starts at login and updates itself. Building that natively means one codebase in Swift for macOS, another in C# or C++ for Windows, and a third for Linux. Electron takes a different route. It lets a team reuse its web skills and much of its web code to ship one desktop application that runs on all three.
This article explains what Electron is, how its process model works, where it fits, what it costs in memory and download size, and how it compares with Tauri and native options.
What is Electron?
Electron is an open-source framework for building cross-platform desktop applications with JavaScript, HTML and CSS. It bundles Chromium, the open-source core of Google Chrome, to render the interface, and Node.js to give the application access to the operating system. One codebase produces apps for Windows, macOS and Linux.
It was born at GitHub. The first commit to the repository was made on 13 March 2013, and the framework, then called Atom Shell, was built as the backbone of GitHub's Atom editor, which entered public beta in April 2014. Early adopters outside GitHub, such as Slack, started building on it, and on 23 April 2015 Atom Shell was renamed Electron. Electron 1.0 followed on 11 May 2016, bringing API stability. In 2019 the project adopted an open governance model and moved to the OpenJS Foundation, so it is no longer owned by GitHub or Microsoft.
Electron's own showcase lists applications such as Visual Studio Code, Slack, Discord, Figma, Notion, Obsidian, 1Password and GitHub Desktop.
How Electron works
The main process. Every Electron app has a single main process, which runs in Node.js and is the application's entry point. It controls the app lifecycle, creates windows with BrowserWindow, and owns native features such as menus, dialogs, the tray icon and notifications.
Renderer processes. Each window gets its own renderer process, which displays web content with Chromium. Code here is ordinary front-end code, so you can use React, Vue.js or any other web framework. By default, renderers have no direct access to Node.js or Electron APIs.
Preload scripts and IPC. A preload script runs in the renderer before the page loads and exposes a small, explicit API to the page through contextBridge. The page calls that API, and messages travel to the main process over inter-process communication (IPC). This separation is the core of Electron's security model: the web page never gets the full power of Node.js.
Utility processes. For CPU-heavy or crash-prone work, the main process can start extra Node.js child processes, so a slow task does not freeze the interface.
Packaging and updates. Tools such as Electron Forge package the app into installers for each platform. The built-in autoUpdater module, based on the Squirrel framework on macOS and Windows, lets the app download and install new versions itself.
Key features
- One codebase for Windows, macOS and Linux, written with web technologies.
- A predictable rendering engine. The app ships its own Chromium, so it behaves the same on every machine regardless of the system browser.
- Full Node.js access in the main process: file system, child processes, native modules and the npm ecosystem.
- Native desktop integration: menus, tray icons, notifications, file dialogs, deep links and global shortcuts.
- Auto-updates through
autoUpdater, including a free update service for open-source apps published on GitHub. - A regular release cycle. A new major version ships every eight weeks, aligned with Chromium, and the three most recent stable majors are supported.
Where Electron is used
- Desktop versions of SaaS products, sharing UI code with the web app while adding offline access, notifications and system integration.
- Developer tools such as code editors, database clients, API clients and Git interfaces.
- Communication and collaboration apps, where real-time features and notifications matter.
- Internal enterprise tools that need local files, hardware access or background tasks that a browser tab cannot provide.
- Kiosk and point-of-sale style applications that run full screen on dedicated machines.
When to choose Electron, and when not to
Choose Electron when:
- Your team is strong in JavaScript or TypeScript and you want to reuse web code and skills on the desktop.
- The app needs deep system access, auto-updates and real-time features that a website in a browser tab cannot offer.
- Rendering must be identical on every operating system and machine.
- Time to market on all three desktop platforms matters more than the smallest possible footprint.
Look elsewhere when:
- Download size and memory use are critical. Every Electron app carries its own copy of Chromium and Node.js. Tauri uses the operating system's own webview instead, and a minimal Tauri app can be under 600 KB.
- You need the deepest platform integration and the best performance on one operating system. Native development in Swift or C# gets there first.
- The same app must also run on phones. Electron is desktop only; a framework such as Flutter or .NET MAUI covers mobile and desktop from one codebase.
- No one will own security and updates. An Electron app must keep up with Chromium releases; Electron's security guide asks teams to update to new major versions quickly.
Microsoft's experience with Teams shows the trade-off clearly. In 2023 Microsoft moved the new Teams client from Electron to Edge WebView2, which also uses Chromium but shares the browser engine installed on the system, and cited lower memory and disk use as goals.
Electron and its alternatives
| Framework | UI layer | Backend language | Footprint | Best fit |
|---|---|---|---|---|
| Electron | Bundled Chromium | JavaScript / TypeScript (Node.js) | Large | Web teams, identical rendering, deep system access |
| Tauri | System webview | Rust | Small | Size-sensitive apps, Rust skills in the team |
| WebView2 | Edge (Chromium) on Windows | C#, C++ | Medium | Windows-only apps in the Microsoft stack |
| Flutter | Own rendering engine | Dart | Medium | One codebase for mobile and desktop |
| Native (Swift, C#/WinUI) | Platform toolkits | Swift, C# | Smallest | Platform-first apps with deep OS integration |
The most common comparison is Electron vs Tauri. Electron gives you the same Chromium everywhere and the full Node.js ecosystem; Tauri gives you much smaller apps by relying on each system's webview, at the cost of small rendering differences between platforms and a Rust backend. For teams that already run a Node.js backend and a React front end, Electron is usually the shorter path.
How we use Electron at Internative
We use Electron to deliver cross-platform desktop applications efficiently, especially when a product needs deep system access, auto-updates and real-time features alongside a shared web codebase.
If you need a desktop companion for a web product, or a desktop tool for your teams, our custom software development team can help you decide whether Electron, Tauri or a native approach fits, and our SaaS design and development team builds the web side it shares code with.
Frequently asked questions
What is Electron used for?
Electron is used to build desktop applications for Windows, macOS and Linux with web technologies. Typical uses are desktop versions of web products, developer tools, chat and collaboration apps, and internal tools that need file access, notifications or background work.
Is Discord built with Electron?
Yes. Discord's desktop app appears in Electron's official showcase, alongside Visual Studio Code, Slack, Figma, Notion and Obsidian.
Is Electron still used?
Yes. It ships a new major version every eight weeks, supports the three latest stable versions, and is used by widely installed apps such as Visual Studio Code and Slack. Some products have moved to lighter options for size reasons, as Microsoft did with Teams, but Electron remains the most established way to build desktop apps with web technologies.
Is Electron hard to learn?
Not for web developers. If you know HTML, CSS and JavaScript, you can build a first window in an afternoon. The new concepts are the main and renderer processes, IPC and packaging, and getting the security settings right takes deliberate attention.
Which is better, Electron or WebView2?
It depends on the target. WebView2 embeds the Edge engine already installed on Windows, so apps are smaller, but it is Windows-focused and usually paired with C# or C++. Electron ships its own Chromium and runs on Windows, macOS and Linux with one JavaScript codebase.
Related services
Where this topic becomes an engagement.
Keep reading
The articles that follow this one.

MediaCat highlights Worktivity as a leading AI-powered workforce productivity platform

Worktivity Named Among Fast Company Türkiye’s “Top 50 Most Innovative Companies”

Holacon Recognized with Honorable Mention at the Bilişim Yıldızları 2022 Awards

Mastering Prototyping and Wireframing: Turning Concepts into Reality