Build cross-platform desktop apps with JavaScript, HTML, and CSS
open sourceMITself-hostablefree
Electron is a framework for building cross-platform desktop applications with JavaScript, HTML and CSS. It embeds Chromium and Node.js, so one web codebase runs as a native app on macOS, Windows and Linux, with any npm package or native add-on available, and a bundled Chromium gives every user the same rendering engine. Its main-process APIs control windows, application menus, dialogs and notifications, the autoUpdater module ships updates to macOS and Windows users through Squirrel, and crashReporter collects JavaScript and native crashes. Apps can be distributed through the Mac App Store, the Microsoft Store and the Snap Store, and Electron Forge packages and publishes them. Major versions follow Chromium's releases, so security fixes arrive with them. Visual Studio Code and many other apps are built on it. It's an OpenJS Foundation project under the MIT licence.
Problems it solves
- turn our web app into a desktop app for Mac, Windows and Linux
- build a desktop app with React without learning Swift, C# and GTK
- ship automatic updates to our desktop app's users
- our desktop app needs to read local files and run Node.js code
- publish one desktop app to the Mac App Store, Microsoft Store and Snap Store
- collect crash reports from a desktop app in the field
- add native menus, tray icons and notifications to a JavaScript app
- make sure every user's desktop app renders the same regardless of their OS browser
Features
- Chromium and Node.js in one runtime
- macOS, Windows and Linux binaries for x64 and arm64
- native windows, menus, dialogs and notifications
- autoUpdater for macOS and Windows (Squirrel)
- crashReporter with Crashpad
- Mac App Store, Microsoft Store and Snap Store distribution
- npm packages and native add-ons
- Electron Forge for packaging and publishing
- Electron Fiddle for experiments
- major releases in lockstep with Chromium
Capabilities
| Has official SDKs | plan not known |
|---|
Alternatives
The same job
These do what Electron does.