2017-11-19 12:01:33 +00:00
[![Electron Logo ](https://electronjs.org/images/electron-logo.svg )](https://electronjs.org)
2015-04-23 20:46:48 +00:00
2021-09-27 15:35:56 +00:00
[![CircleCI Build Status ](https://circleci.com/gh/electron/electron/tree/main.svg?style=shield )](https://circleci.com/gh/electron/electron/tree/main)
[![AppVeyor Build Status ](https://ci.appveyor.com/api/projects/status/4lggi9dpjc1qob7k/branch/main?svg=true )](https://ci.appveyor.com/project/electron-bot/electron-ljo26/branch/main)
2022-07-05 15:55:15 +00:00
[![Electron Discord Invite ](https://img.shields.io/discord/745037351163527189?color=%237289DA&label=chat&logo=discord&logoColor=white )](https://discord.gg/electronjs)
2015-06-29 23:46:22 +00:00
2021-05-13 02:12:35 +00:00
:memo: Available Translations: 🇨🇳 🇧🇷 🇪🇸 🇯🇵 🇷🇺 🇫🇷 🇺🇸 🇩🇪.
2022-08-04 22:18:06 +00:00
View these docs in other languages on our [Crowdin ](https://crowdin.com/project/electron ) project.
2017-08-08 17:55:09 +00:00
2015-04-08 17:16:10 +00:00
The Electron framework lets you write cross-platform desktop applications
2015-11-03 17:13:48 +00:00
using JavaScript, HTML and CSS. It is based on [Node.js ](https://nodejs.org/ ) and
2024-05-29 09:41:15 +00:00
[Chromium ](https://www.chromium.org ) and is used by the
[Visual Studio Code ](https://github.com/Microsoft/vscode/ ) and many other [apps ](https://electronjs.org/apps ).
2013-04-12 01:46:58 +00:00
2022-11-15 06:23:37 +00:00
Follow [@electronjs ](https://twitter.com/electronjs ) on Twitter for important
2015-04-24 00:00:04 +00:00
announcements.
2017-11-17 04:44:21 +00:00
This project adheres to the Contributor Covenant
2021-09-27 15:35:56 +00:00
[code of conduct ](https://github.com/electron/electron/tree/main/CODE_OF_CONDUCT.md ).
2015-12-04 00:06:58 +00:00
By participating, you are expected to uphold this code. Please report unacceptable
2018-03-14 19:37:40 +00:00
behavior to [coc@electronjs.org ](mailto:coc@electronjs.org ).
2015-07-08 20:29:24 +00:00
2017-08-08 17:18:40 +00:00
## Installation
2013-04-12 01:46:58 +00:00
2017-08-08 17:18:40 +00:00
To install prebuilt Electron binaries, use [`npm` ](https://docs.npmjs.com/ ).
The preferred method is to install Electron as a development dependency in your
app:
2015-04-17 18:25:06 +00:00
2015-04-29 17:56:31 +00:00
```sh
2021-01-28 21:34:22 +00:00
npm install electron --save-dev
2017-08-08 17:18:40 +00:00
```
For more installation options and troubleshooting tips, see
2021-01-28 21:34:22 +00:00
[installation ](docs/tutorial/installation.md ). For info on how to manage Electron versions in your apps, see
[Electron versioning ](docs/tutorial/electron-versioning.md ).
2017-08-08 17:18:40 +00:00
2022-02-28 19:46:52 +00:00
## Platform support
Each Electron release provides binaries for macOS, Windows, and Linux.
2023-08-29 00:01:11 +00:00
* macOS (Catalina and up): Electron provides 64-bit Intel and ARM binaries for macOS. Apple Silicon support was added in Electron 11.
2023-01-26 00:57:20 +00:00
* Windows (Windows 10 and up): Electron provides `ia32` (`x86`), `x64` (`amd64`), and `arm64` binaries for Windows. Windows on ARM support was added in Electron 5.0.8. Support for Windows 7, 8 and 8.1 was [removed in Electron 23, in line with Chromium's Windows deprecation policy ](https://www.electronjs.org/blog/windows-7-to-8-1-deprecation-notice ).
2022-03-23 09:46:45 +00:00
* Linux: The prebuilt binaries of Electron are built on Ubuntu 20.04. They have also been verified to work on:
2023-10-12 18:56:28 +00:00
* Ubuntu 18.04 and newer
* Fedora 32 and newer
* Debian 10 and newer
2022-02-28 19:46:52 +00:00
2018-09-01 05:56:55 +00:00
## Quick start & Electron Fiddle
2016-11-14 21:52:07 +00:00
2018-09-01 05:56:55 +00:00
Use [`Electron Fiddle` ](https://github.com/electron/fiddle )
to build, run, and package small Electron experiments, to see code examples for all of Electron's APIs, and
to try out different versions of Electron. It's designed to make the start of your journey with
Electron easier.
Alternatively, clone and run the
2017-08-08 17:18:40 +00:00
[electron/electron-quick-start ](https://github.com/electron/electron-quick-start )
repository to see a minimal Electron app in action:
2017-11-19 10:48:06 +00:00
```sh
2017-08-08 17:18:40 +00:00
git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm install
npm start
2015-04-17 18:25:06 +00:00
```
2017-11-19 17:51:03 +00:00
## Resources for learning Electron
2016-11-14 21:52:07 +00:00
2022-02-28 19:46:52 +00:00
* [electronjs.org/docs ](https://electronjs.org/docs ) - All of Electron's documentation
* [electron/fiddle ](https://github.com/electron/fiddle ) - A tool to build, run, and package small Electron experiments
* [electron/electron-quick-start ](https://github.com/electron/electron-quick-start ) - A very basic starter Electron app
* [electronjs.org/community#boilerplates ](https://electronjs.org/community#boilerplates ) - Sample starter apps created by the community
2015-01-19 14:30:33 +00:00
2017-08-08 17:18:40 +00:00
## Programmatic usage
Most people use Electron from the command line, but if you require `electron` inside
your **Node app** (not your Electron app) it will return the file path to the
binary. Use this to spawn Electron from Node scripts:
2015-01-19 14:30:33 +00:00
2017-08-08 17:18:40 +00:00
```javascript
const electron = require('electron')
2023-08-30 15:55:23 +00:00
const proc = require('node:child_process')
2013-04-12 01:46:58 +00:00
2017-08-08 17:18:40 +00:00
// will print something similar to /Users/maf/.../Electron
console.log(electron)
// spawn Electron
const child = proc.spawn(electron)
```
### Mirrors
2022-03-25 00:08:33 +00:00
* [China ](https://npmmirror.com/mirrors/electron/ )
2022-02-28 19:46:52 +00:00
See the [Advanced Installation Instructions ](https://www.electronjs.org/docs/latest/tutorial/installation#mirror ) to learn how to use a custom mirror.
2014-05-14 18:32:24 +00:00
2022-02-28 19:46:52 +00:00
## Documentation translations
2015-08-23 15:19:37 +00:00
2022-02-28 19:46:52 +00:00
We crowdsource translations for our documentation via [Crowdin ](https://crowdin.com/project/electron ).
We currently accept translations for Chinese (Simplified), French, German, Japanese, Portuguese,
Russian, and Spanish.
2015-08-23 15:19:37 +00:00
2019-04-26 15:12:21 +00:00
## Contributing
If you are interested in reporting/fixing issues and contributing directly to the code base, please see [CONTRIBUTING.md ](CONTRIBUTING.md ) for more information on what we're looking for and how to get started.
2014-05-14 18:32:24 +00:00
## Community
2018-04-30 23:26:08 +00:00
Info on reporting bugs, getting help, finding third-party tools and sample apps,
2022-02-28 19:46:52 +00:00
and more can be found on the [Community page ](https://www.electronjs.org/community ).
2016-10-01 03:33:51 +00:00
## License
2021-09-27 15:35:56 +00:00
[MIT ](https://github.com/electron/electron/blob/main/LICENSE )
2016-11-07 20:08:11 +00:00
2024-03-21 14:25:35 +00:00
When using Electron logos, make sure to follow [OpenJS Foundation Trademark Policy ](https://trademark-policy.openjsf.org/ ).