Build cross platform desktop apps with JavaScript, HTML, and CSS
$ npm i -D electron@latest
# Electron 4.1.4
# Node 10.11.0
# Chromium 69.0.3497.128
$ npm i -D electron@beta
# Electron 5.0.0-beta.8
# Node 12.0.0
# Chromium 73.0.3683.104
$ npm i -D electron-nightly
# Electron 6.0.0-nightly.20190311
# Node 12.0.0
# Chromium 74.0.3724.8
If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application.
Electron uses Chromium and Node.js so you can build your app with HTML, CSS, and JavaScript.
Electron is an open source project maintained by GitHub and an active community of contributors.
Compatible with Mac, Windows, and Linux, Electron apps build and run on three platforms.
To get started with Electron, check out the resources below. Learn how to wrap your web app with Electron, access all the APIs, and generate installers.
The Electron API Demos app interactively demonstrates the most important features of the Electron API. See what's possible with Electron with sample code and helpful tips for building your app.
Electron Fiddle lets you create and play with small Electron experiments. It greets you with a quick-start template after opening – change a few things, choose the version of Electron you want to run it with, and play around. Then, save your Fiddle either as a GitHub Gist or to a local folder. Once pushed to GitHub, anyone can quickly try your Fiddle out by just entering it in the address bar.
A minimal Electron app with helpful notations.
# Clone the Quick Start repository
$ git clone https://github.com/electron/electron-quick-start
# Go into the repository
$ cd electron-quick-start
# Install the dependencies and run
$ npm install && npm start
Ask questions in the Discuss forum or our Slack channel. Follow @electronjs on Twitter for important announcements. Need to privately reach out? Email info@electronjs.org.
With Electron, creating a desktop application for your company or idea is easy. Initially developed for GitHub's Atom editor, Electron has since been used to create applications by companies like Microsoft, Facebook, Slack, and Docker.
Key | Action | |
---|---|---|
/ | Focus the search bar | |
Esc | Focus the search bar and cleans it | |
↓ | Select the next search result | |
↑ | Select the previous search result | |
Enter | Open the selected search result | |
cmdEnter | Ctrl+Enter | Open the selected search result in a new tab |